spring - Primefaces <p:ajax update="@all" /> doesn't work -
i've got problem using p:ajax update atribute element. when use in code <p:ajax update="@all" />
getting javax.el.propertynotfoundexception
. when use <f:ajax render="@all" />
don't any. though thouse tags same. can explain whats happening?
i using mojjara implementation, primefaces 3.5 , liferay jsf portlet bridge.
example of stacktrace:
caused by: javax.el.propertynotfoundexception: /pages/views/personform.xhtml @95,99 value="#{personmanagementbean.item.contact.phonenumber}": target unreachable, 'null' returned null @ com.sun.faces.facelets.el.tagvalueexpression.gettype(tagvalueexpression.java:100) @ org.primefaces.renderkit.inputrenderer.findimplicitconverter(inputrenderer.java:170) @ org.primefaces.renderkit.inputrenderer.findconverter(inputrenderer.java:190) @ org.primefaces.renderkit.inputrenderer.getconvertedvalue(inputrenderer.java:196) @ javax.faces.component.uiinput.getconvertedvalue(uiinput.java:1030) @ javax.faces.component.uiinput.validate(uiinput.java:960) @ javax.faces.component.uiinput.executevalidate(uiinput.java:1233) @ javax.faces.component.uiinput.processvalidators(uiinput.java:698) @ javax.faces.component.uicomponentbase.processvalidators(uicomponentbase.java:1214) @ javax.faces.component.uicomponentbase.processvalidators(uicomponentbase.java:1214) @ javax.faces.component.uicomponentbase.processvalidators(uicomponentbase.java:1214) @ javax.faces.component.uiform.processvalidators(uiform.java:253) @ javax.faces.component.uicomponentbase.processvalidators(uicomponentbase.java:1214)
two buttons:
<p:commandbutton value="not working" action="#{enrollmentmanagementbean.cancelenrollment}"> <p:ajax update="@all" /> </p:commandbutton> <h:commandbutton value="working" action="#{enrollmentmanagementbean.cancelenrollment}"> <f:ajax render="@all" /> </h:commandbutton>
optimusprime (main developer of primefaces) states update="@all"
bad idea , primefaces not implement design link forum post.
what in order around problem rely on page refresh javascript. put in oncomplete
attribute of button.
oncomplete="window.location.replace(window.location.href);"
i believe should solve problem if still have it, or here future reference.
Comments
Post a Comment