ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-76

TreeTable error at Portlet enviroment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2.GA
    • Fix Version/s: 1.8.2.GA_P01
    • Component/s: Facelet Components
    • Labels:
      None
    • Environment:
      Liferay 5.2.3
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      I did a small Workaround to solve part of the problem, i manualy added the common.css to my project resource folder and linked it.
      <ice:outputStyle href="/resources/css/common.css" />
      The image its more problematic, i olny managed to show folder and leafs icons by modifying the component itself, by inserting a slash in front of the image url links userObject.setBranchExpandedIcon("/xmlhttp/css/xp/css-images/tree_folder_open.gif"); at the TreeTableNode class.

      Show
      I did a small Workaround to solve part of the problem, i manualy added the common.css to my project resource folder and linked it. <ice:outputStyle href="/resources/css/common.css" /> The image its more problematic, i olny managed to show folder and leafs icons by modifying the component itself, by inserting a slash in front of the image url links userObject.setBranchExpandedIcon("/xmlhttp/css/xp/css-images/tree_folder_open.gif"); at the TreeTableNode class.

      Description

      When using the Composite Component TreeTable, and i guess, all other similar components, it wont render well.
      The <ice-cc:css/> tag also do not resolve css issues.

      The css of the table does not load, and also the images, the component has a not relative image path, so it wont find it.

      A Sample log message

      17:47:30,647 INFO [STDOUT] 17:47:30,647 WARN [PortalImpl] Current URL /web/guest/xmlhttp/css/rime/css-images/tree_line_middle_node.gif generates exception: null
      17:47:32,696 INFO [STDOUT] 17:47:32,688 WARN [PortalImpl] Current URL /web/guest/xmlhttp/css/rime/css-images/tree_line_vertical.gif generates exception: null
      17:48:29,215 INFO [STDOUT] 17:48:29,215 WARN [PortalImpl] Current URL /web/guest/xmlhttp/css/rime/css-images/tree_line_middle_node.gif generates exception: null
      17:48:32,981 INFO [STDOUT] 17:48:32,981 WARN [PortalImpl] Current URL /web/guest/xmlhttp/css/rime/css-images/tree_line_vertical.gif generates exception: null

      I really need a solution for this.


        Issue Links

          Activity

          Marcelo Brunken created issue -
          Marcelo Brunken made changes -
          Field Original Value New Value
          Attachment screenshot-1.jpg [ 12268 ]
          Marcelo Brunken made changes -
          Comment [ The branch image links are broken ]
          Arran Mccullough made changes -
          Link This issue depends on IPCK-75 [ IPCK-75 ]
          Hide
          Brad Kroeger added a comment -

          Revision #22945 'Absolute Relative' references standard in ICEfaces component images. This means you precede image urls with a / ie: /xmlhttp/css/rime/css-images/tree_line_vertical.gif. This results in our servlet adding the context appropriately and images being accessible whether the source page is in the root of the web application or another folder nested in the root.

          HTML <img> tags have been replaced with ice:graphicImage tags for consistency. The <img> tag urls were not processed by our servlet to add the appropriate context to the absolute relative url.

          Show
          Brad Kroeger added a comment - Revision #22945 'Absolute Relative' references standard in ICEfaces component images. This means you precede image urls with a / ie: /xmlhttp/css/rime/css-images/tree_line_vertical.gif. This results in our servlet adding the context appropriately and images being accessible whether the source page is in the root of the web application or another folder nested in the root. HTML <img> tags have been replaced with ice:graphicImage tags for consistency. The <img> tag urls were not processed by our servlet to add the appropriate context to the absolute relative url.
          Hide
          Marcelo Brunken added a comment - - edited

          I replaced the URL tag with a ice:graphicImage yesterday, and it went well, the component worked on my Portlet Envyroment.

          I already sent a email with the source code as contribution. (Contribution is attached)

          I made 2 small changes on the TreeTable and DragAndDrop TreeTable, and the Java Class Model.
          Now it works on a Liferay Portlet correctly, the only issue now is that I need link the common.css manually, the ice-cc:css its not working on portlet.

          On the xhmtl I replaces the <img> tag with a ice:graphicImage plus a slash in front of the URL.
          At the java class, I added a slash on front of url Image.

          Show
          Marcelo Brunken added a comment - - edited I replaced the URL tag with a ice:graphicImage yesterday, and it went well, the component worked on my Portlet Envyroment. I already sent a email with the source code as contribution. (Contribution is attached) I made 2 small changes on the TreeTable and DragAndDrop TreeTable, and the Java Class Model. Now it works on a Liferay Portlet correctly, the only issue now is that I need link the common.css manually, the ice-cc:css its not working on portlet. On the xhmtl I replaces the <img> tag with a ice:graphicImage plus a slash in front of the URL. At the java class, I added a slash on front of url Image.
          Ken Fyten made changes -
          Attachment issue IPCK-76.zip [ 12269 ]
          Ken Fyten made changes -
          Salesforce Case []
          Fix Version/s 1.8.2.GA_P01 [ 10221 ]
          Hide
          Brad Kroeger added a comment -

          Marcelo,

          Thank you for your contribution. Your changes match our recent commit with one small exception - we also have style="border:none;" as an attribute on the ice:graphicImage tags.

          Brad

          Show
          Brad Kroeger added a comment - Marcelo, Thank you for your contribution. Your changes match our recent commit with one small exception - we also have style="border:none;" as an attribute on the ice:graphicImage tags. Brad
          Brad Kroeger made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Brad Kroeger
              Reporter:
              Marcelo Brunken
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: