8 Replies Latest reply on Aug 4, 2008 10:43 PM by luxspes

    Using onchange without AJAX on <h:selectOneListBox>

    haefti

      Hi!


      Is it possible to invoke an action method when changing the selected value on a <h:selectOneListBox> element?


      I'm suppsoed not to use a4j even though this is the easiest way.


      onchange="submit()" is not enough for me because it only submits the form but does not invoke the method I need to call.


      I tried valueChangeListener="#{myBean.myMethod}" but nothing happened when changing the selected value.


      Maybe someone can help me with this problem.


      Thanks!


      Haefti