jsf - primefaces input text passing to managedbean as null in dialog(modal=true) -
i use primefaces 5.1 , jsf 2.2 .i have dialog (modal=true) .i have fullpagelayout.and have menuitems.İf u clicked menua,opening datatable.and firstly u select row , showing dialog.enter th password , submit it.all works fine.and in same page(if u didn't click menu items etc.) u can properly.but if u click menua menuitems in fullpagelayout again.it not work.password value passing null managedbean.so showing password required message.(managed bean scoped viewscoped)
codes:
<h:form id="bla"> //datatable <p:ajax event="rowselect" update="..dialog.." onstart="pf('dialog').show()" /> </h:form> <p:dialog header="welcome" widgetvar="dialog" position="center center" closeonescape="true" showeffect="fade" hideeffect="fade" appendto="@(body)" draggable="false" resizable="false" modal="true"> <h:form id="blabla"> <p:password id="password" value="#{bean.value}" requiredmessage="required password!" required="true"> <f:validatelength minimum="4" maximum="6" /> </p:password> <p:commandbutton value="go" update="growl" action="#{bean.valueop()}" oncomplete="pf('dialog').hide()"> </p:commandbutton> </h:form> </p:dialog> why password value passing backing bean null?thanks in advance..

Comments
Post a Comment