title: Execute listener corresponding to selected tab in p:tabview on tabChange event
body: <p>I need to fetch corresponding data into bean whenever some certain <code>tab</code> is selected from the <code>tabview</code>. For this I have been trying to use <code>f:event</code> with <code>preRenderComponent</code> but that doesnt help with desired.</p>
  
  <p>How can I execute listener corresponding to the tab whenever a certain tab is selected in tabview. </p>
  
  <pre><code>               &lt;p:tabView dynamic="true" cache="false"&gt;
                      &lt;p:tab title="People I'm following" &gt;
                          &lt;f:event type="preRenderComponent" listener="#{listRetriever.retrieveFollowies()}"/&gt;
                          &lt;ui:repeat value="#{listRetriever.list}" var="person"&gt;
                              #{person}&lt;br/&gt;
                          &lt;/ui:repeat&gt;
                      &lt;/p:tab&gt;
                      &lt;p:tab title="People following me" &gt;
                          &lt;f:event type="preRenderComponent" listener="#{listRetriever.retrieveFollowers()}"/&gt;
                          &lt;ui:repeat value="#{listRetriever.list}" var="person"&gt;
                              #{person}&lt;br/&gt;
                          &lt;/ui:repeat&gt;
                      &lt;/p:tab&gt;
                  &lt;/p:tabView&gt;
  </code></pre>