• Post Reply Bookmark Topic Watch Topic
  • New Topic

f:selectItems and List - managed property  RSS feed

 
Brian Smith
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use a managed property list-entries to initialize a List that an f:selectItems is bound to.

<f:selectItems value="#{RowsPerPage.rows}"/>

Here is the managed bean from faces-config


Here is the class



Here is the stack trace

[ October 04, 2006: Message edited by: Brian Smith ]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show your UIInput JSF + bean code.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"BalusC",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was already changed afterwards. Probably the forum wasn't refreshed quick enough.
[ October 09, 2006: Message edited by: B L Scholtz ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by B L Scholtz:
This was already changed afterwards.


Thank you!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
selectItems will look for a List of SelectItem objects. So you would need to have code that does something like:

rows.add(new SelectItem("Label", "Value"));
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!