File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes How to get the value of selectManyListbox component using ParameterMap object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to get the value of selectManyListbox component using ParameterMap object" Watch "How to get the value of selectManyListbox component using ParameterMap object" New topic
Author

How to get the value of selectManyListbox component using ParameterMap object

Vallidevi Appana
Greenhorn

Joined: Jun 30, 2006
Posts: 25
Hi all

I am using SelectMayListBox component in my jspx.
I want to get the value of this component which is List or array in my action class. ( Here I want this value without submitting the form so I used ParameterMap in my action class.)



The third line in the code throwing ClassCastException. I tried to replace List with String[] then also same thing happened.
But when I put String instead List it didn't throw anything. But in this case I can get only one item selected by the user.
How can I get the list in my action class?

Thansk in advance.
 
jQuery in Action, 2nd edition
 
subject: How to get the value of selectManyListbox component using ParameterMap object