You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michal Padera (JIRA)" <de...@myfaces.apache.org> on 2011/05/03 11:17:03 UTC
[jira] [Created] (TRINIDAD-2097) tr:selectOneListBox - item not
selected - wrong item of selected item returned by
SimpleSelectOneRenderer.resolveIndex
tr:selectOneListBox - item not selected - wrong item of selected item returned by SimpleSelectOneRenderer.resolveIndex
----------------------------------------------------------------------------------------------------------------------
Key: TRINIDAD-2097
URL: https://issues.apache.org/jira/browse/TRINIDAD-2097
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Affects Versions: 1.2.14-core
Reporter: Michal Padera
I am setting value in selectOneListBox programmatically - CoreSelectOneListbox.setValue(...) but the item is not rendered as selected. Equals() method finds the object in combo that should be selected but method SimpleSelectOneRenderer._findIndex() returns wrong index. I have SelectItemGroups with SelectItems and the structure is following:
Group 1 - empty
Group 2
- item 2.1
- item 2.2 - should be selected
Group 3 - empty
Group 4 - empty
Group 5 - empty
Method _findIndex() returns 2. When option "item 2.2" is rendered its index is 1 and it is rendered as an option that is not selected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2097) tr:selectOneListBox - item not
selected - wrong item of selected item returned by
SimpleSelectOneRenderer.resolveIndex
Posted by "Michal Padera (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Padera updated TRINIDAD-2097:
------------------------------------
Status: Patch Available (was: Open)
> tr:selectOneListBox - item not selected - wrong item of selected item returned by SimpleSelectOneRenderer.resolveIndex
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2097
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2097
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.14-core
> Reporter: Michal Padera
> Priority: Blocker
>
> I am setting value in selectOneListBox programmatically - CoreSelectOneListbox.setValue(...) but the item is not rendered as selected. Equals() method finds the object in combo that should be selected but method SimpleSelectOneRenderer._findIndex() returns wrong index. I have SelectItemGroups with SelectItems and the structure is following:
> Group 1 - empty
> Group 2
> - item 2.1
> - item 2.2 - should be selected
> Group 3 - empty
> Group 4 - empty
> Group 5 - empty
> Method _findIndex() returns 2. When option "item 2.2" is rendered its index is 1 and it is rendered as an option that is not selected.
> Even when I do not set value of combo programmatically and leave it up to component (setting value attribute), wrong item is preselected. When I use h:selectOneListBox, everything works fine - correct item is selected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TRINIDAD-2097) tr:selectOneListBox - item not
selected - wrong item of selected item returned by
SimpleSelectOneRenderer.resolveIndex
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13101289#comment-13101289 ]
Scott O'Bryan commented on TRINIDAD-2097:
-----------------------------------------
I'm asking for comments on this patch. Hopefully we'll get a reply soon.
> tr:selectOneListBox - item not selected - wrong item of selected item returned by SimpleSelectOneRenderer.resolveIndex
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2097
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2097
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.14-core
> Reporter: Michal Padera
> Assignee: Scott O'Bryan
> Priority: Blocker
> Attachments: TRINIDAD-2097.patch
>
>
> I am setting value in selectOneListBox programmatically - CoreSelectOneListbox.setValue(...) but the item is not rendered as selected. Equals() method finds the object in combo that should be selected but method SimpleSelectOneRenderer._findIndex() returns wrong index. I have SelectItemGroups with SelectItems and the structure is following:
> Group 1 - empty
> Group 2
> - item 2.1
> - item 2.2 - should be selected
> Group 3 - empty
> Group 4 - empty
> Group 5 - empty
> Method _findIndex() returns 2. When option "item 2.2" is rendered its index is 1 and it is rendered as an option that is not selected.
> Even when I do not set value of combo programmatically and leave it up to component (setting value attribute), wrong item is preselected. When I use h:selectOneListBox, everything works fine - correct item is selected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (TRINIDAD-2097) tr:selectOneListBox - item not
selected - wrong item of selected item returned by
SimpleSelectOneRenderer.resolveIndex
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott O'Bryan resolved TRINIDAD-2097.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.15-core
> tr:selectOneListBox - item not selected - wrong item of selected item returned by SimpleSelectOneRenderer.resolveIndex
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2097
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2097
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.14-core
> Reporter: Michal Padera
> Assignee: Scott O'Bryan
> Priority: Blocker
> Fix For: 1.2.15-core
>
> Attachments: TRINIDAD-2097.patch
>
>
> I am setting value in selectOneListBox programmatically - CoreSelectOneListbox.setValue(...) but the item is not rendered as selected. Equals() method finds the object in combo that should be selected but method SimpleSelectOneRenderer._findIndex() returns wrong index. I have SelectItemGroups with SelectItems and the structure is following:
> Group 1 - empty
> Group 2
> - item 2.1
> - item 2.2 - should be selected
> Group 3 - empty
> Group 4 - empty
> Group 5 - empty
> Method _findIndex() returns 2. When option "item 2.2" is rendered its index is 1 and it is rendered as an option that is not selected.
> Even when I do not set value of combo programmatically and leave it up to component (setting value attribute), wrong item is preselected. When I use h:selectOneListBox, everything works fine - correct item is selected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2097) tr:selectOneListBox - item not
selected - wrong item of selected item returned by
SimpleSelectOneRenderer.resolveIndex
Posted by "Michal Padera (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Padera updated TRINIDAD-2097:
------------------------------------
Status: Patch Available (was: Open)
> tr:selectOneListBox - item not selected - wrong item of selected item returned by SimpleSelectOneRenderer.resolveIndex
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2097
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2097
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.14-core
> Reporter: Michal Padera
> Priority: Blocker
> Attachments: TRINIDAD-2097.patch
>
>
> I am setting value in selectOneListBox programmatically - CoreSelectOneListbox.setValue(...) but the item is not rendered as selected. Equals() method finds the object in combo that should be selected but method SimpleSelectOneRenderer._findIndex() returns wrong index. I have SelectItemGroups with SelectItems and the structure is following:
> Group 1 - empty
> Group 2
> - item 2.1
> - item 2.2 - should be selected
> Group 3 - empty
> Group 4 - empty
> Group 5 - empty
> Method _findIndex() returns 2. When option "item 2.2" is rendered its index is 1 and it is rendered as an option that is not selected.
> Even when I do not set value of combo programmatically and leave it up to component (setting value attribute), wrong item is preselected. When I use h:selectOneListBox, everything works fine - correct item is selected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2097) tr:selectOneListBox - item not
selected - wrong item of selected item returned by
SimpleSelectOneRenderer.resolveIndex
Posted by "Michal Padera (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Padera updated TRINIDAD-2097:
------------------------------------
Status: Open (was: Patch Available)
> tr:selectOneListBox - item not selected - wrong item of selected item returned by SimpleSelectOneRenderer.resolveIndex
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2097
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2097
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.14-core
> Reporter: Michal Padera
> Priority: Blocker
>
> I am setting value in selectOneListBox programmatically - CoreSelectOneListbox.setValue(...) but the item is not rendered as selected. Equals() method finds the object in combo that should be selected but method SimpleSelectOneRenderer._findIndex() returns wrong index. I have SelectItemGroups with SelectItems and the structure is following:
> Group 1 - empty
> Group 2
> - item 2.1
> - item 2.2 - should be selected
> Group 3 - empty
> Group 4 - empty
> Group 5 - empty
> Method _findIndex() returns 2. When option "item 2.2" is rendered its index is 1 and it is rendered as an option that is not selected.
> Even when I do not set value of combo programmatically and leave it up to component (setting value attribute), wrong item is preselected. When I use h:selectOneListBox, everything works fine - correct item is selected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira