title: How to navigate to a page after bean is called
body: <p>I have a rich:toolBar inwhich when I click on a menuItem, it is supposed to initialize few parameters in my backing bean and then navigate to the respective view page.</p>
  
  <p>Could you let me know how this could be done?</p>
  
  <p>i.e as per code after addNew method is called, the view should be as per navigation rule.</p>
  
  <p>rich:toolBar code is :</p>
  
  <pre><code>    &lt;rich:toolBar id="menuBar"&gt;
  
          &lt;rich:dropDownMenu&gt;
  
              &lt;f:facet name="label"&gt;Menu&lt;/f:facet&gt;
  
              &lt;rich:menuItem value="#{msg.menuAddMember}" submitMode="ajax"
  
                  action="#{memberBean.addNew}"&gt;
  
              &lt;/rich:menuItem&gt;
  
          &lt;/rich:dropDownMenu&gt;
  
      &lt;/rich:toolBar&gt;
  </code></pre>
  
  <p>and</p>
  
  <p>navigation rule is :</p>
  
  <pre><code>&lt;navigation-rule&gt;
  
      &lt;from-view-id&gt;/common/template.xhtml&lt;/from-view-id&gt;
  
      &lt;navigation-case&gt;
  
          &lt;from-action&gt;#{memberBean.addNew}&lt;/from-action&gt;
  
          &lt;to-view-id&gt;/pages/addMember.xhtml&lt;/to-view-id&gt;
  
      &lt;/navigation-case&gt;
  
  &lt;/navigation-rule&gt;
  </code></pre>
  
  <p>Regards,</p>
  
  <p>Satya</p>