Posts by JavaX_javaX • 141 points
15 posts
-
1
votes0
answers83
viewsQ: Maven does not load all classes of Webservice wsdl mails
Good afternoon! Personal, I am tempted to use a web service of the post office wsdl to be able to search the address from the zip code, and to download the classes I am making use of the Maven,…
java-eeasked JavaX_javaX 141 -
2
votes1
answer218
viewsQ: Check if there is a file in a particular jsf rendered folder
People I am saving image in a certain project folder and I need to check if this file exists in the folder. Was using a command as below:…
-
1
votes2
answers755
viewsQ: Generic DAO with CDI error = cannot be cast to java.lang.reflect.Parameterizedtype
I’m trying to implement a generic CDI DAO. Apparently I’m doing it right, but I’m getting the following error: cannot be cast to java.lang.reflect.Parameterizedtype This error is pointing me to this…
-
3
votes1
answer1030
viewsQ: How to load picture graphicImage primefaces into different component
My idea at first is this: I have a component p:dialog header="Foto Funcionário" widgetVar="dlg" resizable="false", where I capture my image and crop, as soon as this image is cropped, I would like…
-
1
votes0
answers49
viewsQ: how to change an object instead of one properties at a time using JPA
I have a @Entity Call employee, when I need to change properties name, position, salary etc.. I have to make one property at a time as example below. My class Functioncontroller @Transactional…
jpa-2.0asked JavaX_javaX 141 -
0
votes1
answer104
viewsQ: Correct way to update an object property
I created an update method, however I am having to create a variable to update my position property, which although it is working, I think this would not be the correct way to treat an object. I…
-
0
votes1
answer948
viewsQ: View PDF JSF primeFaces
Staff I am creating a pdf file up ai beauty. Now I would like to display this PDF in a formulário.Xhtml Below is the code I use to create the pdf in case someone can help me: Creapdfbean class…
-
1
votes0
answers366
viewsQ: javax.faces.Validator.BeanValidator.MESSAGE={1} {0}
I created a form where I have the following Name, Job, Login and Password fields. I’m using the javax.faces.validator.BeanValidator.MESSAGE={1} {0} to returns error message to the user. I know it is…
-
-1
votes1
answer457
viewsQ: Edit Record Using Jpa
Good morning Personal, I’m trying to edit record. well the scenario is the following have my screen edit that is bringing me the data correctly. but when I do the editing it updates on the screen no…
-
0
votes2
answers64
viewsA: Creating XML File With Find a particular user in the table using foreach jpa java
Felipe and n3uRoQuiLa, Thank you again for your help. I could solve as below, after all I am working object oriented was simpler than I thought. funcionariosModel.forEach(funcionario -> { //…
jpaanswered JavaX_javaX 141 -
0
votes2
answers64
viewsQ: Creating XML File With Find a particular user in the table using foreach jpa java
Good morning !! Personal my doubt is as follows I have two tables a Person and another Employee. I am doing a for in both tables to be able to create an XML file, but as I am not returning the…
jpaasked JavaX_javaX 141 -
0
votes1
answer3898
viewsQ: Object References an Unsaved Transient instance - save the Transient instance before Flushing
I have the following problem I have three tables one with the name User with the following properties: Id, User, Username and Password Person with the following properties Id, Name Functionary with…
-
0
votes1
answer213
viewsQ: I’m trying to return the name but can only return the ID
I’ve been researching for days and I couldn’t find a solution. The scenario and the following: I have an employee registration screen and an employee editing screen with two classes a pessoa where I…
-
0
votes0
answers92
viewsQ: completeMethod primeFaces is returned the id where it should return name
I am creating a form where I have neighborhood address name etc, and for that, I am using prime Faces. <p:outputLabel value="Nome" for="nome" /> <p:autoComplete id="nome" size="60"…
-
3
votes1
answer417
viewsQ: JPA error Hibernate = foreign key is returning null
After a long time of research, without success, I decided to post my doubt. I am using JPA/Hibernate and I have two tables: a Pessoa and another Funcionário. The error occurs when I save my data,…