public class ZipCode
extends javax.faces.component.UINamingContainer
Iso3166Country
. Sometimes the
ZipCode is used on a page with tabs and then it can happen that the ZipCode is not initialized (read the country on the
ZipCode is not available yet) and becomes available later. This class was build with this concept in mind.COMPONENT_FAMILY, COMPONENT_TYPE, SEPARATOR_CHAR_PARAM_NAME
Constructor and Description |
---|
ZipCode() |
Modifier and Type | Method and Description |
---|---|
static Iso3166Country |
getCountry(javax.faces.component.UIComponent component)
Gets the country for the supplied component.
|
static Iso3166Country |
getCountryOfAttribute(Object countryAttribute)
Gets the country from the supplied countryAttribute.
|
Integer |
getMaximumLength()
Gets the maximum length of the zip code.
|
boolean |
renderZipCodeField()
Determines whether the zip code input field needs to be rendered.
|
createUniqueId, getFamily, getSeparatorChar, visitTree
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
public Integer getMaximumLength()
public boolean renderZipCodeField()
public static Iso3166Country getCountry(javax.faces.component.UIComponent component)
component
- The component to get the country of.public static Iso3166Country getCountryOfAttribute(Object countryAttribute)
countryAttribute
- The country attribute.
Copyright © 2008–2018. All rights reserved.