title: passing value of primefaces tabview activeIndex to a widget managed bean
body: <p>I am having a tabMenu using menu items each of the menu items has a parameter "i" that is linked to the activeIndex to indicate which page to load when the tab is clicked. </p>
  
  <p>The problem I faced is that I need to get this parameter value of i to call another widget that is doing an action / processing. Is there any way I can get this parameter value of i and pass it to my widget managed bean (the widget contains a command button that is supposed to call a method in the widget managed bean and do some processing based on the menu that is selected). </p>
  
  <p>The widget is saperate from the tabMenu, but still is on the same page as the tab menu. Is there a way to do this?</p>
  
  <p>TabMenu is something like this:</p>
  
  <pre><code>&lt;p:tabMenu activeIndex="#{param.i}"&gt;
          &lt;p:menuitem value="AAA" outcome="/ABC/DEF/123.xhtml"&gt;
              &lt;f:param name="i" value="0" /&gt;
          &lt;/p:menuitem&gt;... continued similar menuitem for 3 times with values for i 0-3
  &lt;/p:tabMenu&gt;
  </code></pre>
  
  <p>My widget contains a command button that looks like this:</p>
  
  <pre><code>&lt;h:commandButton outcome="widget" action="#{mbean.callWidgetMethod}" &gt;
  &lt;/h:commandButton&gt;
  </code></pre>
  
  <p>Can anyone please guide me? Thanks in advance.</p>