primefaces - Is it possible to change from Render Phase to Update Model Phase programmatically in JSF lifecycle? -
i have primefaces inputtextarea component in validation implemented. btw, coming pf wizard running dialog. 1 of steps in wizard contains below code.
<h:form> <h:panelgrid id="container"> <p:inputtextarea id="textarea" value="#{foo.bar}" required="true" requiredmessage="data missing" /> <p:message for="textarea" /> </h:panelgrid> <p:tree id="tree" value="#{foo.zoo}"> <p:treenode>...</p:treenode> </p:tree> <p:commandbutton value="apply" update="container tree" action="#{foo.applyvalue}" /> </h:form>
- validation kicks in if data missing inputtextarea.
- create value tree node.
- click commandbutton set value zoo variable bar variable in applyvalue method.
however noticed step 3) never happens b/c foo.applyvalue never kicks in. state still in render phase instead of update model value phase believe. there way change phase programmatically?
Comments
Post a Comment