The model update need to do things differently based on the flag before going to Invoke application phase. So the flag needs to be set before Model update phase. It would be nice if the phase when the action listeners are called is configurable, and much more useful.
 
  <actionListener=" .... " phase=" ... " />

Mike Kienenberger <[EMAIL PROTECTED]> wrote:
What about callling "this.setFlag(true)" as the first line of code in
"#{bean.check}?" If it's a matter of having both true and false,
create "checkTrue() and checkFalse()" -- you can even have them both
call "check()" after setting the flag value.

On 3/17/06, Dave <[EMAIL PROTECTED]>wrote:
>
>
> ....
> > action="" immediate="true">
> > value="false" />
>

>
>

>
> 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 under will solve the problem.
> Model update setter methods can check the 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.
>
>


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

Reply via email to