This content has been marked as final.
Show 3 replies
-
1. Re: valueChangeListener working ?
anders.hedstrom May 12, 2006 10:02 AM (in response to karakoyun)have you declared the method you're calling in your component?
<h:selectOneMenu valueChangeListener="#{myComp.listenerMethod}"...
comp codepublic void listenerMethod(ValueChangeEvent event)...
-
2. Re: valueChangeListener working ?
armita May 15, 2006 6:04 AM (in response to karakoyun)It works for me just fine.
<h:selectOneMenu id="type" value="#{neBean.neType}" valueChangeListener="#{neLogic.processValueChange}" onchange="this.form.submit();">
-
3. Re: valueChangeListener working ?
karakoyun May 15, 2006 7:42 AM (in response to karakoyun)Thanks for the replies. Yes the method:
public void valueChanged(ValueChangeEvent event)
is invoked but I can not access the value that is defined in <h:selectOneMenu value="#{bean.value}" .../> in that method. It is null :(
I assumed the value would be submitted whenever the above method gets called in my bean.
Thanks,