@JSFComponent(name="f:viewParam", bodyContent="JSP", tagClass="org.apache.myfaces.taglib.core.ViewParamTag") @JSFJspProperty(name="maxlength", returnType="int", longDesc="The max number or characters allowed for this param") public class UIViewParameter extends UIInput
Modifier and Type | Class and Description |
---|---|
static class |
UIViewParameter.Reference |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
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 |
---|
UIViewParameter() |
Modifier and Type | Method and Description |
---|---|
void |
decode(FacesContext context)
Check the submitted form parameters for data associated with this component.
|
void |
encodeAll(FacesContext context) |
protected Object |
getConvertedValue(FacesContext context,
Object submittedValue)
Convert the provided object to the desired value.
|
protected FacesContext |
getFacesContext() |
String |
getFamily() |
String |
getName() |
String |
getStringValue(FacesContext context) |
String |
getStringValueFromModel(FacesContext context) |
boolean |
isImmediate()
A boolean value that identifies the phase during which action events should fire.
|
boolean |
isRendered()
A boolean value that indicates whether this component should be rendered.
|
void |
processValidators(FacesContext context) |
void |
setName(String name) |
void |
updateModel(FacesContext context) |
addValidator, addValueChangeListener, broadcast, clearInitialState, compareValues, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, validate, validateValue
getConverter, getLocalValue, setConverter
addClientBehavior, addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getLocalValue, setConverter
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public void decode(FacesContext context)
UIComponentBase
public void encodeAll(FacesContext context) throws IOException
encodeAll
in class UIComponentBase
IOException
public String getName()
public String getStringValue(FacesContext context)
public String getStringValueFromModel(FacesContext context) throws ConverterException
ConverterException
@JSFProperty(tagExcluded=true) public boolean isImmediate()
UIInput
During normal event processing, action methods and action listener methods are fired during the "invoke application" phase of request processing. If this attribute is set to "true", these methods are fired instead at the end of the "apply request values" phase.
isImmediate
in interface EditableValueHolder
isImmediate
in class UIInput
@JSFProperty(tagExcluded=true) public boolean isRendered()
UIComponentBase
isRendered
in class UIComponentBase
public void processValidators(FacesContext context)
processValidators
in class UIInput
public void setName(String name)
public void updateModel(FacesContext context)
updateModel
in class UIInput
protected Object getConvertedValue(FacesContext context, Object submittedValue)
UIInput
If there is a renderer for this component, then call the renderer's getConvertedValue method. While this can of course be implemented in any way the renderer desires, it typically performs exactly the same processing that this method would have done anyway (ie that described below for the no-renderer case).
Otherwise:
getConvertedValue
in class UIInput
protected FacesContext getFacesContext()
getFacesContext
in class UIComponentBase
Copyright © 2018 The Apache Software Foundation. All rights reserved.