You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2005/10/02 01:37:32 UTC

call backing bean method after restores data

Hi, 
I need to call backing bean init() after data are restored by <saveState>. which phase is the data restored, View Restore phase or Render Phase?  Can I add a phase listener to call backing bean's init() method ? 
 
Thanks. Dave

		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: call backing bean method after restores data

Posted by Mike Kienenberger <mk...@gmail.com>.
You'd want to create an "after the ViewRestore" phase listener .

Depending on what you're doing (for instance, if there's no
dependencies on other saveState objects), it might be easier to add
the code to execute immediately after your state is restored (how this
is done would depend on whether you're using Seralizable or
StateHolder).

On 10/1/05, Dave <ja...@yahoo.com> wrote:
> Hi,
> I need to call backing bean init() after data are restored by <saveState>.
> which phase is the data restored, View Restore phase or Render Phase?  Can I
> add a phase listener to call backing bean's init() method ?
>
> Thanks. Dave
>
>  ________________________________
> Yahoo! for Good
>  Click here to donate to the Hurricane Katrina relief effort.
>
>