org.apache.myfaces.custom.jsvalueset
Class AbstractHtmlJsValueSet

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.apache.myfaces.custom.jsvalueset.AbstractHtmlJsValueSet
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder
Direct Known Subclasses:
HtmlJsValueSet

public abstract class AbstractHtmlJsValueSet
extends javax.faces.component.UIOutput

Setting a value from the model in java-script so that it can be used (e.g. by the value change listener) afterwards. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (Wed, 03 Sep 2008) $
Author:
Martin Marinschek (latest modification by $Author: lu4242 $)

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
AbstractHtmlJsValueSet()
           
 
Method Summary
abstract  java.lang.String getName()
          javascript variable to be set.
 java.lang.Object getValue()
          value to be set in the variable.
 boolean isRendered()
           
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getFamily, getLocalValue, restoreState, saveState, 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, 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_TYPE

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

COMPONENT_FAMILY

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

AbstractHtmlJsValueSet

public AbstractHtmlJsValueSet()
Method Detail

getName

public abstract java.lang.String getName()
javascript variable to be set.


isRendered

public boolean isRendered()
Overrides:
isRendered in class javax.faces.component.UIComponentBase

getValue

public java.lang.Object getValue()
value to be set in the variable.

Specified by:
getValue in interface javax.faces.component.ValueHolder
Overrides:
getValue in class javax.faces.component.UIOutput


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.