Questions tagged as 'jsf'

1
answer

Image does not appear in the project

Good morning, I'm trying to put a pdf icon in my project, but the same does not appear. I'm using f: facet this way. <h:commandLink> <p:graphicImage name="/resources/img/pdf.png"/> <p:dataExporter type="pdf" target...
asked by 16.02.2018 / 13:23
1
answer

Error executing JSF project

I'm uploading a jsf project, but this error in the console. log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please initialize the log4j system properly. org.hibernate.HibernateException: /hibernate.cfg.xml no...
asked by 15.02.2018 / 02:41
1
answer

Error listing data in DataTable

Good morning, I'm trying to make a simple listing of a table in a datafile of primefaces, but they are not listing anything. Follow the code so far. .xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3....
asked by 15.02.2018 / 12:50
0
answers

FetchType.EAGER: pagination with repeated data

I'm developing a Java system and came across a problem. There is a page called Calendar Triad that there is a list of enums, since the user could choose more than one answer option in which I will show the type of relationship I made so I could...
asked by 12.02.2018 / 21:17
1
answer

How to save an upload file to the bank with Primefaces

I researched a bit about uploading files with primefaces and found no code example that saved a file in the database. Can you save a file as if it were an attribute of a class?     
asked by 06.02.2018 / 03:05
1
answer

Hibernate is not generating id to write to the database

I'm doing the manipulation of an xls file, so that's fine. I can perform setters and getters normally. but in the save to go to the bank, the id is coming null and with that not recording in the bank. I'll post my codes for better visualization....
asked by 05.02.2018 / 12:43
1
answer

How do I extract information from a video when uploading with FileUpload?

On the system I'm doing, I need to prevent a video from being uploaded for more than 1 minute and let the user know. Any way to do that? Thank you.     
asked by 04.02.2018 / 15:30
1
answer

CommandButton does not register in SQL

I'm having trouble with my code, when I make a record of a new vehicle, it says that the vehicle is not being instantiated and is returning null. Here are my settings: DAOLayer:publicvoidadicionar(Veiculoveiculo)throwsSQLException{StringBuilder...
asked by 01.02.2018 / 18:36
1
answer

Problems sending email with JavaMail

I'm developing a Java Web application with PrimeFaces in which I use javaMail to send mail with user information, but it's giving error. The Bean: @Named @RequestScoped public class EnvioEmailBean implements Serializable { private stat...
asked by 03.02.2018 / 20:19
0
answers

How to retrieve list of records of a given table by the amount of record that appears in another in the criteria / JPA

I'm sorry for the title if it's confusing, but my situation is this: In the system I'm creating a user can log several tips on anything he knows. while persisting the hint in the database will be stored in the hint a reference of the user who re...
asked by 03.02.2018 / 01:10