|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.sun.rave.web.ui.component.ScriptBase
public abstract class ScriptBase
Use the ui:script
tag to create a <script>
element in the rendered
HTML page.
The ui:script
tag must be used within
the ui:head
tag, or within the ui:body
tag. The ui:script
tag can be used to
refer to a
Javascript file, by using the url attribute. The tag can also be used
embed Javascript code within the rendered HTML page.
The
client-side script allows
you to perform some interactive functions such as input checking before
the page is submitted.
<script>
element with any attributes
specified through the ui:script
tag attributes.
<ui:script url="/pathtomyjs/myjavascript.js" />
<ui:script>
<f:verbatim>
function foo(text) {
alert(text);
}
</f:verbatim>
</ui:script>
Auto-generated component class. Do NOT modify; all changes will be lost!
Field Summary |
---|
Fields inherited from class javax.faces.component.UIComponent |
---|
bindings |
Constructor Summary | |
---|---|
ScriptBase()
Construct a new ScriptBase . |
Method Summary | |
---|---|
java.lang.String |
getCharset()
Defines the character (charset) encoding of the target URL. |
java.lang.String |
getFamily()
Return the identifier of the component family to which this component belongs. |
java.lang.String |
getType()
Indicates the MIME type of the script. |
java.lang.String |
getUrl()
Defines the absolute or relative URL to a file that contains the script. |
void |
restoreState(javax.faces.context.FacesContext _context,
java.lang.Object _state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext _context)
Save the state of this component. |
void |
setCharset(java.lang.String charset)
Defines the character (charset) encoding of the target URL. |
void |
setType(java.lang.String type)
Indicates the MIME type of the script. |
void |
setUrl(java.lang.String url)
Defines the absolute or relative URL to a file that contains the script. |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptBase()
Construct a new ScriptBase
.
Method Detail |
---|
public java.lang.String getFamily()
Return the identifier of the component family to which this
component belongs. This identifier, in conjunction with the value
of the rendererType
property, may be used to select
the appropriate Renderer
for this component instance.
getFamily
in class javax.faces.component.UIComponent
public java.lang.String getCharset()
Defines the character (charset) encoding of the target URL. See iana.org for a complete list of character encodings.
public void setCharset(java.lang.String charset)
Defines the character (charset) encoding of the target URL. See iana.org for a complete list of character encodings.
getCharset()
public java.lang.String getType()
Indicates the MIME type of the script. Default is "text/javascript"
public void setType(java.lang.String type)
Indicates the MIME type of the script. Default is "text/javascript"
getType()
public java.lang.String getUrl()
Defines the absolute or relative URL to a file that contains the script. Use this attribute to refer to a file instead of inserting the script into your HTML document
public void setUrl(java.lang.String url)
Defines the absolute or relative URL to a file that contains the script. Use this attribute to refer to a file instead of inserting the script into your HTML document
getUrl()
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
Restore the state of this component.
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public java.lang.Object saveState(javax.faces.context.FacesContext _context)
Save the state of this component.
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |