Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:N/A
-
Assignee Priority:P2
-
ICEsoft Forum Reference:
Description
In ICEFaces 2.0.2 <ice:outputResource> behavior has changed.
In 1.8.x 'save file/open file' options dialog was appearing in browser when clicking on the link generated by the component. Now the file is opened right away in a new browser tab which is not always suitable (there is an option of right-clicking on the link and selecting 'save link as...' but this option is not clear for end users - taking into account that they got used to the old behavior).
Comparing HTTP response headers for <ice:outputResource> in ICEFaces 1.8 and 2.0 you can see that there is a header in 1.8 which is missing in 2.0:
<code>
Content-Disposition attachment; filename="/opt/testfile.txt"
<code>
In 1.8.x 'save file/open file' options dialog was appearing in browser when clicking on the link generated by the component. Now the file is opened right away in a new browser tab which is not always suitable (there is an option of right-clicking on the link and selecting 'save link as...' but this option is not clear for end users - taking into account that they got used to the old behavior).
Comparing HTTP response headers for <ice:outputResource> in ICEFaces 1.8 and 2.0 you can see that there is a header in 1.8 which is missing in 2.0:
<code>
Content-Disposition attachment; filename="/opt/testfile.txt"
<code>
Command: Commit
Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\outputresource\OutputResource.java
Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\core\src\main\java\org\icefaces\impl\push\DynamicResourceDispatcher.java
Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\core\src\main\java\org\icefaces\impl\util\Util.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\core\src\main\java\org\icefaces\impl\push\DynamicResourceDispatcher.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\outputresource\OutputResource.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\core\src\main\java\org\icefaces\impl\util\Util.java
Completed: At revision: 25423