aspose file tools*
The moose likes JSF and the fly likes selectManyListbox - IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectManyListbox - IllegalArgumentException" Watch "selectManyListbox - IllegalArgumentException" New topic
Author

selectManyListbox - IllegalArgumentException

leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
Using Sun RI of JSF 1.2

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



JSP:


Code:


Thanks, leo
leo donahue
Ranch Hand

Joined: Apr 17, 2003
Posts: 327
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectManyListbox - IllegalArgumentException
 
Similar Threads
Strange behavior: action method not called when button submitted
Argument Error: One or more parameters are null.
f:selectItems can't set value
How to use ValueChangeLister attribute in selectOnemenu
How to prepopulate combo boxes on page startup