public class IlvFacesNoSubmitButton
extends javax.faces.component.html.HtmlCommandButton
HtmlCommandButton
is overriding
the getType()
method to force the client-side HTML button to
be of type "button", avoiding the button to automatically submit
the HTML form when pressed.
Instead the user can do client-side action reacting to onclick event,
and submit the form later on by another means like a JavaScript
method allowing that.Constructor and Description |
---|
IlvFacesNoSubmitButton()
Creates a new
IlvFacesNoSubmitButton instance. |
Modifier and Type | Method and Description |
---|---|
String |
getType()
Returns the button type, alway "button" in that case.
|
void |
setType(String type)
Changing the type of
IlvFacesNoSubmitButton does
nothing. |
getAccesskey, getAlt, getDefaultEventName, getDir, getEventNames, getImage, getLabel, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setImage, setLabel, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setStyle, setStyleClass, setTabindex, setTitle
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, 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 IlvFacesNoSubmitButton()
IlvFacesNoSubmitButton
instance.public String getType()
getType
in class javax.faces.component.html.HtmlCommandButton
public void setType(String type)
IlvFacesNoSubmitButton
does
nothing.setType
in class javax.faces.component.html.HtmlCommandButton
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.