public class HtmlCommandScript extends UICommand
Represents an HTML script
element for a function that acts
like an ajax form submit. This component must be placed inside
a form, and requires JavaScript to be enabled in the client.
By default, the rendererType
property must be set to "javax.faces.Script
".
This value can be changed by calling the setRendererType()
method.
Modifier and Type | Class and Description |
---|---|
protected static class |
HtmlCommandScript.PropertyKeys |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_TYPE
The standard component type for this component.
|
COMPONENT_FAMILY
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
HtmlCommandScript() |
Modifier and Type | Method and Description |
---|---|
String |
getExecute()
Return the value of the
execute property. |
String |
getName()
Return the value of the
name property. |
String |
getOnerror()
Return the value of the
onerror property. |
String |
getOnevent()
Return the value of the
onevent property. |
String |
getRender()
Return the value of the
render property. |
Boolean |
getResetValues()
Return the value of the
resetValues property. |
boolean |
isAutorun()
Return the value of the
autorun property. |
void |
setAutorun(boolean autorun)
Set the value of the
autorun property. |
void |
setExecute(String execute)
Set the value of the
execute property. |
void |
setName(String name)
Set the value of the
name property. |
void |
setOnerror(String onerror)
Set the value of the
onerror property. |
void |
setOnevent(String onevent)
Set the value of the
onevent property. |
void |
setRender(String render)
Set the value of the
render property. |
void |
setResetValues(Boolean resetValues)
Set the value of the
resetValues property. |
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getFamily, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_TYPE
The standard component type for this component.
public boolean isAutorun()
Return the value of the autorun
property.
Contents: Whether to execute declared JavaScript function during load
event of the window
.
Defaults to false
.
public void setAutorun(boolean autorun)
Set the value of the autorun
property.
autorun
- the new property valuepublic String getExecute()
Return the value of the execute
property.
Contents: This is a space separated list of client identifiers of components
that will participate in the "execute" portion of the Request Processing Lifecycle.
If a literal is specified the identifiers must be space delimited.
Any of the keywords "@this", "@form", "@all", "@none" may be specified in the identifier list.
If not specified, the default value of "@this" is assumed.
For example, @this clientIdOne clientIdTwo
.
public void setExecute(String execute)
Set the value of the execute
property.
execute
- the new property valuepublic String getName()
Return the value of the name
property.
Contents: Name of JavaScript function to be declared, e.g. name="functionName"
.
This can be a namespaced function name, e.g. name="ez.functionName"
.
public void setName(String name)
Set the value of the name
property.
name
- the new property valuepublic String getOnerror()
Return the value of the onerror
property.
Contents: The name of the JavaScript function that will handle errors.
public void setOnerror(String onerror)
Set the value of the onerror
property.
onerror
- the new property valuepublic String getOnevent()
Return the value of the onevent
property.
Contents: The name of the JavaScript function that will handle UI events.
public void setOnevent(String onevent)
Set the value of the onevent
property.
onevent
- the new property valuepublic String getRender()
Return the value of the render
property.
Contents: This is a space separated list of client identifiers of components
that will participate in the "render" portion of the Request Processing Lifecycle.
If a literal is specified the identifiers must be space delimited.
Any of the keywords "@this", "@form", "@all", "@none" may be specified in the identifier list.
If not specified, the default value of "@none" is assumed.
For example, @this clientIdOne clientIdTwo
.
public void setRender(String render)
Set the value of the render
property.
render
- the new property valuepublic Boolean getResetValues()
Return the value of the resetValues
property.
Contents: Reset specific input values.
Interpret the value of the render
attribute as a space separated list of client identifiers
suitable for passing directly to UIViewRoot.resetValues()
.
The implementation must cause an ActionListener
to be attached to the ActionSource
component in which this tag is nested that calls UIViewRoot.resetValues()
passing the value
of the render
attribute as the argument.
public void setResetValues(Boolean resetValues)
Set the value of the resetValues
property.
resetValues
- the new property valueCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.