Questions tagged as 'primefaces'

1
answer

Problems with NullPointerException

I'm doing a Java application using 5.1 primefaces and it was working correctly to delete students in version 2.1 before upgrading to version 5.1. I'm trying to delete a student, but this error appears. But when you return to the page the stud...
asked by 29.06.2017 / 01:54
1
answer

What is the relationship between the Primefaces ajax and the events

In the face of certain problems during my development the following doubts arose for example. When I use the ajax tag in Primefaces , it has the event property where we pass events, so I had some questioning. Once I had...
asked by 06.08.2014 / 12:15
1
answer

How to add data to a list whenever a p: hotkey is used?

I have <p:hotkey> which is the component of Primefaces to work with shortcuts. Every time I press ctrl + 1 two new fields appear on the page, however I would like every time I press this combination the data that is in imputT...
asked by 17.08.2015 / 16:22
1
answer

How to execute a back bean method from a JavaScript function?

I'm developing a web page with canvas in HTML 5, it will be displayed in dashboards in real time, so I use ManagedBean to return their values, I have a component developed in JavaScript with its variable declared as global, and every 3 se...
asked by 20.10.2014 / 20:26
1
answer

Image upload with PrimeFaces on TomCat server, being saved only the path of the image in the database

Talk to people. I'm a beginner in Java and I'm doing a small Dynamic Web project using PrimeFaces, JSP, Hibernate and TomCat. Basically it is about several forms of registers and one of them is the register of users. The Domain, Bean, DAO, an...
asked by 10.06.2015 / 03:23
3
answers

Problems implementing implement convert to selectOneMenu

Good afternoon. I am having trouble implementing a selectOneMenu of objects in my xhtml. It is giving "Conversion Error". Could someone tell me what the code problem is? Error code: Erro de conversão ao definir o valor 'br.com.somore.model....
asked by 19.05.2015 / 20:51
1
answer

How to get the customer's request?

I'm trying to get the user session from the request, but I'm not sure if I'm capturing the request correctly: I have a Managed Bean ( SessionScoped ) with data. The following block creates a user's session in a login situation: @ManagedBean...
asked by 07.11.2014 / 01:32
1
answer

How to send an object by parameter?

I have this following code snippet <p:selectOneMenu id="agencia" converter="agenciasConverter" value="#{agenciasMB.agencias.agencia}" style="width:150px"> <f:selectItem itemLabel="Selecione a Agência" itemValue="" noSelectionOpti...
asked by 30.11.2015 / 18:59
1
answer

How to make the p: poll component not interfere in modal in Primefaces 3.5

I have a page that has a table in the center, this table is refreshed every 30 seconds using the p:poll <p:poll interval="30" update=":centro" /> The problem is that I have a menu that opens a popup (modal) with a form to be po...
asked by 24.04.2014 / 17:40
1
answer

How to get the value of the lazy attribute of the first datatable in the Bean?

To get the value of the selectionMode attribute of the datatable (primefaces) in MB: DataTable dt = (DataTable) FacesContext.getCurrentInstance().getViewRoot().findComponent("IdForm:IdDataTable"); String sm = dt.getSelectionMode(); A...
asked by 16.04.2015 / 16:45