Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7DR#3
-
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.
<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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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 -