You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2007/06/01 17:52:06 UTC
Re: How to remove the UI component state?
What about doing something like this? This is how I clear out all
state when the end-user clicks the "Reset" button on a search page.
<navigation-rule>
<description></description>
<from-view-id>/pages/Search.xhtml</from-view-id>
<navigation-case>
<from-outcome>clear</from-outcome>
<to-view-id>/pages/Search.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
On 5/15/07, Leyzerzon, Simeon <si...@credit-suisse.com> wrote:
>
>
>
> Hi,
>
> I have a requirement whereby one needs to clean all the state before
> re-rendering a page when clicking on a tab. The way I implemented it is
> when tab is clicked the request goes to a servlet which clean the session
> with regards to the contents of the managed beans. Unfortunately, the UI
> component state still seems to be present and remembered so the page doesn't
> refresh competely.
>
> What would be the syntax to clean the UI component state alltogether in Java
> within a servlet?
>
> I have this in my web.xml:
>
> <context-param>
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> <param-value>session</param-value>
> </context-param>
>
> Thank you,
> Simeon
>
> ==============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==============================================================================
>
>
>
>