4 Replies Latest reply on Jun 20, 2012 1:58 PM by Christian Peter

    RF4 a4j:poll works only once with IE8

    mn3 Newbie

      Hi,

       

      I'm using RF 4.2 with IE 8 und i'm using following poll command for refreshing a datatable:

       

      <a4j:poll id="poll" interval="6000" execute="@form" enabled="true" action="#{model.searchData}" render="dataTable" />

       

      It works fine with Firefox 12.0 but in IE 8 the seach-method is called only once and never again.

       

      When I add 

      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"  />

      it works but it ruins the layout!

       

      Any ideas why it does not work with IE8?

       

      Thanks

      Mathias

        • 1. Re: RF4 a4j:poll works only once with IE8
          Christian Peter Expert

          Hmmm in RF3 you had to add the poll to the list of (re)rendered elements as well.

           

          Can you open the developer console of the IE? IE9 should have this - I am not sure about IE 8 or older. There could be some javascript errors logged. You can also keep attention if there are any POSTs every six seconds. The developer console has also the ability to switch between different emulation types: ie7 - ie9 and document types. Trail'n'Error....

          • 2. Re: RF4 a4j:poll works only once with IE8
            mn3 Newbie

            I checked the developer console but only the first time a POST is sended. Nothing hapens the second time. I added also the poll-ID to the render attribute. But nothing changed.

             

            My current example:

            <a4j:poll id="poll" interval="4000" render="poll"

                        enabled="true"

                        ontimer="#{rich:component('suchPopup')}.show(); window['refresh'](); return false;" />

             

            The funny thing is that the first time the popup opens and a POST is send and the second time the popup opens but no POST is send and the method refresh is not called.

            • 3. Re: RF4 a4j:poll works only once with IE8
              mn3 Newbie

              Haa, this works now:

               

              <a4j:poll id="poll" interval="4000" render="poll @form"

                          enabled="true"

                          ontimer="#{rich:component('suchPopup')}.show();"           

                          action="#{nctsMonitorModel.suchen()}"

                          oncomplete="#{rich:component('suchPopup')}.hide();" />

              • 4. Re: RF4 a4j:poll works only once with IE8
                Christian Peter Expert

                Oh somebody who speaks german - Greetings from Marburg, Germany :-)