0 Replies Latest reply on Mar 20, 2009 10:29 AM by Dongyao Zhao

    how to refresh backing bean in wizard

    Dongyao Zhao Novice

      suppose, that wizard-demo in richfaces-demo implemented by modalPanel, hat a cancel button in step 2, 3 and a finish button in step3, if click the cancel or finish, the modalpanel will hidden, the navigation can defined as the following

      
      <navigation-rule>
       <from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
       <navigation-case>
       <from-outcome>next</from-outcome>
       <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
       </navigation-case>
      
      <navigation-case>
       <from-outcome>reset</from-outcome>
       <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
       </navigation-case>
      
       </navigation-rule>
       <navigation-rule>
       <from-view-id>/richfaces/include/examples/wstep2.xhtml</from-view-id>
       <navigation-case>
       <from-outcome>previous</from-outcome>
       <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
       </navigation-case>
      
      <navigation-case>
       <from-outcome>reset</from-outcome>
       <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
       </navigation-case>
       <navigation-case>
       <from-outcome>next</from-outcome>
       <to-view-id>/richfaces/include/examples/finalStep.xhtml</to-view-id>
       </navigation-case>
       </navigation-rule>
       <navigation-rule>
       <from-view-id>/richfaces/include/examples/finalStep.xhtml</from-view-id>
       <navigation-case>
       <from-outcome>previous</from-outcome>
       <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
       </navigation-case>
      <navigation-case>
       <from-outcome>reset</from-outcome>
       <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
       </navigation-case>
       </navigation-rule>
      
      


      if wizard will be called again, the inputed first/last name will be cleared. i.e

      step1---next--->step2--next-->step3----finish--->step1
      |reset |reset
      step1 step1

      how to do it? Thanks in advance.