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. sourceCode.rar
        7 kB
        Evgheni Sadovoi
      2. simple.rar
        8 kB
        Evgheni Sadovoi
      3. JiraNotes.docx
        222 kB
        Evgheni Sadovoi
      1. Original vs DownloadedContent Case 2.jpg
        918 kB
      2. Original vs DownloadedContent Case 1.jpg
        855 kB
      3. applicationStartUp.jpg
        71 kB

        Activity

        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)
        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: