[richfaces-issues] [JBoss JIRA] (RF-13442) iterationStatusVar not working in header/footer of extendedDataTable

Brian Leathem (JIRA) issues at jboss.org
Tue Dec 24 13:12:33 EST 2013


    [ https://issues.jboss.org/browse/RF-13442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933194#comment-12933194 ] 

Brian Leathem commented on RF-13442:
------------------------------------

Looking at the iteration status more closely:
https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/ui/iteration/SequenceIterationStatus.java

The following properties would make sense in the context of the header/footer:
* begin
* end
* count
* rowCount

The following would not make sense
* index
* first
* last
* even
* odd

Having access to the begin, end, count, and rowCount values in the header and footer would indeed make sense.  the other properties could just resolve to null.
                
> iterationStatusVar not working in header/footer of extendedDataTable
> --------------------------------------------------------------------
>
>                 Key: RF-13442
>                 URL: https://issues.jboss.org/browse/RF-13442
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.0.0.Alpha2
>            Reporter: Michael Abele
>            Assignee: Brian Leathem
>              Labels: waiting_on_user
>
> interationStatusVar attribute is available in columns of r:extendedDataTable but not in footer or header part of the table. This would be very useful to display messages like "15 rows loaded" in a table footer.
> Example code:
> {code}
> <r:extendedDataTable values="#{testBean.rows}" interationStatusVar="iter">
>   <r:column>#{iter.index}</r:column
>   <f:facet name="footer">
>     <h:outputText value="#{iter.rowCount} rows loaded." />
>   </f:facet>
> </r:extendedDataTable>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list