To reproduce, just modify one of the subtable columns in datatableSubTable.xhtml to add a hard coded rating such as:
Code: Select all
<h:form>
<p:dataTable var="player" value="#{tableBean.players}">
<f:facet name="header">
FCB Statistics
</f:facet>
<p:columnGroup type="header">
<p:row>
<p:column rowspan="2" headerText="Player" sortBy="#{player.name}" />
<p:column colspan="2" headerText="Stats" />
</p:row>
<p:row>
<p:column headerText="Goals" />
<p:column headerText="Assists" />
</p:row>
</p:columnGroup>
<p:subTable var="stats" value="#{player.stats}">
<f:facet name="header">
#{player.name}
</f:facet>
<p:column>
#{stats.season}
</p:column>
<p:column>
#{stats.goals}
</p:column>
<p:column>
<p:rating value="5" stars="5" />
</p:column>
<p:columnGroup type="footer">
<p:row>
<p:column footerText="Totals: " style="text-align:right" />
<p:column footerText="#{player.allGoals}" />
<p:column footerText="#{player.allAssists}" />
</p:row>
</p:columnGroup>
</p:subTable>
</p:dataTable>
</h:form>
[img]
http://imageshack.us/photo/my-images/215/image044.png/
[/img]