2 Replies Latest reply on Sep 14, 2007 12:23 PM by Arbi Sookazian

    clearing values in text fields after navigating back

    Arbi Sookazian Master

      Jboss 4.0.5.GA
      Seam 1.2.1.GA

      I'm using the following code in pages.xml to navigate back to a screen after the user finishes a conversation (use case):

      <!-- navigate back to adminUserRoles.xhtml after user submits a user role update -->
       <page view-id="/selectUser.xhtml">
       <navigation from-action="#{userRoleSearch.submitSelection}">
       <redirect view-id="/adminUserRoles.xhtml"/>

      The fields for first name and last name rendered by <h:inputText> tags are still populated with the input from the use case. Is there an easy way to have them cleared upon redirect? thx.