public abstract class AbstractObjectTag extends RenderServiceTag
| Constructor and Description |
|---|
AbstractObjectTag() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat() |
String |
getObject() |
String |
getPage() |
String |
getPageType() |
void |
release()
The life-cycle of a custom JSP tag is that the class is is instantiated when it is first required and
then re-used for all subsequent invocations.
|
void |
setFormat(String formatId) |
void |
setObject(String objectId) |
void |
setPage(String pageId) |
void |
setPageType(String pageTypeId) |
doStartTagInternal, invokeRenderServicedoCatch, doFinally, doStartTag, getRequestContextpublic void release()
The life-cycle of a custom JSP tag is that the class is is instantiated when it is first required and
then re-used for all subsequent invocations. When a JSP has non-mandatory properties it means that the
setters for those properties will not be called if the properties are not provided and the old values
will still be available which can corrupt the behaviour of the code. In order to prevent this from happening
we should override the release method to ensure that all instance variables are reset to their
initial state.
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic void setPage(String pageId)
public String getPage()
public void setPageType(String pageTypeId)
public String getPageType()
public void setObject(String objectId)
public String getObject()
public void setFormat(String formatId)
public String getFormat()
Copyright © 2005–2016 Alfresco Software. All rights reserved.