You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tomas Havelka (JIRA)" <de...@myfaces.apache.org> on 2007/09/03 12:53:19 UTC

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

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.2-core, 1.0.1-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.


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

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
     [ 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.


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

Posted by "Tomas Havelka (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524629 ] 

Tomas Havelka commented on TRINIDAD-677:
----------------------------------------

...I am sorry for that issue duplicates, but I created the issue once. Don't know why it created twice.

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