You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Anton Gavazuk <an...@gmail.com> on 2009/06/19 15:45:52 UTC

Re: setting managed bean property depending on commandButton action result

 just store any value in session scope and show it on final page

2009/6/17 syllepsa <sy...@wp.pl>

>
> Hi!
>
> I have got commandButton. The button invokes action method. Depending on
> the
> method result I would like to set managed bean String property:
>
> 1. for success: "You have been correctly logged in"
> 2. for failure: "Try once again"
>
> Then user should go to the next page where proper message will be
> displayed.
> Does anyone know how to do that? I know that there is
> f:setPropertyActionListener but I can only declare one value. In my case
> the
> value should be dependent on commandButton action result.
>
> Thank you in advance
>
> Mariusz
> --
> View this message in context:
> http://www.nabble.com/setting-managed-bean-property-depending-on-commandButton-action-result-tp24081749p24081749.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>