You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Sachdeva, Khemchand" <ks...@Corio.com> on 2004/09/22 13:52:16 UTC

IFrame Portlet targetURL does not work for the first time

Hi All

I have a IFramePortlet inside a tab defined in the .psml file like this.

    <portlets id="P-fd30163b81-10062" name="Knowledge">
        <metainfo>
            <title>Knowledge</title>
        </metainfo>
        <security-ref parent="KnowledgeShare"/>
        <layout position="3" size="-1"/>
        <entry id="P-fd30163b81-10063" parent="Intraspect Access">
            <layout position="-1" size="-1">
                <property name="column" value="0"/>
                <property name="row" value="0"/>
            </layout>
        </entry>
    </portlets>

And this is the portlet entry defined in xreg file.

    <portlet-entry name="Intraspect Access" hidden="false" type="ref"
parent="IFramePortlet" application="false">
        <security-ref parent="KS"/>
        <meta-info>
            <title>Knowledge</title>
        </meta-info>
 
<classname>com.corio.tsr.implementations.portlet.ICUEFramePortlet</classname
>
		<parameter name="width" value="100%" hidden="false"/>
		<parameter name="height" value="370" hidden="false"/>
		<parameter name="scrolling" value="yes" hidden="false"/>
		<parameter name="name" value="iCUE Portlet" hidden="true"/>
		<parameter name="url" value="{ks.url}/gm/mypage?view=iSRVCE"
hidden="false"/>
        <media-type ref="html"/>
    </portlet-entry>

Let's say I want to show www.yahoo.com inside this portlet I use the
following URL.

https://<machinename>/<applicationname>/portal/media-type/html/page/default.
psml/js_panename/Knowledge?targetUrl=http://www.yahoo.com

After we login into Jetspeed, by default I am on tab1 let's say. Some
portlet in this tab points to the above URL.
Now when for the first time we click on the URL it does not go to the
Knowledge tab as the URL points to, instead it refreshes the same tab again.
If you click on the link for the second time(after the refresh has happened)
it goes to the Knowledge tab and shows the page for http://www.yahoo.com
inside the portlet as it should.

Any ideas why it does not work the first time around ?


Khem

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org