ICEfaces
  1. ICEfaces
  2. ICE-2714

The Description and Source tabs of Component Showcase don't work in portlets

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7DR#3
    • Fix Version/s: 1.7Beta1, 1.7
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      Portal portlet
    • Affects:
      Sample App./Tutorial

      Description

      The original issue was that that page fragments that were included for each component that generated the IFrames for the Description and Source tabs used relative references to retrieve their content: For example:

      <iframe src="./docs/selectInputTextDoc.html"
                     class="includeIframe"
                     width="100%">
      </iframe>

      This did not work in portlets, so the original fix was to hard code the context to the path to make it absolute. Like this:

      <iframe src="/component-showcase/docs/selectInputTextDoc.html"
                     class="includeIframe"
                     width="100%">
      </iframe>

      Unfortunately, this makes things a bit fragile. If the .war file isn't named exactly right (i.e. component-showcase.war), then the context is incorrect and the IFrame content can't be found. This showed up prominently in Jetspeed 2 were the deployment process requires that the deployed war is prefixed with the term "jetspeed" (i.e jetspeedcomponent-showcase.war).

      So we need a way to dynamically include the context in the src path in a way that works for both portlets and web-apps.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Affects [Sample App./Tutorial]
        Ken Fyten made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Deryk Sinotte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.7Beta1 [ 10121 ]
        Resolution Fixed [ 1 ]
        Deryk Sinotte made changes -
        Field Original Value New Value
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Deryk Sinotte created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: