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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: