java - Primefaces PickList Ajax notfiring on transfer event to bean -
hey stackoverflow community, maybe guys able me out since im out of ideas.
im using primefaces 6.0
problem: picklist not firing event java code can't handle it.
my view.xhtml
<p:dialog header="division" widgetvar="dialog2" id="divdialog" minheight="400" minwidth="400" showeffect="pop" resizable="false"> <h:form> <p:picklist id="picklist" value="#{workerviewcontroller.wvm.explicitdivision}" var="divlist" itemlabel="#{divlist}" itemvalue="#{workerviewcontroller.wvm.division}" showsourcefilter="true" showtargetfilter="true"> <p:ajax event="transfer" listener="#{workerviewcontroller.ontransfer}" /> </p:picklist> </h:form> <h:form> <p:commandbutton value="save data" actionlistener="#{workerviewcontroller.ondivisionsave()}" /> <p:commandbutton value="close" type="button" onclick="pf('dialog2').hide()" /> <p:commandbutton value="reset" update=":#{p:component('workertable')}" actionlistener="#{workerviewcontroller.resetfilter()}" /> </h:form> </p:dialog>
i've tested around , if move savedata button inside upper form-tag doesn't fire events anymore well.
my bean:
@managedbean @scope(value = "request") @controller public class workerviewcontroller { .... public void ontransfer(transferevent event){ system.out.println("write smthing"); //this.wvm.ontransfer(evt); } }
my idea of issue source right related dialog inside of tabview other actionlisteners anywhere else in code work.
thanks guys
Comments
Post a Comment