1 Reply Latest reply on Oct 27, 2009 6:05 AM by ilya_shaikovsky

    problem while using a4j:status

    ashutoshdeora

      i am using a code of the following pattern

      
      <h:form id="addLegForm">
       <a4j:region id="topOne"> --- this is the global region
      
       <rich:modalPanel id="trainFareInfo" minWidth="520" autosized="true">
      <f:facet name="header">
      <h:panelGroup>
      <h:outputText value="Fare Information" />
      </h:panelGroup>
      </f:facet>
      <f:facet name="controls">
      <h:panelGroup>
      <h:graphicImage value="/journeyplanner/image/close.gif"
      id="hideFarePanel" />
      
      <rich:componentControl for="trainFareInfo"
      attachTo="hideFarePanel" operation="hide" event="onclick" />
       </h:panelGroup>
      </f:facet>
      <a4j:status for="topOne" startText="Started Request">
      <f:facet name="start">
      <h:graphicImage
      value="/journeyplanner/image/ajax_progress.gif" />
      </f:facet>
      <a4j:facet name="stop">
      
      
      
      <some code >
      
      </a4j:facet>
      </a4j:status>
      </rich:modalPanel>
      </a4j:region>
      </h:form>
      




      here i have used a global a4j:region

      so when i am using the following
      code
      <a4j:status for="topOne" startText="Started Request">
      <f:facet name="start">
      <h:graphicImage
      value="/journeyplanner/image/ajax_progress.gif" />
      </f:facet>

      it is working fine

      but the moment i introduce another modelPanel
      and try to do the same in that
      it gives an error of using duplicate id (for topOne)

      if i use a local <a4j:region> for each modelPanel
      the <a4j:sataus> does not work


      am i missing some thing or not using the rite way to do it
      or can it be done
      please let me know