0
Good morning. I am with the following datatable:
Could you give me some insight into how I could make this Expansion appear just for the first two lines? The rest have no details to appear in the expansion.
I thought I’d use the rendered if the line is larger than 2 (or 1, I don’t know if the datatable count starts from 0 or 1). What do you think? If you think it’s a good idea, you know how I can return to the table line?
Follows XHTML
    <h:form id="form">          
        <f:metadata>    
            <f:event type="preRenderView" listener="#{cenarioBean.prepararListaFCQ}"/>    
        </f:metadata>
        <p:dataTable var="f" value="#{cenarioBean.auxFCQ}"
            paginator="false" rows="4" class="dataTable" id="dataTable" 
            emptyMessage="Nenhum Fluxo de Qualificacao Cadastrado">
            <p:column width="1">
                <p:rowToggler />
            </p:column>
            <p:columns value="#{cenarioBean.getColunas()}" var="c" headerText="#{c}" styleClass="column" width="#{c.startsWith('T') ? 200 : 60}">
                <h:outputText value="#{cenarioBean.getValorFCQ()}" />
            </p:columns>    
            <p:rowExpansion>
                Teste
            </p:rowExpansion>
        </p:dataTable>
    </h:form>
