0 Replies Latest reply on Apr 12, 2010 8:52 AM by kalpana prakasam

    Rows are not rendering properly in rich:scrollableDataTable

    kalpana prakasam Novice

      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">


      <f:facet name="header">Employees</f:facet>

      <h:outputText value="#{user.name}"/>


      <rich:columns breakBefore="false" value="#{marks}" var="mark">

      <f:facet name="header">#{mark.course.name}</f:facet>

      <h:outputText value="#{mark.course.points}"/>


      <rich:column breakBefore="true" rendered="#{index eq '4'}">

      <h:outputText value="Maximum"/>


      <rich:columns breakBefore="false" value="subjects" var="course" rendered="#{index eq '4'}">

      <h:outputText value="#{course.max}"/>




      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