4 Replies Latest reply on May 24, 2007 12:02 PM by kyuss

    Trouble with a4j:region, a4j:status and bean-property

    kyuss

      Hi,

      i got a little problem with the a4j:status:

       <h:form>
       <h:outputText value="Please enter your enzymes:" />
       <br />
       <h:inputText value="#{pathwayBean.enzymes}" id="enzyme" />
       <br />
       <a4j:region id="sender">
       <a4j:commandButton id="submit" reRender="path"
       action="#{pathwayBean.computePaths}" value="Submit" />
       <a4j:status startText=" Performing Request" stopText="" for="sender">
       </a4j:status>
       </a4j:region>
       </h:form>
       <a4j:outputPanel id="path">
       <rich:dataTable var="data" value="#{pathwayBean.pathways}"
       rendered="#{pathwayBean.tableRendered}">
       <!--Set of columns and header/footer facets-->
       <f:facet name="header">
       <h:outputText value="Pathways" />
       </f:facet>
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="#{data.text}" />
       </rich:column>
       </rich:columnGroup>
       </rich:dataTable>
      


      The computePaths()-Method in my bean uses the property enzymes as input for a DB request, the result is shown in the dataTable. The Problem is, that the enzymes property isn't set in the bean. I get an empty string, no matter what i put in the text-field.
      Funnily enough, everything works fine, when i leave out the a4j:region and a4j:status tags.

      Can you help me?