Author: julien(a)jboss.com
Date: 2008-02-08 17:18:30 -0500 (Fri, 08 Feb 2008)
New Revision: 9876
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/jsp/taglib/PortletTag.java
Log:
just make sure we clean state on tag
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/jsp/taglib/PortletTag.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/jsp/taglib/PortletTag.java 2008-02-08
21:59:09 UTC (rev 9875)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/jsp/taglib/PortletTag.java 2008-02-08
22:18:30 UTC (rev 9876)
@@ -166,7 +166,7 @@
this.errorPageAttr = errorPage;
}
- private void updateInternalState()
+ private void initState()
{
//
Set<Mode> supportedModes = new LinkedHashSet<Mode>();
@@ -213,9 +213,18 @@
this.response = getPortalResponse();
}
+ private void destroyState()
+ {
+ this.initialMode = null;
+ this.supportedModes = null;
+ this.supportedWindowStates = null;
+ this.pageTag = null;
+ this.response = null;
+ }
+
public int internalDoStartTag() throws JspException
{
- updateInternalState();
+ initState();
//
PagePortletControllerContext context = response.getPortletControllerContext();
@@ -268,24 +277,9 @@
pageTag.content = bodyContent.getString();
}
- result = null;
-
-/*
//
- switch (status)
- {
- case SKIPPED:
- break;
- case RENDERED:
- break;
- case BUFFERED:
- PageTag pageTag = (PageTag)findAncestorWithClass(this, PageTag.class);
- break;
- default:
- throw new AssertionError();
- }
+ destroyState();
-*/
//
return EVAL_PAGE;
}