|
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.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport com.bea.wlw.netui.tags.AbstractBaseTag com.bea.wlw.netui.tags.html.ScriptContainer com.bea.wlw.netui.tags.html.Html
public class Html
Generates the html element and performs error handling within its body.
Attribute Descriptions | |||
---|---|---|---|
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
dir | No | No | No |
The direction of the HTML, left-to-right (LTR) or right-to-left (RTL). | |||
useLocale | No | No | No |
A boolean specifying whether the html output should include
xml:lang=defaultLocale.getLanguage() . |
<netui:html dir="LTR" useLocale="true" />
JavaScript
The <netui:html> tag writes out the following JavaScript functions. These functions are used to map the tagId attributes specified in <netui> tags to the id attributes that are written to the rendered HTML tags.
Some application containers may alter the id attribute of the rendered HTML tags to ensure that all elements on the page have a unique id. (Portal containers can sometimes do this.) In such cases a mapping is created between the tagId's and actual id's rendered in the HTML tags. The following functions are used to return the rendered id values based on the tagId values.
function getNetuiTagName(id, tag) { if (scopeId == "") return netui_names[id]; else return netui_names[portletId__id]; } function getScopeId(tag) { if (tag == null) return ""; if (tag.scopeId != null) return tag.scopeId; return getScopeId(tag.parentElement); }
Field Summary | |
---|---|
static String |
HTML_401
Constant representing the document type html 4.01 |
static String |
HTML_401_QUIRKS
Constant representing the document type html 4.01 |
static String |
HTML_TAG_ID
Store the HTML tag instance in the request. |
static String |
XHTML_10
Constant representing the document type XHTML 1.0 Transitional. |
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.ErrorReporter |
---|
CONTAINER_ERRORS |
Fields inherited from interface com.bea.wlw.netui.tags.DocumentRenderingType |
---|
HTML_RENDERING, HTML_RENDERING_QUIRKS, UNKNOWN_RENDERING, XHTML_RENDERING |
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 | |
---|---|
Html()
|
Method Summary | |
---|---|
void |
addError(AbstractPageError ape)
Add an error to the errors being reported by this tag. |
protected Locale |
currentLocale()
Return the current Locale for this request, creating a new one if necessary. |
int |
doAfterBody()
Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user. |
int |
doEndTag()
Write out the body content and report any errors that occured. |
int |
doStartTag()
|
String |
getDir()
Gets the dir value of the html. |
String |
getDocumentType()
|
int |
getNextId()
This method will return the next unique integer within the scope of this tag. |
String |
getTagName()
Returns the name of the Tag. |
int |
getTargetDocumentType()
|
boolean |
getUseLocale()
Gets whether the default locale's language should be used. |
boolean |
isReporting()
This boolean indicates if an ErrorReporter is reporting errors or not. |
protected void |
localRelease()
Release any acquired resources. |
void |
reportErrorToBuffer(weblogic.utils.UnsyncStringBuffer sb)
|
ArrayList |
returnErrors()
Return an ArrayList of the errors |
void |
setDir(String dir)
Sets the dir value of the html. |
void |
setDocumentType(String docType)
|
void |
setUseLocale(boolean locale)
Sets whether the default locale's language should be used. |
Methods inherited from class com.bea.wlw.netui.tags.html.ScriptContainer |
---|
addScriptCode, addScriptFunction, addTagId, getScopeId, isScriptWritten, nextTagIdRef, processIdMap, replaceTagNameRefs, resolveTagIdRef, setScopeId, writeScript, writeScriptBlock |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
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 |
Field Detail |
---|
public static final String HTML_401
public static final String HTML_401_QUIRKS
public static final String XHTML_10
public static final String HTML_TAG_ID
Constructor Detail |
---|
public Html()
Method Detail |
---|
public String getTagName()
getTagName
in class ScriptContainer
public int getTargetDocumentType()
getTargetDocumentType
in interface com.bea.wlw.netui.tags.DocumentRenderingType
public String getDir()
public void setDir(String dir)
dir
- - "LTR" or "RTL"LTR
) or right-to-left (RTL
).public boolean getUseLocale()
public void setUseLocale(boolean locale)
locale
- - true or falsexml:lang=defaultLocale.getLanguage()
.public String getDocumentType()
public void setDocumentType(String docType)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class ScriptContainer
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class ScriptContainer
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class ScriptContainer
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic void reportErrorToBuffer(weblogic.utils.UnsyncStringBuffer sb)
public void addError(AbstractPageError ape)
addError
in interface ErrorReporter
ape
- - The AbstractPageError to addpublic int getNextId()
public ArrayList returnErrors()
returnErrors
in interface ErrorReporter
ArrayList
of all errors.public boolean isReporting()
isReporting
in interface ErrorReporter
protected void localRelease()
localRelease
in class ScriptContainer
protected Locale currentLocale()
null
.
|
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 |