Good morning. I have the following datatable:
CouldyougivemeaglimpseofwhatIcoulddotomakethisExpansionappearonlyforthefirsttwolines?Theothershavenodetailstoappearintheexpansion.
Ithoughtaboutusingrendered
ifthelineisgreaterthan2(or1,Idonotknowifthecountofthedatatablestartsfrom0or1).Whatdoyouthink?Iftheythinkit'sagoodidea,doyouknowhowIcangetbacktothetable?
FollowXHTML
<h:formid="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>