On 6/17/05, Jesse Alexander (KBSA 21) <[EMAIL PROTECTED]> wrote:
> Add a "refresh()" function and when you need it, just look it up using
> the variable-resolver, cast it and call the refresh-method...
> 

The refresh() approach is one way to do this.  Another, if you can
afford the processing overhead of completely recreating the bean, is
to simply delete it from session scope when you want it to be
reinitialized.  If the managed bean name is "foo", try something like
this:

    FacesContext context = FacesContext.getCurrentInstance();
    context.getExternalContext().getSessionMap().delete("foo");

This ripples through to deleting the corresonding session attribute,
so the next expression evaluation that includes "foo" at the beginning
will cause the managed bean to be recreated.

> hth
> Alexander
> 

Craig

Reply via email to