|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.bea.wlw.netui.tags.AbstractBaseTag
com.bea.wlw.netui.tags.template.Template
public class Template
This tags defines the template to use within a content page. The
content page interacts with the template page through children tags
of the
Template tag. The legal children are as follows:
setAttribute -- A Tag that will set an Attribute on the
template.
section -- A tag that defines the content of a section
defined in the template.
templatePage
attribute on the
Template tag. The Template file is included from
the Template tag and will include sections defined
in the content page. The content is contained in one or more
Section tags, which are children of the
Template tag. In addition, the content page can set
attributes of the template page.
| Attribute Descriptions | |||
|---|---|---|---|
| Attribute | Required | Runtime Expression Evaluation | Data Bindable |
| templatePage | Yes | No | No |
| The URL of the template JSP. This is a URL that locates the template JSP page. | |||
| reportErrors | No | No | No |
| Does the template contain a <netui:html> tag that should report tag errors? | |||
Attribute,
IncludeSection,
Section,
SetAttribute,
Visible,
Serialized Form <netui-template:template templatePage="./template.jsp">
...
<netui-template:setAttribute name="title" value="Template Tags Sample"/>
...
</netui-template:template>
SetAttribute-- a tag that fills aAttributeplaceholder with content.Section-- a tag that fills aIncludeSectionplaceholder with content.
The URL of the template page is specified by the templatePage
attribute on the
<netui-template:template> tag.
| Nested Class Summary | |
|---|---|
static class |
Template.TemplateContext
|
| Field Summary |
|---|
| Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag |
|---|
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface com.bea.wlw.netui.tags.template.TemplateConstants |
|---|
TEMPLATE_ATTRIBUTES, TEMPLATE_SECTIONS |
| Fields inherited from interface com.bea.wlw.netui.tags.ErrorReporter |
|---|
CONTAINER_ERRORS |
| Fields inherited from interface com.bea.wlw.netui.tags.html.HtmlConstants |
|---|
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 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 | |
|---|---|
Template()
|
|
| Method Summary | |
|---|---|
void |
addError(AbstractPageError ape)
Add an error to the errors being reported by this tag. |
int |
doEndTag()
The tag extension lifecycle method called after the tag has processed the body. |
int |
doStartTag()
the tag extension lifecycle method called when the tag is first encountered. |
boolean |
getReportErrors()
Return a boolean indicating that the template expects the template file to report errors |
String |
getTagName()
Returns the name of the Tag. |
String |
getTemplatePage()
Return the URL of the template JSP page. |
boolean |
isReporting()
This boolean indicates if an ErrorReporter is reporting errors or not. |
protected void |
localRelease()
Reset all of the fields of the tag. |
ArrayList |
returnErrors()
Return an ArrayList of the errors |
void |
setReportErrors(boolean reportErrors)
Set the boolean indicating that the template should report errors. |
void |
setTemplatePage(String templatePage)
Set the URL of the template to use. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setParent |
| Constructor Detail |
|---|
public Template()
| Method Detail |
|---|
public String getTagName()
getTagName in class AbstractBaseTagpublic void setReportErrors(boolean reportErrors)
reportErrors - boolean indicating that errors should be reportedpublic boolean getReportErrors()
public void setTemplatePage(String templatePage)
templatePage
is an URL which
identifies the JSP template page.
templatePage - - a URL pointing to a JSP page that represents the
template.public String getTemplatePage()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - on errors.
public int doEndTag()
throws javax.servlet.jsp.JspException
templatePage attribute. The
contents of the template are made available to the template page.
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - on all errors. The most common error is
an error indicating that the JSP page representing the Template
isn't found.protected void localRelease()
localRelease in class AbstractBaseTagpublic void addError(AbstractPageError ape)
addError in interface ErrorReporterape - - The AbstractPageError to addpublic ArrayList returnErrors()
returnErrors in interface ErrorReporterArrayList of all errors.public boolean isReporting()
isReporting in interface ErrorReporter
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||