1 Reply Latest reply on Oct 10, 2012 9:13 AM by Joe Padula

    p:editor: ajax events

    Andi Andi Newbie

      Hello,

       

      I want a p:editor which call a bean method (onAction()) when a user type some text.

       

      Facelet:

       

      <rich:editor id="panel" value="#{sqlInputHandler.sqlStatement}" >

              <a4j:ajax event="dirty" render="panel" listener="#{sqlInputHandler.onAction()}"/>

      </rich:editor>

       

      Bean:

       

      public void onAction() {

              Logger.getAnonymousLogger().info("ACTION");

              try {

                  SQLParserChecker.checkSQLSyntax(sqlStatement);

                  valid = true;

              } catch (JSQLParserException e) {

                  valid = false;

              }

              prepareStatement(sqlStatement);

      }

       

      So what is wrong?