4 Replies Latest reply on Jul 16, 2009 7:55 AM by hrbaer

    call method in managed bean by onChange

      Hi,

      I'm trying to call a method in my managed bean by using the js-function onchange.
      The reason is that an input field should be filled when s.o. leaves another input field. Dependent on what the user insert in the first field the value of the second field varied.

      My Code:

      <h:inputText value="#{mb.field1}" onchange="#{mb.test}"/>
      


      In this case I'm getting an error that there is (of course) no property 'test' in my mb.

      Is there a possibility to solve this problem?