This content has been marked as final.
Show 1 reply
-
1. Re: How can I compare rich:columns variable with rich:subTab
andrei_exadel Feb 18, 2009 9:49 AM (in response to repkin)Hi,
I can suggest you to move list of columns you want to output in subtable to columns's var instance. So, you should init this list in the bean instead of checking for id comparison on the page.
So, your code should be like as:
<rich:columns value="#{controller.dprList}" var="dpr">
<f:facet name="header">
<h:outputText value="#{dpr.minimumCredit} - #{dpr.maximumCredit} #{msg[dpr.balanceType.balanceUom]}"/>
</f:facet>
<c:chosse>
<c:when test="#{not empty dpr.dplList}">
<rich:subTable var="dpl" value="#{dpr.dplList}">
<rich:column>
<h:outputText value="#{dpl.sellerRateDefault}"/>
</rich:column>
</rich:subTable>
</c:when>
<c:otherwise>
<h:outputText value="-"/>
</c:otherwise>
</c:choose>
</rich:columns>