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 <[EMAIL PROTECTED]> 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
==============================================================================




Reply via email to