JSF SelectOneMenuItem onselect attribute
- by William
I have created selectOneMenuItem(JSF).I placed my events on valueChangeListener / onchange like that
<h:selectOneMenu id="ddl" value="#{Foo.attr}"
onchange="submit()"
valueChangeListener="#{Foo.renderFoo}">
When I select one vlaue from selectOneMenuItem then event fires.Now when I reselect that value ,then event doesn't fire (because this is the valueChangeListener event) so it doesn't fire.I want that event should fire on every selection even on again the same selection.I found onselect but unable to find that is it right and how can i use this onselect.Anyu help would be greatly appreciable