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



Reply via email to