5 Replies Latest reply on Apr 1, 2009 11:29 AM by bronk horst

    calling javascript-function with a4j:support?

    bronk horst Newbie


      I have a inputText-Element within my jsf-page. Now, when user has entered a new value a javascript-method has to be called. Is this possible?

      <script type="text/javascript">
       function alertme() {
       <h:inputText required="true" id="tourStopStartAddress" value="#{e2e.tour.startAddress}" size="50" styleClass="portlet-form-input-field" requiredMessage="#{res.CAPTURE_NEEDSTART}" immediate="true" valueChangeListener="#{e2e.tour.changeStartAddress}">
      <a4j:support event="onchange" action="alertme()" reRender="tourGrid,zusammenfassung,zusammenfassungStartAddress" />