|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.tonbeller.wcf.component.RendererTag
renders a Component via xsl stylesheet. The following stylesheet parameters are provided automatically (w/o nested parameter tag):
renderId
- contains the id of this tag. If not set the modelReference is taken
context
- the context path of the application for building URLs
Document
created by the
Component
Searches for <param name=".."/> elements and creates
a corresponding attribute in its parent. For example, if a Component
s
render()
method returns the following Document
<myelem> <param name="abc" attr="bcd"/> </myelem>it will become
<myelem bcd="efg"> <param name="abc" attr="bcd"/> </myelem>where
efg
is the value of the abc
parameter.
If the parameter abc
does not exsist, the attribute
bcd
is removed.
This may be used to configure the page flow from a jsp, e.g.
<button label="OK" action="validate" handler="..."> <param name="successPage" attr="forward"/> </button>will create a forward attribute to the button element whose value is supplied by the jsp author.
Field Summary |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
RendererTag()
|
Method Summary | |
int |
doEndTag()
renders the component |
int |
doStartTag()
|
java.lang.String |
getRef()
Returns the ref. |
java.lang.String |
getXslUri()
Returns the xslUri. |
boolean |
isXslCache()
Returns the xslCache. |
void |
removeParameter(java.lang.String name)
removes a parameter that is defined globally for this transformation |
void |
setRef(java.lang.String ref)
Sets the ref. |
protected void |
setXmlParameters(org.w3c.dom.Document document)
sets the parameters to the xml document. |
protected void |
setXmlParameters(org.w3c.dom.NodeList list)
|
void |
setXslCache(boolean xslCache)
Sets the xslCache. |
void |
setXslUri(java.lang.String xslUri)
Sets the xslUri. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RendererTag()
Method Detail |
public void removeParameter(java.lang.String name)
name
- public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void setXmlParameters(org.w3c.dom.Document document)
<myelem> <param name="abc" attr="bcd"/> </myelem>will become
<myelem bcd="efg"> <param name="abc" attr="bcd"/> </myelem>where
efg
is the value of the abc
parameter.
If the parameter abc
does not exsist, the attribute
bcd
is removed.
protected void setXmlParameters(org.w3c.dom.NodeList list)
public java.lang.String getRef()
public boolean isXslCache()
public java.lang.String getXslUri()
public void setRef(java.lang.String ref)
ref
- The ref to setpublic void setXslCache(boolean xslCache)
xslCache
- The xslCache to setpublic void setXslUri(java.lang.String xslUri)
xslUri
- The xslUri to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |