1 Reply Latest reply on Mar 1, 2012 11:29 AM by teacurran

    usage of ajax poll

    aniinprni

      Hi,

       

          i doing one module like wake up alarm.so for this at particular time i need to show the reminder to loggedin user.so i used ajax poll tag with an interval of 5 secs.In my project i am getting  dialogue box with the message.In the dialogue box i need to do some actions.but the problem is before doing the actions it is showing another dialogue box with the same message.

       

      here is the code

       

      <a:region renderRegionOnly="true">

                              <h:form>

                                 

                                      <a:poll id="poll" interval="5000" action="some method" oncomplete="#{rich:component('dialoguebox')}.show()" enabled="true"                                         reRender="dialoguebox" >

                                         

                                      </a:poll>

                                     

                                          </h:form>

                                          </a:region>                              

                                         

       

       

      i need another dialogue box after doing the actions in the first dialoguebox.

       

       

      Please help me,need a suggestion.

       

      Thanks in advance.

        • 1. Re: usage of ajax poll
          teacurran

          It's showing another dialog box? or the same dialog after it has been re-rendered?  Based on this, the dialog box is automatically showing immediately after 5 seconds and every five seconds, if this is desired then why use a modal dialog?