Posts by Philippe Gioseffi • 3,202 points
37 posts
-
0
votes1
answer88
viewsQ: Development status of the Eclipse Grails-IDE plugin?
I understand the Eclipse plugin Groovy Development Tools is still being maintained by the Pivotal teams, as a release version was released on January 6, 2020. Unfortunately, this plugin does not…
-
0
votes1
answer19
viewsA: Is it possible to have a constant populated through a Spring @Service?
I did the same question in the OS in English and I got the following reply translated and improved below: I prefer the following way: @Service public class CodeValidatorServiceImpl implements…
-
0
votes1
answer19
viewsQ: Is it possible to have a constant populated through a Spring @Service?
We have a web service that one of its parameters is called source and this source is always validated against a code in the database. For each of our services, I have to validate this code. This…
-
2
votes1
answer119
viewsQ: Redo the Spring cache?
It is possible to schedule that the Spring cache is always redone at midnight? I read the Springs Cache Docs and I found nothing about how to get him to be regenerated.…
-
0
votes1
answer550
viewsQ: Is it possible to inject a bean into a Singleton with Enum?
We have a system that uses Struts 1 and enum-based singletons. Now we have a dependency that was written using Spring 4.3.6.RELEASE that should only be used with other systems that also use Spring,…
-
3
votes1
answer1187
viewsQ: How do I place a record on a new page using Jasperreports if it overflows the last page?
I’m using Jaspersoft-studio 6.2.0 and Jasper-Reports lib also 6.2.0. I have a report and in the detail section some of the records in the table can go from one page to another and their content is…
-
1
votes1
answer734
viewsQ: Spring, Angular JS and Exception Handling in Service Layer
I have an app that uses Jasper-Reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7, Tomcat 8 and at front-end we use Angularjs. The requisitions Rest are made via ajax. The application…
-
0
votes1
answer412
viewsA: Spring and Jasper - Browser does not understand streaming for download
I discovered after much research, trial and error that the problem was not in the code, but in my forgetfulness that requisitions ajax return only text, that is, impossible to return an array of…
-
1
votes1
answer412
viewsQ: Spring and Jasper - Browser does not understand streaming for download
I have an app that uses Jasper-Reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7, Tomcat 8 and at front-end we use Angularjs. The requisitions Rest are made via ajax. Spring…
-
0
votes1
answer106
viewsQ: Jasperreports - Is it possible for a report to be automatically listed several times?
I have a report that is nothing more than a receipt, with its items and data of the note and the items. A feature was requested that when selecting more than one invoice, this report manages the…
-
7
votes3
answers1977
viewsQ: How to attach events to dynamically created elements and pass parameters?
I have a table that is generated via ajax and a certain column generates a link. As it has been implemented, currently, it writes a code html with javascript intrusive. Something like below: return…
-
4
votes1
answer1107
viewsQ: How to handle Ajax requests with business error?
I searched the Internet and I still haven’t found an answer mature enough for a problem. I have an Ajax request and taking out errors released by the application as a possible connection drop, for…
-
4
votes2
answers851
viewsQ: Is it possible to limit the number of lines in a class attribute that is a list via JPQL?
I have the query below in JPQL FROM User u INNER JOIN FETCH u.enderecos e WHERE u.id =:id ORDER BY e.id DESC A user can have more than ten addresses, so we want to bring only ten addresses and if…
-
2
votes1
answer332
viewsQ: Struts2 - Is it possible to access a back end method of an Action in JSP?
I’m using Struts2 to build a web application. I have a method in a class called BaseAction, where all other actions extend it, as written below: public boolean isUserFullyLogged() { final Boolean…
-
6
votes2
answers375
viewsQ: Doubt with inheritance in Java method
I have the interface below public interface BaseRelatorioDTO extends Serializable { public BaseFiltroDTO getFiltro(); public List<? extends BaseRespostasDTO> getRespostas(); } And I’d like to…
-
12
votes2
answers469
viewsQ: jQuery onload x jQuery onDomready
Every time I use the Jsfiddle see options to initialize jQuery content via onLoad or onDomready. I tested with most of the scripts I write and there was no functional difference. Searching on Google…
-
9
votes4
answers6985
viewsA: How to add times in Java?
I came to that code after question in the OS and will post for possible criticism. public static void somaTempos(final String[] listaTempos) throws ParseException { long tm = 0; final DateFormat dt…
-
28
votes4
answers6985
viewsQ: How to add times in Java?
I am working on a report that makes a sum of the data and part of the data is times, example: ----------------------- | Atividade | Tempo | ----------------------- | 1 | 11:00:00 |…
-
4
votes1
answer785
viewsQ: jQuery Masked Input - Is it possible to recover the mask attached to the field?
I’m using jQuery Masked Input Plugin with jQuery Validation Plugin. When a form field loses focus, the validation plugin shows a message, but this is not happening with the fields that are have…
-
13
votes2
answers2787
viewsQ: How to determine which HTML element and/or which event called a function?
I have a function called by two different HTML elements and each element calls the function through a given event. $("#tempoInicial").on("blur", manipulaTempoFinal); $("#operadorTempo").on("change",…
-
6
votes2
answers1772
viewsQ: Is it possible to have dynamic rules with jquery validation?
I got three fields, two inputs text and between them a select. If one of the first two is filled in the other becomes mandatory. The problem is that when a single value, in the latter case, of the…
-
2
votes2
answers889
viewsA: Is it possible to disable a certain action of an HTML element with a certain class via jQuery?
The answer would be not to link the event to the links as below: $("a:not(.ui-multiselect-none, .ui-multiselect-all, .ui-multiselect-close)").on("click", $.blockUI); Source:…
-
7
votes2
answers889
viewsQ: Is it possible to disable a certain action of an HTML element with a certain class via jQuery?
On my startup I know that all links should block, using the plugin jquery-blockui, the screen to avoid multiple clicks of impatient user avoiding multiple and unnecessary server requests.…
-
6
votes1
answer533
viewsQ: Different multiple select rendering for each browser
I have the following code: <select multiple="multiple" id="carros" size="1" name="carros"> <option value="volvo">Volvo</option> <option value="saab">Saab</option>…
-
2
votes1
answer299
viewsA: How to receive a list of Strings in a Struts2 select?
The answer to this question is to remove attributes listKey and listValue. Source:…
-
3
votes1
answer299
viewsQ: How to receive a list of Strings in a Struts2 select?
I have a select on my page that should have its value and caption populated through a list of Strings that come from my Action. I am sending the list correctly, because I see the combo have the…
-
12
votes2
answers7355
viewsQ: Is it better to parameterize your Preparedstatement even if the value is fixed?
I always read the blog Java Revisited and I’ve been reading the article today Why use Preparedstatement in Java JDBC - Example Tutorial. At a certain point the author talks about parameterization of…
-
6
votes1
answer401
viewsQ: Is it possible to use timestamp without having to convert to String on Oracle?
I have a query that one of your filters is a date, it is possible to filter in Oracle with something like below? SELECT * FROM tabela WHERE campoData = '2014-02-10 15:56:00.000' Or we always have to…
-
3
votes3
answers19533
viewsA: How to do a Ubmit sending filled data in the form to an email?
According to your comment I would use this form directing it via POST to a Struts action and in this action I would use Velocity to build the HTML template of what email will be. Then, to actually…
-
6
votes1
answer208
viewsQ: jQuery validate - skip_or_fill_minimum rule does not fire if used more than once
I have a form that consists of four inputs and they are grouped in pairs. The rule for this form is very simple, if I fill in one of the pair’s inputs, I have to fill in the other as well or fill…
-
39
votes8
answers48548
viewsQ: How to pass parameters in function calls by reference in Javascript?
I recently asked the question Why should we use Anonymous functions with jQuery instead of the function directly? and along with the accepted answer came a second question: How to pass arguments to…
-
20
votes2
answers523
viewsQ: Why should we use Anonymous functions with jQuery instead of the function directly?
I have a question, some methods of jQuery expect a function as parameter, but to work they must receive an Inner Function as parameter instead of a function directly, as in the example below:…
-
15
votes4
answers3950
viewsQ: When to use ternary condition?
I particularly like the use of ternary condition, but I see many developers saying no, there is even a rule in Checkstyle when validating your code that encourages you not to use. See the example…
-
8
votes1
answer277
viewsQ: Is it possible to use sub-groups?
I have a form and this has three pairs of start/end dates. For each pair I validate if both dates are filled in or none of them is filled in, because it is not allowed to fill in the start date and…
-
2
votes2
answers564
viewsA: jqGrid does not call the blockUI method without using window.setTimeOut when ajax request fails
The @utluiz suggestion was correct in the first reply. My default AJAX request configuration was in conflict with the plugin jqGrid. We have a plugin jQuery here of the project, then I deleted the…
-
66
votes6
answers27772
viewsQ: When, why and how to use the "use Strict" directive in Javascript?
I had never seen before the use of this directive, but almost all the most mature jQuery plugins use it. I would like to know when and how to use it and what its purpose is.
-
4
votes2
answers564
viewsQ: jqGrid does not call the blockUI method without using window.setTimeOut when ajax request fails
I’m using jqGrid 4.54 in my project and I want to put a message blocking the whole screen with the plugin blockUI when my AJAX request encounters some server error like 500 error. I know that the…