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/09/04 07:14:58 UTC

[jira] Resolved: (TRINIDAD-677) Component selectRangeChoiceBar not properly rendered (2nd issue)

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

Adam Winer resolved TRINIDAD-677.
---------------------------------

    Resolution: Duplicate

Duplicate of TRINIDAD-676.

> Component selectRangeChoiceBar not properly rendered (2nd issue)
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-677
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-677
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.0.1-core, 1.0.2-core
>            Reporter: Tomas Havelka
>
> Another issue with selectRangeChoiceBar and not known model row count. As I see, SelectRangeChoiceBarRenderer rendering routine is one-indexed, but model is zero-based. Then when searching for next value by asking model's isRowAvailable method, value has to be decreased.
> Solution:
> Modify encodeAll method on line 374 of SelectRangeChoiceBarRenderer like this.
>     hasNextRecords = isRowAvailable(component, (int)nextValue - 1);

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