Questions tagged as 'jsf'

1
answer

Insert data into table with jsf, hibernate jpa

I am having problems, in the project I am developing in jsf using jpa and hibernate. I am not able to register the customer data in my database how can I relatify the registration? Code EntityManagerFactory factory = Persistence.createEntit...
asked by 22.06.2017 / 01:19
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
1
answer

Error redirecting to a jsf page inside a bean

(RESOLVED) Error redirecting to a jsf page within a ManagerBean. I have an application in Java EE, and I want to validate within the LoginBean constructor (ViewScope) to redirect to my main page if there is already a session open and valid for t...
asked by 31.03.2017 / 22:51
1
answer

JSF change information in XHTML

Good evening. I have an application in java / jsf I'm having a hard time showing information in XHTML, Well I have SelectOneMenu to save an information in the database: <p:selectOneMenu id="PermissaoAcesso" value="#{usuario...
asked by 17.04.2017 / 04:57
1
answer

View PDF JSF primeFaces

Personal I'm creating a pdf file so it's beauty. Now I would like to display this PDF in a formulário.Xhtml Here is the code I use to create the pdf if someone can help me: CreatePdfBean class package br.com.view; import java.io...
asked by 16.03.2017 / 15:45
1
answer

Session getting open when I close the browser

I have a user control that stores a list of logged-in users on the system. Together with each user, I keep the id of the session that is logged in. Each session lasts around 20 without the user tinkering with the system. I do not allow the same...
asked by 07.04.2017 / 14:56
1
answer

Primefaces (TabView): Null properties when saving

I'm using a TabView with two tabs and each tab with an external file with fields. By clicking the "Save" button the attributes are coming as null. Here is the code: Registered Clients.xhtml: ... <h:form id="frm-cadastro-cliente-dialog"&g...
asked by 27.02.2017 / 20:13