2 Replies Latest reply on Jul 25, 2011 9:06 PM by valterhenrique

    How show a 'wait' message ?

    valterhenrique

      Hi everyone,

      i need to show a message or an image when the user finished of fill some form.

       

      How i could do that ?

      I'm using richfaces 4, so far i try this but without success:

       

      <h:body>

       

      <h:form>

         <a4j:commandButton value="Do something"

            action="#{contact.doSomething}"

            status="ajaxStatus"/>

      </h:form>

       

      <a4j:status

          id="ajaxStatus"

          onstart="#{rich:component('waitPanel')}

                      .show('',{top:'40px', left:'80px',height:'100px', width:'200px'})"

         onstop="#{rich:component('waitPanel')}.hide()" />

       

      <rich:popupPanel id="waitPanel" style="text-align:center" modal="true">

         <h:outputText value="Please wait..."

            style="font-weight:bold;font-size:large" />

      </rich:popupPanel>

       

      </h:body>

       

       

      Any idea how do this ?

       

      Best regards,

      Valter Henrique.

        • 1. Re: How show a 'wait' message ?
          iabughosh

          Hi Valter,

          try this instead,

           

          <h:body>

           

          <h:form>

             <a4j:commandButton value="Do something"

                action="#{contact.doSomething}"

                status="ajaxStatus"/>

           

          <a4j:status

                             id="ajaxStatus"

                             name="ajaxStatus">

                    <f:facet name="start">

                         <h:graphicImage name="image.gif" library="images"/>

                           <!-- OR -->

                         <h:outputText value="Your message"/>

                    </f:facet>

          </a4j:status>

          </h:form>

           

           

          </h:body>

          note : you forgot the name attribute for a4j:status

          • 2. Re: How show a 'wait' message ?
            valterhenrique

            Thanks dude, works so nice, richfaces 4 is awesome,code so clear and so useful, thanks again.