Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in h:selectOneMenu  RSS feed

 
madupathi arun
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

if i select any value from selectOneMenu that value is not coming into java method
I used following code
<h:selectOneMenu id="requestStatus12" value="#{currentLanguageResolver.requestState}" valueChangeListener="#{currentLanguageResolver.valueChangeSelectOneMenu}">
<f:selectItems value="#{currentLanguageResolver.possibleStates}"/>
</h:selectOneMenu>

in java class
public void valueChangeSelectOneMenu(ValueChangeEvent evt) {
ArrayList selectedValueOfDropDown=new ArrayList();
selectedValueOfDropDown.add((Integer) evt.getNewValue());

}

Could you please suggest me on this.
this is very urgent for me.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is very urgent for me

Please read this.

I'm moving this thread to a more appropriate forum.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!