portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Orciuch" <mark_orci...@yahoo.com>
Subject RE: Question about JspAction
Date Thu, 06 Mar 2003 18:39:07 GMT
Scott,

Either I didn't think about doing it this way OR it didn't work (I don't
remember now but most likely I didn't think about it). Have you tried using
your method? It seems that it should work though...

Best regards,

Mark Orciuch - morciuch@apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/

> -----Original Message-----
> From: Weaver, Scott [mailto:Sweaver@rippe.com]
> Sent: Thursday, March 06, 2003 12:29 PM
> To: 'Jetspeed Developers List'
> Subject: Question about JspAction
>
>
> Why was setTemplate(RunData data, String template) deprecated and
> public void setTemplate(RunData data, Portlet portlet, String template)
> added?  The same functionality could have been achieved like this
> with out deprecating the existing method signature and adding a new one:
>
> public void setTemplate(RunData data, String template)
> {
>   Portlet portlet = (Portlet) data.getRequest().getAttribute("portlet");
>   if(template != null)
>   {
>     PortletSessionState.setAttribute(portlet, data,
> JspPortlet.TEMPLATE,
>     template);
>   }
>   else
>   {
>     PortletSessionState.clearAttribute(portlet, data,
> JspPortlet.TEMPLATE);
>   }
>
> }
>
> The Portlet is ALWAYS placed in the request by the
> JspPortlet.getContent() prior ActionLoader.exec().  Is there
> something I am missing here that is blatantly obvious?  Is there
> a chance that JspAction.setTemplate() is invoked prior to
> JspPortlet.getContent()?
>
> Thanks,
> Scott
>
>
>
>


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


Mime
View raw message