Posts by Leonardo Costa • 301 points
9 posts
-
1
votes1
answer324
viewsA: Target Unreachable, 'reply' returned null - Selectoneradio
The mistake Target Unreachable, 'resposta' returned null means someone on the way back null, so JSF cannot recover the value of the property, i.e., or the responderSimuladoBean is null (I don’t…
-
1
votes2
answers82
viewsA: fill as data an Array up to a specific value
The problem is that you forgot to fill the ArrayList of names before the for. This line nomes.add(nomes.get(i)); doesn’t make much sense either. Translate, you should take the for, read the value…
-
1
votes2
answers187
viewsA: Java PDF Report Error
Expensive, At the end of the Try has the commands: File destFile = new File(destFileName); if (destFile.exists()) desktop.open(destFile); <--- este principalmente. They serve to open the file by…
javaanswered Leonardo Costa 301 -
1
votes2
answers9986
viewsA: Spacing between specified columns in the table without creating <td> a false
I believe with an edge you can do it like this: border-right: 5px; border-right-color: white; border-right-style: groove; In my test I put here: .P_fixa .submenu_titulos { width:40%; border-right:…
-
0
votes2
answers70
viewsA: Syntax error when using UNION
In Union, if I consider that there are no errors in your variables, the fields must have the same name, the same type and the same order in both SQL’s so there are no errors. (SELECT a.id,…
-
2
votes3
answers5145
viewsA: Pick number after comma
Expensive, The only way I could find was by converting the number to String and making a substring with it. I put the value with the point instead of comma to do the test, but you can put your field…
-
1
votes2
answers767
viewsA: Path between 2 nos of a graph using smaller number of colored edges
Your question does not have a simple answer because this graph problem is not simple. You must use an algorithm that solves the "Minimum Path Problem" (English: Shortest path problem). I don’t know…
-
2
votes2
answers336
viewsA: Instantiate an external Java directory class in JSP
You have two options: Create a web project in Eclipse and let it assemble the package for you. You need to copy the files .class inside the directory WEB-INF/classes in your project. Example (put…
-
5
votes3
answers2362
viewsA: How to Recover User Session
The problem is how you recover the session. This should be done through Facescontext within the method in which you want to recover the session. It would look something like this: @Transactional…