primefaces - p:commandButton ajax not called inside p:dataList - even when its wrapped in p:column -
i having same problems post: p:commandbutton ajax not called inside p:datalist
where p:commandbutton's action / actionlistener not being called when placed in p:datalist.
i followed advice , wrapped p:commandbutton in p:column, , testing followed code here: primefaces p:commandbutton action not called
..to test both action , actionlistener attempts @ sending ajax call backing bean.
both called when placed outside p:datalist .. never when inside it.
here's backing bean:
@managedbean @sessionscoped public class fullscreendashboardbean implements serializable { ... public string testbuttonaction() { log.info("testbuttonaction invoked"); return ""; } public void testbuttonactionlistener(actionevent event) { log.info("testbuttonactionlistener invoked"); } ... }
/////////////////
// xhtml code: ...
<div class="left_content"> <h:form id="leftcontentform"> <p:datalist value="#{clienttargeturlsbean.clientandturllist}" var ="selectedclients" id="selectedclientlisttest" paginator="false" type="none"> <p:column> <p:commandbutton action="#{fullscreendashboardbean.testbuttonaction}"/> <p:commandbutton actionlistener="#{fullscreendashboardbean.testbuttonactionlistener}"/> </p:column> </p:datalist> ... </h:form> </div>
they both fire backing bean's listeners when outside datalist, not when placed inside....
any ideas - massively appreciated...
thank stackoverflow-ers!
Comments
Post a Comment