Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selectMany vs. selectOne values...

 
Karl Krasnowsky
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(not so) deep thoughts.
In the case of a selectOneMenu component, I can specify an Integer as the value for the component, but for a selectManyListbox doing this is illegal as apparently the value list is always provided as a String array? If so, whyisit? I would have expected built in converters for such an obvious Object as an Integer? and other then casting back to integers is there a more transparent way to handle type handling?
I initialize the Select list for the multi select using the Integer as the value which is what I do in the single select as well, but they don't behave consistently.

I'm sure there must be an easy explanation why this is the case, it's just not obvious to me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic