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

    focus lost in rich:datatable using when a4j:support

    Carsten Hoehne Master

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

       <f:facet name="header">Fieldplan</f:facet>
       <ui:include src="/facelets/fieldlist/editFieldlist.xhtml" >
       <ui:param name="fieldlist" value="#{fieldlistBacking.fieldlist}" />
      <ui:component ...>
       <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">...
       <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 size="5" id="sampleWeight" value="#{plot.outputTGWSampleWeight}" >
       <a4j:support action="#{fieldlistBacking.calcTGW(plot)}" event="onblur" reRender="Fieldlist" />
       <h:outputText value=" g"/>
      [...] </rich:dataTable>

      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)?