JSF SelectOneMenuItem onselect attribute

Posted by William on Stack Overflow See other posts from Stack Overflow or by William
Published on 2012-10-24T04:55:29Z Indexed on 2012/10/24 5:01 UTC
Read the original article Hit count: 220

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about jsf

Related posts about java-ee