public class CmsJspTagFormatter extends CmsJspScopedVarBodyTagSuport
<cms:formatter var="..." val="..." /> tag,
used to access and display XML content item information in a formatter.| Modifier and Type | Field and Description |
|---|---|
protected CmsObject |
m_cms
The CmsObject for the current user.
|
protected CmsFlexController |
m_controller
The FlexController for the current request.
|
protected CmsResource |
m_resource
Reference to the last loaded resource element.
|
| Constructor and Description |
|---|
CmsJspTagFormatter()
Empty constructor, required for JSP tags.
|
CmsJspTagFormatter(javax.servlet.jsp.PageContext context,
java.util.Locale locale)
Constructor used when using
formatter from scriptlet code. |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getLocale()
Returns the locale.
|
java.lang.String |
getRdfa()
Returns the name for the optional attribute that provides direct access to the RDFA map.
|
java.lang.String |
getVal()
Returns the name for the optional attribute that provides direct access to the content value map.
|
protected void |
init()
Initializes this formatter tag.
|
void |
release() |
void |
setLocale(java.lang.String locale)
Sets the locale.
|
void |
setRdfa(java.lang.String rdfa)
Sets the name for the optional attribute that provides direct access to the RDFA map.
|
void |
setVal(java.lang.String val)
Sets the name for the optional attribute that provides direct access to the content value map.
|
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributedoAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected CmsFlexController m_controller
protected transient CmsResource m_resource
public CmsJspTagFormatter()
public CmsJspTagFormatter(javax.servlet.jsp.PageContext context, java.util.Locale locale) throws javax.servlet.jsp.JspException
formatter from scriptlet code.context - the JSP page contextlocale - the locale to usejavax.servlet.jsp.JspException - in case something goes wrongpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionBodyTagSupport.doEndTag()public int doStartTag() throws javax.servlet.jsp.JspException, CmsIllegalArgumentException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionCmsIllegalArgumentExceptionTag.doStartTag()public java.lang.String getLocale()
public java.lang.String getRdfa()
public java.lang.String getVal()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class CmsJspScopedVarBodyTagSuportTag.release()public void setLocale(java.lang.String locale)
locale - the locale to setpublic void setRdfa(java.lang.String rdfa)
rdfa - the name for the optional attribute that provides direct access to the RDFA mappublic void setVal(java.lang.String val)
val - the name for the optional attribute that provides direct access to the content value mapprotected void init() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - in case something goes wrong