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

        Evgheni Sadovoi created issue -
        Evgheni Sadovoi made changes -
        Field Original Value New Value
        Attachment Case11783.zip [ 15515 ]
        Evgheni Sadovoi made changes -
        Salesforce Case Reference 5007000000SPYr5AAH
        Evgheni Sadovoi made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Assignee Ken Fyten [ ken.fyten ] Ted Goddard [ ted.goddard ]
        Fix Version/s 3.3 [ 10370 ]
        Assignee Priority P1 [ 10010 ]
        Ted Goddard made changes -
        Assignee Ted Goddard [ ted.goddard ] Evgheni Sadovoi [ evgheni.sadovoi ]
        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.
        Evgheni Sadovoi made changes -
        Assignee Evgheni Sadovoi [ evgheni.sadovoi ] Ted Goddard [ ted.goddard ]
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ] Mircea Toma [ mircea.toma ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34051 Sun Mar 24 14:52:13 MDT 2013 mircea.toma ICE-9072 Modified ice.setupRefresh function to register timer shutdown callback with document "unload" event and also with ice.onElementUpdate.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/facelets/tag/icefaces/core/RefreshHandler.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/application.js
        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.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: