ICEfaces
  1. ICEfaces
  2. ICE-9072

icecore:refresh affect pages on POST redirect

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2, EE-3.2.0.GA
    • Fix Version/s: 3.3
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Chrome, Firefox, IE, Tomcat 7
    • Assignee Priority:
      P1
    • Salesforce Case Reference:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      full redirect via faces-redirect=true will solve the issue with page refreshes.
      For Example:
      <h:commandButton value="Go to other page" action="/destinationPage.xhtml?faces-redirect=true"/>
      Show
      full redirect via faces-redirect=true will solve the issue with page refreshes. For Example: <h:commandButton value="Go to other page" action="/destinationPage.xhtml?faces-redirect=true"/>

      Description

      If you use icecore:refresh tag in one page and navigate to another page which does not have that tag via POST redirect, destination page will continue to refresh itself. You will also notice change in Interval time for those refreshes.

      To reproduce:
      1. run sample application
      2. go to start.xhtml page and click "Go to start 2" command button


      NOTE: This issue is similar to previously resolved ICE-8840

        Activity

        Hide
        Ted Goddard added a comment -

        Please test the following workaround: add an icecore:refresh tag to the second page that disables the refresh.

        From the point of view of the ajax page, the "navigation" is simply a page update, so there is no particular reason to cancel the refresh.

        Show
        Ted Goddard added a comment - Please test the following workaround: add an icecore:refresh tag to the second page that disables the refresh. From the point of view of the ajax page, the "navigation" is simply a page update, so there is no particular reason to cancel the refresh.
        Hide
        Mircea Toma added a comment -

        Modified ice.setupRefresh function to register timer shutdown callback with document "unload" event and also with ice.onElementUpdate. So now when browser's URL changes, there is an update that changes the refresh interval or the refresh is disabled the timer will be shutdown.

        Show
        Mircea Toma added a comment - Modified ice.setupRefresh function to register timer shutdown callback with document "unload" event and also with ice.onElementUpdate. So now when browser's URL changes, there is an update that changes the refresh interval or the refresh is disabled the timer will be shutdown.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: