ICEfaces
  1. ICEfaces
  2. ICE-7845

outputResource inside ice:tree returns same file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1.0.BETA1, 3.1, EE-3.0.0.GA_P01
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.0, Chrome, FF, IE, TomCat 7
    • Assignee Priority:
      P2

      Description

      Provided source code will create an ice:tree component that displays an ice:ouputResource for each node of the tree. Even though the URL is different on each of the generated <a> tags, it always returns the same underlying resource.

      To reproduce the problem:
      1. Create a sample application with a code attached to the ticket.
      2. Download simple folder to your machine
      3. Change variable values pointing to the path of the simple folder:
                      a. TreeBean.DIR = "C:\\Users\\Acer\\simple\\target";
                      b. TreeBean.testResource = new FileResource(new File("C:\\Users\\Acer\\simple\\target\\surefire-reportssimple-1.0-SNAPSHOT.jar"));
      4. Start application. You should see results shown in aplicationStartUp.jpg
      5. Follow instructions in the JiraNotes.docx
      1. JiraNotes.docx
        222 kB
        Evgheni Sadovoi
      2. simple.rar
        8 kB
        Evgheni Sadovoi
      3. sourceCode.rar
        7 kB
        Evgheni Sadovoi
      1. applicationStartUp.jpg
        71 kB
      2. Original vs DownloadedContent Case 1.jpg
        855 kB
      3. Original vs DownloadedContent Case 2.jpg
        918 kB

        Activity

        Evgheni Sadovoi created issue -
        Evgheni Sadovoi made changes -
        Field Original Value New Value
        Attachment JiraNotes.docx [ 14123 ]
        Attachment applicationStartUp.jpg [ 14124 ]
        Evgheni Sadovoi made changes -
        Evgheni Sadovoi made changes -
        Attachment sourceCode.rar [ 14127 ]
        Evgheni Sadovoi made changes -
        Salesforce Case [5007000000KGyTZ]
        Evgheni Sadovoi made changes -
        Attachment simple.rar [ 14128 ]
        Evgheni Sadovoi made changes -
        Description Provided source code will create an ice:tree component that displays an ice:ouputResource for each node of the tree. Even though the URL is different on each of the generated <a> tags, it always returns the same underlying resource.

        To reproduce the problem:
        1. Create a sample application with a code attached to the ticket.
        2. Download simple folder to your machine
        3. Change variable values pointing to the path of the simple folder on your machine:
        a. TreeBean.DIR = "C:\\Users\\Acer\\simple\\target";
        b. TreeBean.testResource = new FileResource(new File("C:\\Users\\Acer\\simple\\target\\surefire-reportssimple-1.0-SNAPSHOT.jar"));
        4. Start application. You should see results shown in aplicationStartUp.jpg
        5. Follow instructions in the JiraNotes.docx
        Provided source code will create an ice:tree component that displays an ice:ouputResource for each node of the tree. Even though the URL is different on each of the generated <a> tags, it always returns the same underlying resource.

        To reproduce the problem:
        1. Create a sample application with a code attached to the ticket.
        2. Download simple folder to your machine
        3. Change variable values pointing to the path of the simple folder:
                        a. TreeBean.DIR = "C:\\Users\\Acer\\simple\\target";
                        b. TreeBean.testResource = new FileResource(new File("C:\\Users\\Acer\\simple\\target\\surefire-reportssimple-1.0-SNAPSHOT.jar"));
        4. Start application. You should see results shown in aplicationStartUp.jpg
        5. Follow instructions in the JiraNotes.docx
        Evgheni Sadovoi made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Hide
        Evgheni Sadovoi added a comment -

        This is still reproducible with recent ICEfaces maintenance branch jars (tested with rev# 28514)

        Show
        Evgheni Sadovoi added a comment - This is still reproducible with recent ICEfaces maintenance branch jars (tested with rev# 28514)
        Ken Fyten made changes -
        Fix Version/s 3.1 [ 10312 ]
        Assignee Priority P2
        Assignee Ken Fyten [ ken.fyten ] Arturo Zambrano [ artzambrano ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28588 Thu Mar 29 11:27:31 MDT 2012 art.zambrano ICE-7845 modified ice:outputResource to work inside trees the same it works inside UIData components
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/outputresource/OutputResource.java
        Hide
        Arturo Zambrano added a comment -

        Committed fix at revision 28588 in the trunk.

        Made the ice:outputResource component work with trees the same way it works with UIData components.

        Show
        Arturo Zambrano added a comment - Committed fix at revision 28588 in the trunk. Made the ice:outputResource component work with trees the same way it works with UIData components.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.0.0.GA_P01 [ 10327 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28593 Thu Mar 29 16:10:19 MDT 2012 art.zambrano ICE-7845 modified ice:outputResource to work inside trees the same way it works inside UIData components
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/compat/components/src/main/java/com/icesoft/faces/component/outputresource/OutputResource.java
        Hide
        Arturo Zambrano added a comment -

        Committed fix at revision 28593 in the maintenance branch.

        Show
        Arturo Zambrano added a comment - Committed fix at revision 28593 in the maintenance branch.
        Ken Fyten made changes -
        Fix Version/s 3.1.0.BETA1 [ 10335 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: