aspose file tools
The moose likes JSF and the fly likes IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "IllegalArgumentException" Watch "IllegalArgumentException" New topic
Author

IllegalArgumentException

Oleg Tikhonov
Ranch Hand

Joined: Aug 02, 2008
Posts: 55
Hello, everyone!
I use ICEFaces's ice:selectOneListbox, it's like sun's one.
"java.lang.IllegalArgumentException: argument type mismatch"
I get the error afore mentioned. Here is my piece of code:

And backing bean:


I was wondering if anyone had a some ideas how to solve it.
Thank you in advance.
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
I haven't used icefaces. My guess is since you are using selectOneListbox component, why don't you use String datatype for value attribute instead of String[]?


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Oleg Tikhonov
Ranch Hand

Joined: Aug 02, 2008
Posts: 55
Thank you for really quick response!
That's it! You have solved my problem!!! Once again, thanks a lot.
:thumb:
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: IllegalArgumentException
 
Similar Threads
How to add instances of SelectItem as Argument to method
SelectItem Help needed
datatables and selectOneMenu default Value Problem
Problem With selectonelistbox
can't get values from h:selectManyCheckbox