myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricard Moré (JIRA) <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3183) UIRepeat offset and size problem
Date Tue, 21 Jun 2011 07:07:47 GMT
UIRepeat offset and size problem
--------------------------------

                 Key: MYFACES-3183
                 URL: https://issues.apache.org/jira/browse/MYFACES-3183
             Project: MyFaces Core
          Issue Type: Bug
          Components: Archetype
    Affects Versions: 2.1.1
            Reporter: Ricard Moré


I have found a problem with parameters offset and size of ui:repeat tag.
offset sets the first index of the list to iterate over.
size is the number of element to iterate.

If you set a offset value greater than size you get an Exception:
javax.faces.FacesException: iteration offset cannot be greater than collection size

But it should be possible to iterate over last two elements of a 102 elements list starting
from index 100, for example (offset=100,size=1).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message