0 Replies Latest reply on Sep 12, 2007 4:19 PM by Brian Smith

    Facelets Templates and a4j:Status

    Brian Smith Apprentice

      I have been refactoring some views away from monolithic pages to take advantage of Facelets Templating. Since I have done all is working except one a4j:status component. I have checked the rendered HTML and it is there, its just not activating when an ajax submit happens.

      Here are my views

      tabletemplate.xhtml

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      ...>
       <a4j:status>
       <f:facet name="start">
       <ui:insert name="statusOutputArea">
       <h:graphicImage value="../img/spinner.gif"/>
       </ui:insert>
       </f:facet>
       </a4j:status>
       <a4j:outputPanel id="#{outputId}">
       <ui:insert name="tableArea">
       Some Result Table Here
       </ui:insert>
       </a4j:outputPanel>
      </ui:composition>



      addressresults.xhtml uses this template and inserts a table into "tableArea"

      tabtemplate.xhtml
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       ...>
       <ui:insert name="inputArea">
       Some Input Components Here
       </ui:insert>
       <h:panelGroup>
       <ui:insert name="buttonArea">
       Some Buttons Components Here
       </ui:insert>
       </h:panelGroup>
       <rich:separator/>
       <ui:insert name="resultArea">
       Some Results Here
       </ui:insert>
      </ui:composition>


      addresssearch.xhtml uses this template

      addresslookup.xhtml inserts addresssearch.xhtml into the main site template.

      everything appears to work fine except this darned status component. Red Hat Developer Studio is not showing it in its preview mode either so I am sure it is something I am doing wrong with the templating but can't figure it out.

      This is probably a Facelets issue but thought I would post it here as well.

      Thanks