[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jetspeed-user
Subject:    Re: Getting back to the original port page (JSP pages and actions)
From:       Michael Rothrock <michael () michaelrothrock ! com>
Date:       2004-07-30 1:22:08
Message-ID: BD2EF0D0.D34A%michael () michaelrothrock ! com
[Download RAW message or body]


From within buildNormalContext, if you've inherited from the generic JSP
action:

String template = portlet.getPortletConfig().getInitParameter("template");
setTemplate(rundata, template);


On 7/29/04 4:45 PM, "Wilson, Allen" <Allen.Wilson@marcresearch.com> wrote:

> I never accessed the registry to pull back a portlet. Can you elaborate?
> 
> -----Original Message-----
> From: Michael Rothrock [mailto:michael@michaelrothrock.com]
> Sent: Thursday, July 29, 2004 2:18 PM
> To: Jetspeed Users List
> Subject: Re: Getting back to the original port page (JSP pages and
> actions)
> 
> 
> The original template is stored in the registry.  Read it from the
> registry and, upon completion of your action, set the template back to
> the original one.
> 
> FWIW, I have arrived at a point where I place the template selection
> logic in buildNormalContext, including Step 1..n templates for
> wizard-style portlets as that seems easiest to follow/maintain.  The
> actions simply set a parameter on the session indicating which template
> should be set.  This centralizes all of my template selections, avoiding
> the problem of having template setting code scattered throughout my
> class.  YMMV.
> 
> -- Michael
> 
> 
> On 7/29/04 12:12 PM, "Wilson, Allen" <Allen.Wilson@marcresearch.com>
> wrote:
> 
>> Question.....
>> 
>> I know how to get to a template page by set the SetTemplate() property
> 
>> of the Jetspeed object but I am having a problem getting back to the
>> original portlet page. For example...
>> 
>> Portlet 1 - Submit button is pressed and action processes information
>> and sends user to template page Template 1 - User fills out form and
>> submits. Action processes information and sends user to next template
>> page Template 2 - User verifies information and submits.
>> 
>> At this point I would like the user to be return to Portlet 1.
>> 
>> Anyone know how I do that
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>> 
>> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic