title: How to get current index of a PrimeFaces carousel?
body: <p>I have a PrimeFaces carousel in which I would like to display an editable inputTextArea. Unfortunately it seems p:carousel has no attribute to get the current index, like rowIndexVar in p:dataGrid. </p>
  
  <p>What are other solutions for rendering only the current inputTextarea ?</p>
  
  <pre><code>        &lt;p:carousel value="#{infb.infos}" var="info" **rowIndexVar="status"** numVisible="2" &gt;
                  ......
                          &lt;p:inputTextarea value="#{infb.textArea1}" rendered="#{status == 0 and infb.displayEditor}" /&gt;
                          &lt;p:inputTextarea value="#{infb.textArea2}" rendered="#{status == 1 and infb.displayEditor}" /&gt;
                          &lt;p:inputTextarea value="#{infb.textArea3}" rendered="#{status == 2 and infb.displayEditor}" /&gt;
                          &lt;p:inputTextarea value="#{infb.textArea4}" rendered="#{status == 3 and infb.displayEditor}" /&gt;
                          &lt;h:panelGrid rendered="#{infb.displayEditor}" columns="2"&gt;
                              &lt;p:commandButton value="Save" action="#{infb.modifyInfoText(info)}" /&gt;
                              &lt;p:commandButton value="Cancel" action="#{infb.cancelModifyInfoText(info)}"/&gt;  
                          &lt;/h:panelGrid&gt;
                   .....
          &lt;/p:carousel&gt;
  </code></pre>