3 Replies Latest reply on Jan 25, 2012 7:02 AM by sinvaldo

    ModalPanel in richfaces 4

    cmathrusse

      Using richfaces 3 I was able to create a modalPanel that would display and block the user from any input during ajax operations using the following as an example:

       

      <h:form>
         <a4j:commandButton value="Do something" 
            action="#{bean.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:modalPanel id="waitPanel" style="text-align:center">
         <h:outputText value="Please wait..."
            style="font-weight:bold;font-size:large" />
      </rich:modalPanel>
      
      
      Now, using richfaces 4, the modalPanel is no longer available. I'm assuming that the same results can be achieved using the rich:popupPanel but I can't locate an example. Does anyone have a sample of how to make this work?
      
      Thanks...