Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PLEASE Help - adding new value to dropdown  RSS feed

 
bash bashtoko
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are yu able to solve this issue ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!