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> 
  1. validation kicks in if data missing inputtextarea.
  2. create value tree node.
  3. 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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -