Questions tagged as 'java-ee'

1
answer

Change Dialog is not displaying the data

I have a maven project that is using jsf, jpa and primefaces in which there is a dialog that is being used to update the data, except that the inputText is empty when it is called instead of appear the data in it (which is defined in the managed...
asked by 01.04.2017 / 18:49
0
answers

External js function in jsp

Hello, I want to use an external js function, a js typeahead, and call it in the input of my jsp, but it is not working accordingly. Importing js from my jsp. <script src="javascript/todospaises.js" type="text"></script>...
asked by 10.03.2017 / 04:08
0
answers

Problem with Widfly

I'm having an error while starting the bookstore project with Widfly 10. Even the connect to the database was working, agr when connecting to mysql I'm having problems. I've already created the database. I put the module and jar files in dir:...
asked by 01.03.2017 / 00:46
1
answer

I can not change my object coming from a dataTable - JSF with Primefaces

I am retrieving my object from the dataTable plus the time I redirect the dataTable to another page to make change, it presents an error. Plus it takes the ID of the object, I did a convert more without success. MyConverterpackageconverter;i...
asked by 02.03.2017 / 02:33
1
answer

Jpa does not create column @lob

I am mapping a @lob field to write image to a table, but jpa creates the table, but does not create the column. I created the column manually in MYSQL, but the bytes do not persist there either. My Entity: @Entity @Table(name = "TB_IMAGEM"...
asked by 19.03.2017 / 19:42
1
answer

Spring + Hibernate

Good morning! I am studying Spring MVC, Maven and Hibernate. In the project structure created with Maven, where do I place the applicationContext.xml file? Thank you.     
asked by 02.02.2017 / 14:42
0
answers

JsfExceptionHandler ConstraintViolationImp messageTemplate

I have the mapping in the user class: @NotNull(message = "Contato não pode ser vázio.") @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "contact_id") @Getter @Setter private Contato contato; Which has the c...
asked by 17.12.2016 / 03:33
0
answers

How to add the necessary permissions for Printer Job to work on Tomcat7

Environment My environment is Tomcat7 and I'm using Java 1.8, Windows 10 and I'm using a PDF Reader to test the print. My user is an administrator of the machine. Problem I'm trying to send a PDF to print, but this PDF does not prin...
asked by 25.10.2016 / 20:29
1
answer

Validate date smaller than current date [closed]

My question is as follows. I have a JSP form for registering students with multiple attributes, one of them is the date of birth. Until then I was registering the date only by validating the format (dd / MM / yyyy) and with annotations. But now,...
asked by 17.11.2016 / 14:56
0
answers

Address finder by zip code in Java

Good morning, guys! I have a zip code finder that is no longer working. When I use the URL passing my zip code it returns the query. Thank you in advance for the help! Here's a sample link to test the direct query in the browser. Here is...
asked by 03.09.2016 / 16:18