Posts by Gedson Silva • 184 points
13 posts
-
0
votes1
answer290
viewsA: Creating dynamic tabs and combos - Jsf / Primefaces
My case was solved by "disabling" validations <f:validateBean disabled="true"/>. In cases where this is not necessary Validator implementation would also be an option.
-
4
votes1
answer149
viewsA: Data access object - DAO
Since I said I’m learning design patterns starting with an observation, you’re leaving out your implementation a key actor in the pattern, the interface. See here. About what may or may not be…
-
0
votes2
answers732
viewsA: REST in Java Spring project does not work
Control+C and Control+V in your pom.xml and controller. Kept that is calling wrong url.…
-
1
votes2
answers362
viewsA: I cannot assign value to an Object Arraylist
Main.clienteDB does not return you Client but Arraylist. To have a customer and be able to do what you want you need to say which customer you want Main.clienteDB.get(0).getNome(). Obviously this…
javaanswered Gedson Silva 184 -
1
votes3
answers808
viewsA: Spring MVC Enum
You really don’t accept it. You are trying to pass a value that does not correspond to the type of data you have stated. If you were wearing private Integer tipoCliente it would be possible to pass…
-
1
votes1
answer290
viewsQ: Creating dynamic tabs and combos - Jsf / Primefaces
I am working on a project that has as a basic requirement that the user can create screens to display data coming from various data sources. The user creates what we call Dashboard and includes…
-
0
votes1
answer119
viewsA: Generate Url through form
You need to use the jsf viewParam tag. <f:metadata> <f:viewParam name="username"/> </f:metadata> There are several ways you can work with this received value, apply converters,…
-
0
votes1
answer53
viewsA: Null Pointer Exception Javafx
Image image = null; SwingFXUtils.toFXImage(bufImage, (WritableImage) image); You are trying to cast null for Writableimage. For this to work you need to instantiate/inject Image somehow.…
javaanswered Gedson Silva 184 -
2
votes1
answer552
viewsA: Container and swing design
Container is a Component which provides space for you to include other components, including other containers. It is common to treat container as screen and Component as objects to be used in it,…
-
1
votes1
answer1058
viewsA: Create an Upgrade System - Java
I once had to make a "version updater" for a VB application. The summary of the work would be, the user clicks on the updater (he doesn’t even know that there is another executable besides this one)…
-
0
votes3
answers201
viewsA: Is making queries in a view, in the MVC standard, a bad practice?
I usually compare these cases to someone who drives a vehicle without a license. There is a standard that defines how and who can direct, as much as there is an architectural pattern that defines…
-
0
votes1
answer203
viewsA: Deployment problem for an application on Tomcat
Caused by: org.postgresql.util.Psqlexception: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is Accepting TCP/IP Generally speaking there…
javaanswered Gedson Silva 184 -
0
votes1
answer988
viewsA: How to get URL value
You need to use a guy named Viewparam is a metadata that added to your page allows you to capture this type of information passed by parameter. Primefaces -…
javaanswered Gedson Silva 184