File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selectManyListbox - IllegalArgumentException

 
leo donahue
Ranch Hand
Posts: 327
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Sun RI of JSF 1.2

I keep getting the following error in the logs. What am I missing?



JSP:


Code:
 
leo donahue
Ranch Hand
Posts: 327
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out.

Aside from my sample being wrong - can't paste in actual code so I was trying to modify it on the fly and messed that part up.

The issue for me was that I was trying to bind the value of the wrong Array to my h:selectManyListbox. I should have had another String [] to use instead of the tempItems SelectItem array.

Here is a cleaner sample.



JSP
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic