Posts by Eduardo Nobre • 356 points
13 posts
-
3
votes2
answers4675
viewsA: Exception Treatment REST Spring Services
Controller only manages the flow of information it should not contain business rules and persistence in its content. It would be more interesting to treat the exceptions in the Service layer, so you…
-
0
votes1
answer74
viewsA: Error nullpointer when query in database with parameter
This is a bug from Spring Data JPA and was corrected in version 1.3.4. Update the version via Maven and check that the error will be corrected.…
-
0
votes1
answer142
viewsA: Problem passing information on my login
The error happens in the section highlighted in yellow below: As described below in the API documentation, if it does not find value, it goes up this Exception you are receiving:…
-
1
votes3
answers16826
viewsA: How to create an array within another array with jQuery
You can do something like this: var options = { size: ["S", "M", "L", "XL", "XXL"], color: ["Red", "Blue", "Green", "White", "Black"] }; To access each key individually: for (var key in options) {…
-
0
votes1
answer65
viewsQ: $jQuery Easy Slider Numeric
I am using Jquery easySlider1.7.js, and have a question about the property 'Numeric'. When using this property, the plugin adds a link to each slide below the images, only when selecting one of…
-
2
votes1
answer292
viewsQ: Angular.js $setValidity onload Page
Setting: I have a form with 3 steps, a jsp for each step. In a given jsp there is a input text with the directive ng-minlength and a onChange calling a function that validates with the $setValidity…
-
3
votes1
answer347
viewsQ: Window.onbeforeunload in Firefox
When using "window.onbeforeunload" in firefox, it returns only a generic message as per the image below: Is there any way I can customize this message in a "modal" in firefox?…
jqueryasked Eduardo Nobre 356 -
0
votes0
answers136
viewsQ: Spring: java.io.Notserializableexception: Mapsqlparametersource
I’m trying a simple Spring Jdbctemplate based Insert mapping query parameters with Mapsqlparamatersource and I’m making an error according to the data below: public void adiciona(Conta conta) {…
-
1
votes2
answers2660
viewsA: How to grab a file extension?
In the code snippet below, you get the file extension in a simpler way: extensao =($("#arquivo").substring(arquivo.lastIndexOf("."))).toLowerCase(); I use this code to validate the allowed…
-
5
votes1
answer4182
viewsQ: Get File Size in Bytes in Java Script
I am validating the size of the attached file on my page before uploading using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size);…
-
3
votes1
answer316
viewsA: How to change the position of Ticks elements in Jqplot?
I found the answer, it is very simple just add the object below and set the angle. axesDefaults: { tickRenderer: $.jqplot.CanvasAxisTickRenderer , tickOptions: { angle: -70, fontSize: '10pt' } },…
-
5
votes1
answer316
viewsQ: How to change the position of Ticks elements in Jqplot?
I need to know how to change the position of the Ticks (Graph Entities) so that they are diagonal instead of vertical, because as shown in the attached image, the names overwrite each other when…
-
5
votes1
answer107
viewsQ: Jqplot error in IE 7
I’m using the plugin JqPlot to generate a bar and column chart. After testing Mozilla and Chrome, which worked perfectly, I ran the test on IE7 and in the IE8 and got the following error:…