5 Replies Latest reply on Dec 11, 2007 1:50 PM by Casey Boyd

    Does Input Text support AJAX? Is this a bug? Am I doing some

    Casey Boyd Novice

      Very simple question....

      Click on a row in the table, rerender the input text and output text at the bottom.

      The output text rerenders with the new information for the record click on.

      The input text does not.

      Why does the input text not update?

      
      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       template="layout/template.xhtml">
      
       <ui:define name="body">
      
       <h:form>
      
       <rich:dataTable var="varUser" value="#{users}">
      
       <a4j:support event="onRowClick" ajaxSingle="true" action="#{selectuser.selectUser(varUser)}" reRender="input, output" />
      
       <f:facet name="header">
      
       <rich:columnGroup>
       <h:outputText value="Username" />
       </rich:columnGroup>
      
       </f:facet>
      
       <rich:column>
       <h:outputText value="#{varUser.username}" />
       </rich:column>
      
       </rich:dataTable>
      
       <h:inputText id="input" value="#{currentUser.firstname}" />
      
       <h:outputText id="output" value="#{currentUser.username}" />
      
       </h:form>
      
       <.ui:define>
      
      </ui:composition>