public class ComponentTag extends RenderServiceTag
| Constructor and Description |
|---|
ComponentTag() |
| Modifier and Type | Method and Description |
|---|---|
String |
getChrome() |
String |
getComponent() |
protected int |
invokeRenderService(RenderService renderService,
RequestContext renderContext,
ModelObject object)
This method should be implemented to invoke the required method of the
RenderService
that the subclass needs to render its output |
boolean |
isChromeless() |
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 |
setChrome(String chrome) |
void |
setChromeless(boolean chromeless) |
void |
setComponent(String componentId) |
doStartTagInternaldoCatch, 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 setComponent(String componentId)
public String getComponent()
public void setChrome(String chrome)
public String getChrome()
public boolean isChromeless()
public void setChromeless(boolean chromeless)
protected int invokeRenderService(RenderService renderService, RequestContext renderContext, ModelObject object) throws RequestDispatchException
RenderServiceTagThis method should be implemented to invoke the required method of the RenderService
that the subclass needs to render its output
invokeRenderService in class RenderServiceTagrenderService - RenderServicerenderContext - RequestContextobject - ModelObjectRequestDispatchExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.