<h:form>
   ....
<h:commandButton value="Check"
     action="" immediate="true">
     <t:updateActionListener property="#{bean.flag}"   
               value="false" />
</h:commandButton>
 
</h:form>
 
What I need is:
    set a flag(boolean) before Model update phase, then
    go to Model update phase, then
    go to Invoke Applicate phase, call the action method.
 
However, set immediate=true, both Action listener and action method are executed in ApplyRequestValue phase, and Model update is skipped.
 
If immediate= false, normal life cycle.  Action listener and action method are executed in InvokeApplication phase.
 
Both ways are not what I need.
 
Using <param> under <commandButton> will solve the problem.
    Model update setter methods can check the <param> value.
But this can be a security issue because client can pass a parameter in URL to collapse the server side.
 
Any other solutions?
Thanks for ideas.
 
 


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

Reply via email to