0
I have a JSF page with a p:columns
to show data analytically and a p:summaryRow
to display the summary.
Turns out inside of mine p:summaryRow
, I have a p:columns
, because I can’t predict how many results I’ll get, so I need to use dynamic columns.
But when I upload the page, this p:columns
is not shown. In fact, the method from which I pick up the data in the Bean is never called.
<p:dataTable value="#{storeBean.segmentsByStore}" var="segmentsByStore"
sortBy="#{segmentsByStore.segment}">
<p:summaryRow>
<p:column colspan="3" style="text-align: right">
<h:outputText value="TOTAL OF #{segmentsByStore.segment}"/>
</p:column>
<p:columns value="#{storeBean.totalStoreSaleDates}" var="saleDate">
<h:outputText
value="#{storeBean.totalStoreSales.get(saleDate).get(segmentsByStore.segment).value}">
<f:convertNumber type="currency"/>
</h:outputText>
</p:columns>
</p:summaryRow>
</p:dataTable>
The method not called is storeBean.segmentsByStore ?
– Roknauta
Is the
storeBean.totalStoreSaleDates
and thestoreBean.totalStoreSales
. What is inside thep:columns
.– essejoje