I want to display the courses table in which maximum mark for each course should render at the end of the table as the last row. I got this layout working using <rich:dataTable> but in <rich:scrollableDataTable> the last row gets attached with the last user record.
How to get this in a separate row?
Note: The number of rows is "5" and hence the Maximum field will be the last row in the table.
<rich:scrollableDataTable value="#{users}" var="user" width="350px" height="200px" rows="5" rowKeyVar="index">
<rich:column>
<f:facet name="header">Employees</f:facet>
<h:outputText value="#{user.name}"/>
</rich:column>
<rich:columns breakBefore="false" value="#{marks}" var="mark">
<f:facet name="header">#{mark.course.name}</f:facet>
<h:outputText value="#{mark.course.points}"/>
</rich:columns>
<rich:column breakBefore="true" rendered="#{index eq '4'}">
<h:outputText value="Maximum"/>
</rich:column>
<rich:columns breakBefore="false" value="subjects" var="course" rendered="#{index eq '4'}">
<h:outputText value="#{course.max}"/>
</rich:columns>
</rich:scrollableDataTable>
Note: The eventual rendering will be as follows
In the x-axis it will be Course1, Course2, Course3...
In the y-axis it will be Employee1, Employee2, Employee3, Employee4, Maximum