Hi,

    When user cancels out of wizard then you can
execute the following lines of code :

FacesContext facesContext =
FacesContext.getCurrentInstance();
                HttpSession session = (HttpSession)
facesContext.getExternalContext().getSession(false);
                if (session != null) {
                        session.invalidate();
                }

This will remove the session objects and whenever user
reenters the system, session beans will be
reinstanciated.

regards..
Arvind


--- Charbel Abdul-Massih <[EMAIL PROTECTED]>
wrote:

> Hello,
> 
> I have a wizard flow that utilizes a backing bean in
> session scope...if
> a user should cancel out of the wizard at any point,
> is there a way to
> reset the backing bean and its properties??? Or
> better yet, is there a
> way to completely remove the bean from the session
> so that next time the
> user enters the wizard, it's instantiated again???
> 
>  
> 
> Thx,
> Charbel
> 
>  
> 
>  
> 
>  
> 
> 



                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to