Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Component/s: Framework, ICE-Components, Sample Apps
-
Labels:None
-
Environment:ICEfaces 2, Rich Text Editor
Description
The Component Showcase preloads the resources required for the Rich Input Text editor so that they are in the head before the component is dynamically added to the page.
To recreate the problem:
1) Load the component showcase main page. Check Firebug or the console for whatever browser you are using and ensure that the resource loaded. The resource link typically looks like this:
http://localhost:8080/component-showcase/icefaces/resource/LTE5NDk5MzQyNTU=//ckeditor.js
There is also related resource links that look like this:
http://localhost:8080/component-showcase/icefaces/resource/LTE5NDk5MzQyNTU=/
2) Clear cookies from your browser.
3) Reload the page. The above resource links will result in a 404 Not found. The response content comes from the SessionBasedResourceDispatcher:
externalContext.responseSendError(404, "Could not find requested dynamic resource.");
Because it's a Session based dispatcher, clearing the cookies also removes the session id. However, because the resources don't reload, the Rich Input Text no longer functions.
To recreate the problem:
1) Load the component showcase main page. Check Firebug or the console for whatever browser you are using and ensure that the resource loaded. The resource link typically looks like this:
http://localhost:8080/component-showcase/icefaces/resource/LTE5NDk5MzQyNTU=//ckeditor.js
There is also related resource links that look like this:
http://localhost:8080/component-showcase/icefaces/resource/LTE5NDk5MzQyNTU=/
2) Clear cookies from your browser.
3) Reload the page. The above resource links will result in a 404 Not found. The response content comes from the SessionBasedResourceDispatcher:
externalContext.responseSendError(404, "Could not find requested dynamic resource.");
Because it's a Session based dispatcher, clearing the cookies also removes the session id. However, because the resources don't reload, the Rich Input Text no longer functions.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
My guess would be that the resource should be application scoped rather than session scoped since we always want this on to be there in this particular case.
Show
Deryk Sinotte
added a comment - My guess would be that the resource should be application scoped rather than session scoped since we always want this on to be there in this particular case.
I removed the extra slash as described above and tested it on Tomcat + Component Showcase with no ill effects. The change is now checked into the icefaces2/trunk