3 Replies Latest reply on Sep 26, 2010 10:09 AM by omergillani

    <a4j:support> does not work under <h:inputText>

    omergillani

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:rich="http://richfaces.org/rich"
            xmlns:a4j="http://richfaces.org/a4j">
         
          <head></head>
          <body>
              <h:form>
                  <rich:panel style="width: 50%">
                      <h:panelGrid columns="2">
                         
                          <h:outputText value="Name: " />
                          <h:inputText value="#{echoBean.name}">
                              <a4j:support event="onKeyUp" reRender="count,echo, errormsg" actionListener="#{echoBean.countListener}"/>
                          </h:inputText>
                         
                          <h:outputText value="Echo: " />
                          <h:outputText value="#{echoBean.name}" id="echo"/>
                         
                          <h:outputText value="Counter: " />
                          <h:outputText value="#{echoBean.count}" id="count"/>
                         
                          <a4j:commandButton value="Submit" actionListener="#{echoBean.countListener}"
                                              reRender="echo, count, errormsg"/>
                          <h:messages id="errormsg"/>
                      </h:panelGrid>
                  </rich:panel>
              </h:form>
          </body>
      </html>

       

       

       

       

      AJAX for onKeyUp event not working????