[JBoss JIRA] (FORGE-2526) UISelectOne - Allow to know which index was selected
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2526?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2526.
----------------------------------
Fix Version/s: 3.0.0.Alpha2
(was: 3.x Future)
Resolution: Done
> UISelectOne - Allow to know which index was selected
> ----------------------------------------------------
>
> Key: FORGE-2526
> URL: https://issues.jboss.org/browse/FORGE-2526
> Project: Forge
> Issue Type: Feature Request
> Components: UI - API
> Affects Versions: 2.20.1.Final
> Reporter: Claus Ibsen
> Assignee: George Gastaldi
> Fix For: 3.0.0.Alpha2
>
>
> When using the UISelectOne then you cannot today know which index the user selected, whether it was the first, the last, or some other in between.
> You can only get the value, and then from the value you need to determine yourself if it was the first, last etc.
> Also due to bug FORGE-552 the returned value can be invalid, and you would not have a way of know exactly what was selected.
> To be able to get the index would be great. This is also what other UI frameworks offers in both Java and Javascript etc.
> The same thing would be nice on the change listener, where its applicable.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month
[JBoss JIRA] (FORGE-2526) UISelectOne - Allow to know which index was selected
by Claus Ibsen (JIRA)
[ https://issues.jboss.org/browse/FORGE-2526?page=com.atlassian.jira.plugin... ]
Claus Ibsen commented on FORGE-2526:
------------------------------------
Yes getSelectedIndex is what I need.
Maybe on the change listener, you can have getSelectedIndex as well, eg you have ValueChangedEvent
https://github.com/fabric8io/fabric8/blob/master/forge/addons/camel/src/m...
Maybe it should be getNewSelectedIndex an getOldSelectedIndex for the ValueChangedEvent.
> UISelectOne - Allow to know which index was selected
> ----------------------------------------------------
>
> Key: FORGE-2526
> URL: https://issues.jboss.org/browse/FORGE-2526
> Project: Forge
> Issue Type: Feature Request
> Components: UI - API
> Affects Versions: 2.20.1.Final
> Reporter: Claus Ibsen
> Assignee: George Gastaldi
> Fix For: 3.x Future
>
>
> When using the UISelectOne then you cannot today know which index the user selected, whether it was the first, the last, or some other in between.
> You can only get the value, and then from the value you need to determine yourself if it was the first, last etc.
> Also due to bug FORGE-552 the returned value can be invalid, and you would not have a way of know exactly what was selected.
> To be able to get the index would be great. This is also what other UI frameworks offers in both Java and Javascript etc.
> The same thing would be nice on the change listener, where its applicable.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 1 month