Hello folks, for what i've been reading here its a common problem to JSF Programmers, have tried many of the answers to previous topics but i can resolve my issue. Thats why im opening this topic
Topics ive read :
1- Primefaces dialog + commandButton
2- Input given in JSF page does not set that value to manged bean variable
3-Setting Managed Bean attribute's value from JSF page and using it in bean's methods
4- PrimeFaces nested form inside p:dialog with appendTo="@(body)
I've having this trouble for over a week now , im using -->
Primefaces 5.3
Apache Tomcat 7
Eclipse Kepler as IDE
So... what is happening is, i have two commandButton inside a dialog, one its related to Save (Submit) data to the server, and the other is to cancel the process. Right now when i click on the save button it calls the bean method, but the data that supposes to get to this method its comes empty or null ... i dont know why this is happening
I've tried so far:
1 - Changing from action to actionListener
2 - Removing/adding the "type" atribute
3 - Changing oncomplete for onclick
and many more that i not even remember ...
Ill post below part of the code of the XHTML
Any replies will be appreciated :)
Thanky you all,
Cheers!
<p class="text-right">
<p:commandButton value="#{msgs.button_accept}" id="addNewInvGroupCButton"
action="#{candidateBean.addInvGroup}" icon="fa fa-check" process="@this"
update=":mainForm:somInvestigationGroupBox,dialogInvestigationGroup"
oncomplete="PF('dialogInvestigationGroup').close()"/>
<p:commandButton value="#{msgs.button_close}" id="discardNewInvGroupCButton"
actionListener="#{candidateBean.resetInvGroupData}" oncomplete="PF('dialogInvestigationGroup').close();" process="@this"
></p:commandButton>
</p>