AbstractBaseTag
ScriptReporter
Acts as a container that will bundle up JavaScript created by other NetUI tags, and output it within a single <script> tag. This is especially needed for Portal web applications, because they often cannot rely on having <html> ... </html> tags to provide a default container. In a portlet, some JSP pages might be included into other JSP pages. Having redundant <html> ... </html> tags in the rendered portlet JSP can result in display problems for some browsers. However, omitting the <html> tag (and the container it provides) can result in cluttered code, especially where Javascript appears in the file. To solve this issue, WebLogic Workshop provides the <netui:scriptContainer> tag.
Attribute Descriptions | |||
---|---|---|---|
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
scopeID | No | No | No |
The ID that is associated with the code methods. |
Related Topics
<netui:scriptContainer> Tag Sample
Object
TagSupport
BodyTagSupport
AbstractBaseTag
ScriptContainer
BodyTag
, IterationTag
, ScriptReporter
, Serializable
, Tag
Html
Field Summary |
Fields from com.bea.wlw.netui.tags. |
|
Fields from javax.servlet.jsp.tagext. |
bodyContent |
Fields from javax.servlet.jsp.tagext. |
id, pageContext |
Fields from interface javax.servlet.jsp.tagext. |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields from interface javax.servlet.jsp.tagext. |
EVAL_BODY_AGAIN |
Fields from interface javax.servlet.jsp.tagext. |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary |
Method Summary |
public void |
|
public void |
|
public void | |
public int |
|
public int |
|
public int | |
public |
|
public |
|
protected void |
|
public |
|
protected void | |
protected |
|
public |
|
public void |
|
protected void |
Methods from com.bea.wlw.netui.tags. |
|
Methods from javax.servlet.jsp.tagext. |
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods from javax.servlet.jsp.tagext. |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface javax.servlet.jsp.tagext. |
doInitBody, setBodyContent |
Methods from interface javax.servlet.jsp.tagext. |
doAfterBody |
Methods from interface com.bea.wlw.netui.tags. |
|
Methods from interface javax.servlet.jsp.tagext. |
doEndTag, doStartTag, getParent, release, setPageContext, setParent |
Constructor Detail |
public ScriptContainer()
Method Detail |
public void addScriptCode(String
s)
This method will add Script as top level code that runs when
the page is loaded.
public void addScriptFunction(String
s)
This method will add Script as a function.
public void addTagId(Adds a tagID and tagName to the Html's getId javascript function.String
tagId,String
tagName)
public int doAfterBody()Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.
throwsJspException
BodyTagSupport.doAfterBody()
JspException
public int doEndTag()Write out the body content and report any errors that occured.
throwsJspException
BodyTagSupport.doEndTag()
JspException
public int doStartTag()
throwsJspException
BodyTagSupport.doStartTag()
JspException
public String
getScopeId()
return the scopeId associated with the ScriptContainer
public String
getTagName()
Returns the name of the Tag.
AbstractBaseTag.getTagName()
protected void localRelease()Release any acquired resources.
AbstractBaseTag.localRelease()
publicString
nextTagIdRef(String
tagId)
protected void processIdMap()
protectedString
replaceTagNameRefs(String
content)
throwsJspException
JspException
publicString
resolveTagIdRef(String
tagIdRef)
public void setScopeId(String
scopeId)
Set the scopeId associated with the code methods
protected void writeScriptBlock()
throwsJspException
JspException