Questions tagged as 'primefaces'

0
answers

Problem to convert with composite key in jsf, selecttonemenu

I'm doing a selectOneMenu where the itemvalue will be a compound key. Which will be separated by hyphen. However at the time of sending, the method getasobject is called several times, sending all items from my selectonemenu and not just the sel...
asked by 29.11.2017 / 17:14
0
answers

SelectOneMenu does not bring the description of the object in the edit

I'm doing a registration that has a relationship with another, I'm using SelecOneMenu to draw it, when I make a new one it works correctly, but in editing it is not bringing the object of the other class, and when I just save a record and I try...
asked by 22.11.2017 / 12:06
1
answer

Update a selectOneMenu (method in the bean)

Well I'm trying to get a selectOneMenu to populate another selectOneMenu and update a field, but I still do not quite understand how to do it. classes: package model; import java.io.Serializable; import java.util.List; import javax.persis...
asked by 17.11.2017 / 21:58
0
answers

Make Global Selection in the Application

I wanted to know how to make the overall year selection in the application and work with the data only with the selected year. Do I have to make the ManagedBean be ApplicationScope? How do I navigate the application and not lose it in select. .c...
asked by 13.11.2017 / 15:17
1
answer

When returning validation error in the form, object gets the values entered

On the screen I have a datatable that I fill in with a list of objects. Using f: setPropertyActionListener I hedge a list object to an auxiliary object and show it in a dialog. In the save method I say some validations, when it returns an error,...
asked by 22.09.2017 / 18:35
0
answers

Infinite Loop Method

I have a method call that is made with <p:remoteCommand /> of Primefaces on the Home Page of my system. And it works perfectly with some users, but with others it goes through the method in the full Bean, but never ends. The loop ha...
asked by 25.09.2017 / 15:31
1
answer

Problems with p: ajax in primefaces

Good morning, friends! I am a beginner in Java and I am trying to develop a system for church management. After many attempts, I can make ajax work, however I am not able to retrieve the id of the state that was selected in selectOneMenu. The id...
asked by 08.10.2017 / 16:05
1
answer

Error trying to validate @CPF and @CNPJ with Hibernate jSf2

Good evening I have a project of a system in JavaEE with JSF2 Primefaces. I am using the @CPF and @CNPJ mappings of hibernate, in the same attribute. But it is giving error "WARN: HV000129: EL expression '$ {value}' references an unknown propert...
asked by 21.09.2017 / 02:53
0
answers

JSF ERROR - The value of columns attribute must be greater than zero

I'm having this problem, specifically in the SelectManyCheckBox component. Follow my Bean code: package controle; import java.io.Serializable; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewSco...
asked by 21.11.2017 / 04:40
1
answer

Problem implementing JSF Converter with p: selectOneMenu

I'm having trouble implementing a convert to a simple selectOneMenu of Primefaces. When passing the getAsObject method of the Convert value parameter comes with the description of what was selected by the user and not with the Id that is in the...
asked by 30.08.2017 / 17:11