Code: Select all
<cc:implementation>
<p:panel rendered="!#{cc.tallyOk}">
<h:outputText value="ERROR: Tally Doesn't Exist" />
</p:panel>
<p:panel rendered="#{cc.tallyOk}">
<h:outputText value="Whar's the Pie? Whar?" />
<p:pieChart
seriesColors="FF0000, FF66FF, FFCCFF, CCFFCC, 66FF66, 009900"
value="#{cc.model}"
style="width:#{cc.attrs.width}px;height:#{cc.attrs.height}px"
/>
</p:panel>
</cc:implementation>
Code: Select all
<qc:tallyPie value="#{frontPage.topTenActiveAllTime.get(0)}" height="400" width="400" />
<hr/>
<p:tabView dynamic="true" cache="true">
<p:tab title="Top Tallies">
<qc:tallyPie value="#{frontPage.topTenActiveAllTime.get(0)}" height="400" width="400" />
... etc
This is on 3.0.M3.
P.S. It also does the same thing with p:dataGrid.