Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.0.0.GA_P01, 3.2
-
Fix Version/s: EE-3.2.0.GA, 3.3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Tomcat 7.0.14, Firefox, Chrome, IE
-
Assignee Priority:P1
Description
1. uncomment icecore:refresh tag on start.xhtml page in attached source code
2. run sample application
3. Open for example start.xhtml in Chrome & start2.xhtml in IE or Firefox
ISSUE: After some time specified in the interval parameter of the tag you should be able to see page refreshes in both browsers due to the presence of icecore:refresh tag on start.xhtml page. (request scoped beans will be re-initialized in both browsers)
Setting interval="0" duration="0" for the tag does not stop this behavior
-
-
Hide
- sampleSourceCode.zip
- 56 kB
- Evgheni Sadovoi
-
- nbproject/ant-deploy.xml 3 kB
- nbproject/build-impl.xml 58 kB
- nbproject/genfiles.properties 0.5 kB
- nbproject/private/private.properties 0.4 kB
- nbproject/private/private.xml 0.2 kB
- nbproject/project.properties 3 kB
- nbproject/project.xml 1 kB
- src/conf/MANIFEST.MF 0.0 kB
- src/java/.../JobApplicantService.java 0.3 kB
- src/java/.../JobApplicantServiceImpl.java 0.6 kB
- src/java/.../ApplicantController.java 4 kB
- src/.../WordCapitalizationConverter.java 2 kB
- src/java/.../LoggingPhaseListener.java 0.7 kB
- src/java/.../PagePhaseListener.java 2 kB
- src/java/org/.../view/model/Applicants.java 0.9 kB
- src/java/org/.../view/model/CityList.java 0.4 kB
- src/java/org/.../view/model/CountryList.java 0.4 kB
- src/java/org/.../model/FontSizeList.java 0.4 kB
- src/java/org/.../model/JobApplicant.java 2 kB
- src/java/org/.../view/model/RequestTest.java 0.4 kB
- src/java/org/.../model/ViewProperties.java 2 kB
- src/java/.../JSF-override_en.properties 0.0 kB
- src/java/.../resources/Msgs_en.properties 0.2 kB
- src/java/.../resources/Msgs_es.properties 0.2 kB
- src/java/.../resources/Msgs_fr.properties 0.2 kB
- src/java/org/.../view/util/FacesUtils.java 8 kB
- src/java/.../validators/EmailValidator.java 1 kB
- web/applicants.xhtml 1 kB
- web/index.jsp 0.0 kB
- web/job-applicant.xhtml 1 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Please attach a .war file that runs on tomcat and assign back to me.
Unzip case11783 file to get deployable .war file
Both start.jsf and start2.jsf are being refreshed: this appears to be working as expected.
The pages are as follows:
- start.jsf contains an icecore:refresh tag
- start2.jsf does not contain an icecore:refresh tag
When start2.jsf is loaded after start.jsf (even in a different browser) start2.jsf will be automatically refreshed.
RefreshHandler is implemented as an Application Scope SystemEvent listener, causing it to be incorrectly applied to all pages once activated.
The following fix is checked in: rather than add a JavaScript output component from a global SystemEventListener, the TagHandler for this feature is now adding a transient component directly to the ViewRoot. The TagHandler has been modified so that different instances should pick up different configuration parameters, but this suspected bug in the original implementation has not been confirmed or tested. The fixed implementation has been verified to work as desired with the provided test case.
Assigning to Jack (to work on after the ICEpush backoff and cloud push implementations).