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 we...@apache.org on 2003/03/24 01:56:56 UTC

cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets JspPortletAction.java

weaver      2003/03/23 16:56:56

  Modified:    src/java/org/apache/jetspeed/modules/actions/portlets
                        JspPortletAction.java
  Log:
  Deperecated setTemplate() as it's functionallity was somewhat different
  than one would expect in that uses portlet session state for storage of the
  template to use.  This functionality has been moved up into PortletAction 
  which now has an additional setTemplate() method that has a persistent boolean attribute
  which determines the TTL of the overriden template.
  
  Revision  Changes    Path
  1.6       +14 -3     jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/JspPortletAction.java
  
  Index: JspPortletAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/JspPortletAction.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JspPortletAction.java	20 Mar 2003 18:11:50 -0000	1.5
  +++ JspPortletAction.java	24 Mar 2003 00:56:56 -0000	1.6
  @@ -159,11 +159,22 @@
        * for the portlet action
        */
       protected abstract void buildNormalContext(Portlet portlet, RunData rundata) throws Exception;
  -
  +	
  +	/**
  +	 * You should use one of PortletAction.setTemplate() methods
  +	 * @deprecated
  +	 */
       public void setTemplate(RunData data, Portlet portlet, String template)
       
       {
  -        super.setTemplate(data, template);
  +    	if(template != null)
  +    	{
  +        	super.setTemplate(data, template, true);
  +    	}
  +    	else
  +    	{
  +    		super.resetTemplate(data);
  +    	}
       }
   
   }
  
  
  

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