Questions tagged as 'primefaces'

1
answer

Clear the form after registration (JavaServer Faces)

After you have made a registration, it clears the form normally, but when I turn the page and come back to the registration page, the fields are filled with the values that I registered earlier. The scoped I'm using is the @ViewScoped. Regist...
asked by 06.09.2017 / 16:41
1
answer

Problem with CSS in JSF & Primefaces

Project - JSF CDI Mysql // I'm not using Maven Good afternoon guys, my question is this: I would rather than use style="....."; in xhtml code, to make code more elegant, make use of css. For example, I want instead of: <p:fieldset sty...
asked by 31.08.2017 / 23:37
1
answer

Code redundancy in my .xhtml JSF - Primefaces

I have this table in 2 pages of mine and I ended up copying and pasting this code, the only thing I had to change was the "bean", in one I used "bean1", the other I used "bean2" p> Is there any solution to avoid this code redundancy? Or better...
asked by 04.08.2017 / 20:44
1
answer

Null in PrimeFaces component UploadFile

I'm having trouble retrieving this file, file , in my bean. .xhtml <h:form id="form" enctype="multipart/form-data"> <p:fileUpload value="#{bean.file}" skinSimple="true" mode="simple" /> <p:comma...
asked by 28.06.2017 / 21:54
1
answer

How to generate a pdf with Primefaces 5.3 using dataexport

This is my screen for generating pdf <p:panel style="margin-left:30%" id="pnlTituloGabarito"> <p:commandButton value="Export to PDF" ajax="false"> <p:dataExporter type="pdf" target="subTableRespostas" fileName="g...
asked by 08.06.2017 / 01:39
2
answers

Update in datatable after updating data [closed]

Speak, I'm having a problem updating a column in my datatable after an edit. Use a dialog to edit the data you want. Everything is saving in the database, the problem is when updating the table, the fields are being updated with the new values,...
asked by 16.06.2017 / 13:56
1
answer

Prime faces, play data from a dataTable to a dialog

screen contact <?xml version="1.0" encoding="utf-8" ?>                                                                                           <p:growl autoUpdate="true"/> <p:panel header="Formulário" id="panel">...
asked by 11.05.2017 / 16:39
1
answer

JSF problem in the Logoff method

Good evening I have the following problem, I have a JSF application and I need to make a logoff command, I did several and all gave the same result, it "kills" the user session (logs), but does not redirect to login screen (which is screen I...
asked by 08.06.2017 / 05:45
2
answers

Inserting data using JPA

I need help saving the data of an application using JPA. I followed a tutorial that only helped in the implementation of the login but did not show how to save the data. In this case, I'm trying to register a user. When I click save it shows an...
asked by 23.05.2017 / 16:51
1
answer

Email with JavaMail copy

I have a system that sends email, it works normally, I want to insert a field to send copy of the email, a CC or CCo. here's a snippet of my code below. Entity private String destino; private String titulo; private String mensagem; M...
asked by 16.05.2017 / 13:07