You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Sean Taylor <da...@bluesunrise.com> on 2004/02/03 07:11:46 UTC
Re: [J1] Forward Service Problem
On Thursday, January 29, 2004, at 01:01 PM, Dmitry Sklyut wrote:
>> Hi All,
>>
>> I have a problem using the Forward service. Here is the situation:
>>
>> I have a set of portlets one of them has a detail link that uses
>> <jetspeed:forward> to forward to a different page.psml and portlet.
>> Once
>> I am done with that portlet I would lile to go back to where I came
>> from.
>> So I declared another forward to the pane that I came from. The
>> forward
>> to a portlet works like a champ, but the forward back does not.
>>
>> Here is my forwards declaration:
>>
>> <forward name='highbill'>
>> <page name='default.psml' role='csr'/>
>> <pane id='P-f9a04b6fec-10001'/>
>> </forward>
>>
>> <forward name='billnoticedetail'>
>> <page name='billnoticedetail' role='csr'/>
>> <portlet id='P-fa5ec14b8a-10001' action='controls.Maximize'/>
>> </forward>
>>
>> What I think is happening is <jetspeed:pane> tag on the Home.jsp
>> checks
>> for the js_peid. js_peid is the id of the portlet on the
>> "billnoticedetail" page i.e. <portlet id='P-fa5ec14b8a-10001'
>> action='controls.Maximize'/>. This messes everything up as all I
>> want is
>> to go to a pane on the default page. The tag on the Home.jsp is this
>> <jetspeed:pane name="default"/> and the code for the tag:
>>
>> if (data != null && data.getUser() != null)
>> {
>> JetspeedTool jt = new JetspeedTool(data);
>> String jspeid = (String) data.getUser().getTemp("js_peid");
>> if (jspeid != null)
>> {
>> data.setMode(JetspeedRunData.MAXIMIZE);
>> result = jt.getPortletById(jspeid);
>> }
>> else
>> {
>> result = jt.getPane(this.name);
>> }
>> }
>>
>> From this code it seems that I will never be able to hit the pane
>> specified in the forward declaration no matter what I do. Has anyone
>> had
>> a similar issue? How did you resolve it?
>>
>> Currently I only see one way of doing it is to have a hidden form and
>> have
>> my "Back" link submit that form. That form would call a Turbine
>> Action
>> that will do a Java ForwardService.forwardDynamic() call. But that
>> seems
>> a little excessive to me. I will also have to clear the js_peid from
>> the
>> temp user storage....
>>
Im also finding that putting the pane or peid in the session to track
navigational state can be problematic.
Regarding your forwarding problem, I think it would be best if you sent
me some sample PSML and your forward XML
I will then try to debug it
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org