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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15732 Wed Feb 06 11:49:45 MST 2008 deryk.sinotte ICE-2714: dynamically generate iframe markup so that context path can be used in src attribute (better support for portlets)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/commandSortHeader.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/gmap/demo6.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/dragDrop.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/selectInputDate.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/tree.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/outputChart/chart.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/buttonsAndLinks.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/inputFile.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/connectionStatus.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/tableExpandable.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/gmap/demo5.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/inputRichText.jspx
        Commit graph ADD /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/util/ContextUtilBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/WEB-INF/faces-config.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/dataPaginator.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/outputProgress.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/gmap/demo3.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/outputChart/combinedChart.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/textFields.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/menuBar.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/resizableColumns.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/outputChart/dynamicChart.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/table.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/tableColumns.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/tableRowSelection.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/gmap/demo4.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/gmap/demo2.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/columnGroup.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/autoComplete.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/effects.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/selectionTags.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/tableGrouping.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/web/inc/components/gmap/demo1.jspx

          People

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

            Dates

            • Created:
              Updated:
              Resolved: