You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2007/07/10 07:07:04 UTC

[jira] Commented: (TRINIDAD-93) UIXIterator._fixupFirst is trying to fix the first if the first is < 0

    [ https://issues.apache.org/jira/browse/TRINIDAD-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511333 ] 

Adam Winer commented on TRINIDAD-93:
------------------------------------

Venkata, "first" does not come from the data model.  It's a component attribute.
No one should ever set it to < 0. 

> UIXIterator._fixupFirst is trying to fix the first if the first is < 0
> ----------------------------------------------------------------------
>
>                 Key: TRINIDAD-93
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-93
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Archetype
>    Affects Versions: 1.0.1-core, 1.0.2-core, 1.2.1-core, 1.2.2-core
>            Reporter: Venkata Guddanti
>         Attachments: trunk.patch
>
>
> UIXIterator._fixupFirst has some logic to fix the first attribute. If the first attribute is != 0 there is some logic to scroll the dataModel to the  end so that "first" row is available. This is extremely inefficient since the dataModel may have a large number of rows.
> This logic also does not account for the dataModel returning first < 0. If the first is < 0 the first should be assumed to be 0.
> Providing a patch so that if dataModel is returning first<0, the first is set to 0.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.