0 Replies Latest reply on Jul 27, 2007 8:01 AM by baz

    focus lost in rich:datatable using when a4j:support

    baz

      Hello,
      The focus is lost in rich:datatable when a4j:support is used.
      The structure:

      <rich:panel>
       <f:facet name="header">Fieldplan</f:facet>
       <ui:include src="/facelets/fieldlist/editFieldlist.xhtml" >
       <ui:param name="fieldlist" value="#{fieldlistBacking.fieldlist}" />
       </ui:include>
       </rich:panel>
      
      /facelets/fieldlist/editFieldlist.xhtml
      <ui:component ...>
      
       <h:form>
       <rich:spacer height="30" />
       <rich:datascroller for="Fieldlist" maxPages="30" />
       <rich:spacer height="20" />
       <rich:dataTable id="Fieldlist" var="plot" value="#{fieldlist}" rendered="#{not empty fieldlist}" rows="25">
       <f:facet name="header">...
       </f:facet>
      
       <rich:column>
       <h:outputText size="15" id="trc" value="#{plot.treatment.id.treatmentCode}"/>
       </rich:column> <rich:column>
       <h:inputText size="5" id="samplecount" value="#{plot.outputTGWSample}" >
       <a4j:support action="#{fieldlistBacking.calcTGW(plot)}" event="onblur" reRender="Fieldlist" />
       </h:inputText>
       </rich:column>
       <rich:column>
       <h:inputText size="5" id="sampleWeight" value="#{plot.outputTGWSampleWeight}" >
       <a4j:support action="#{fieldlistBacking.calcTGW(plot)}" event="onblur" reRender="Fieldlist" />
       </h:inputText>
       <h:outputText value=" g"/>
       </rich:column>
      [...] </rich:dataTable>
      
      
       </h:form>
      </ui:component>

      When entering data into the column with id samplecount and then using tab the cursor moves visible to the column with id sampleWeight but after that the focus is lost. This happens with the internal browser of eclipse 3.3(europa)
      Is this a known problem?
      Perhaps this has something in common with http://jira.jboss.com/jira/browse/RF-83?

      One additional question. Is it possible to go from one field to another with a freely defined key (Or at least with the enter or return key)?
      Ciao,
      Carsten