You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2013/09/14 22:33:52 UTC

[jira] [Resolved] (MYFACES-3773) ui:repeat with offset and size does not behave as expected

     [ https://issues.apache.org/jira/browse/MYFACES-3773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-3773.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.13
                   2.2.0
                   2.0.19
    
> ui:repeat with offset and size does not behave as expected
> ----------------------------------------------------------
>
>                 Key: MYFACES-3773
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3773
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314, JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.19, 2.2.0, 2.1.13
>
>
> Looking for minor issues in JSF spec I found this one:
> https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1058
> VDL Docs Need Correction/Clarification For ui:repeat size Attribute
> "... Currently, the VDL docs say this for ui:repeat "size" attribute:
> "Read-write property setting the size of the collection to iterate. If this value is less than the actual size of the collection, a FacesException must be thrown."
> However, the purpose of the size attribute is to specify the number of elements or items to iterate over in the overall collection. So, for example:
>     overall collection size = 10
>     u:repeat size="5"
>     should iterate over the first 5 items of the collection.
> ..."
> This issue was fixed in Mojarra as:
> https://java.net/jira/browse/JAVASERVERFACES-2425
> but we have been struggling on this for a long time too. See:
> https://issues.apache.org/jira/browse/MYFACES-3183
> https://issues.apache.org/jira/browse/MYFACES-3034
> The current behavior for 2.0.x and 2.1.x is the same as Mojarra before fix JAVASERVERFACES-2425, but in practice we need to fix this one for all branches. The current behavior is clearly inconsistent and if it was fixed in Mojarra, in this case we should do the same too.

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