ilog.views.faces.component
Class IlvFacesNoSubmitButton

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by javax.faces.component.html.HtmlCommandButton
                  extended by ilog.views.faces.component.IlvFacesNoSubmitButton
All Implemented Interfaces:
ActionSource, StateHolder

public class IlvFacesNoSubmitButton
extends HtmlCommandButton

This subclass of 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.

Since:
JViews 7.5

Field Summary
 
Fields inherited from class javax.faces.component.html.HtmlCommandButton
COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UICommand
COMPONENT_FAMILY
 
Constructor Summary
IlvFacesNoSubmitButton()
          Creates a new IlvFacesNoSubmitButton instance.
 
Method Summary
 String getType()
          Returns the button type, alway "button" in that case.
 void setType(String type)
          Changing the type of IlvFacesNoSubmitButton does nothing.
 
Methods inherited from class javax.faces.component.html.HtmlCommandButton
getAccesskey, getAlt, getDir, getImage, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, restoreState, saveState, setAccesskey, setAlt, setDir, setDisabled, setImage, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setTabindex, setTitle
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionListener, getActionListeners, getFamily, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvFacesNoSubmitButton

public IlvFacesNoSubmitButton()
Creates a new IlvFacesNoSubmitButton instance.

Method Detail

getType

public String getType()
Returns the button type, alway "button" in that case.

Overrides:
getType in class HtmlCommandButton
Returns:
button type

setType

public void setType(String type)
Changing the type of IlvFacesNoSubmitButton does nothing.

Overrides:
setType in class HtmlCommandButton


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.