| Author |
PLEASE Help - adding new value to dropdown
|
bash bashtoko
Greenhorn
Joined: Jan 20, 2011
Posts: 14
|
|
I have this code
<h:selectOneMenu id="beesh" onchange="submit()" valueChangeListener="#{testActionListener.processValueChange}" value="#{userBean.favCoffee2}">
<f:selectItems value="#{userBean.favCoffee2Value}" />
</h:selectOneMenu>
When I try to add a new option to the component .. it produce a class cast exception >>>>
java.lang.ClassCastException
at javax.faces.component.UIComponentBase$ChildrenList
Map<String, Object> map = new LinkedHashMap<String, Object>();
i.put("java", "course");
source.getChildren().add(map)
What is the problem.. please help..
Thanks..
|
 |
Krishnakumar Ramanathan
Greenhorn
Joined: Aug 04, 2008
Posts: 6
|
|
|
are yu able to solve this issue ?
|
 |
 |
|
|
subject: PLEASE Help - adding new value to dropdown
|
|
|