org.jboss.seam.ui.component.html
Class HtmlToken

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.jboss.seam.ui.component.UIToken
                  extended by org.jboss.seam.ui.component.html.HtmlToken
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class HtmlToken
extends UIToken


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
HtmlToken()
           
 
Method Summary
 java.lang.String getFamily()
           
 boolean isAllowMultiplePosts()
          Indicates whether to allow the same form to be submitted multiple times with the same signature (as long as the view does not change).
 boolean isEnableCookieNotice()
          Indicates whether a JavaScript check should be inserted into the page to verify that cookies are enabled in the browser.
 boolean isRequireSession()
          Indicates whether the session id should be included in the form signature, hence binding the token to the session.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setAllowMultiplePosts(boolean _allowMultiplePosts)
           
 void setEnableCookieNotice(boolean _enableCookieNotice)
           
 void setRequireSession(boolean _requireSession)
           
 
Methods inherited from class org.jboss.seam.ui.component.UIToken
getClientUid, getClientUidSelector, getParentForm
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
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
 

Field Detail

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlToken

public HtmlToken()
Method Detail

isAllowMultiplePosts

public boolean isAllowMultiplePosts()
Description copied from class: UIToken
Indicates whether to allow the same form to be submitted multiple times with the same signature (as long as the view does not change). This is a common need if the form is perform Ajax calls but not rerendering itself or, at the very least, the UIToken component. The preferred approach is to have the UIToken component rerendered on any Ajax call where the UIToken component would be processed. The default value is false.

Specified by:
isAllowMultiplePosts in class UIToken

setAllowMultiplePosts

public void setAllowMultiplePosts(boolean _allowMultiplePosts)
Specified by:
setAllowMultiplePosts in class UIToken

isEnableCookieNotice

public boolean isEnableCookieNotice()
Description copied from class: UIToken
Indicates whether a JavaScript check should be inserted into the page to verify that cookies are enabled in the browser. If cookies are not enabled, present a notice to the user that form posts will not work. The default value is false.

Specified by:
isEnableCookieNotice in class UIToken

setEnableCookieNotice

public void setEnableCookieNotice(boolean _enableCookieNotice)
Specified by:
setEnableCookieNotice in class UIToken

isRequireSession

public boolean isRequireSession()
Description copied from class: UIToken
Indicates whether the session id should be included in the form signature, hence binding the token to the session. This value can be set to false if the "build before restore" mode of Facelets is activated (the default in JSF 2.0). The default value is false.

Specified by:
isRequireSession in class UIToken

setRequireSession

public void setRequireSession(boolean _requireSession)
Specified by:
setRequireSession in class UIToken

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIOutput

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIOutput

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIOutput


Copyright © 2011 Seam Framework. All Rights Reserved.