|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
org.apache.myfaces.trinidad.component.UIXComponent
org.apache.myfaces.trinidad.component.UIXComponentBase
org.apache.myfaces.trinidad.component.UIXValue
org.apache.myfaces.trinidad.component.UIXEditableValue
org.apache.myfaces.trinidaddemo.composite.DateField
public class DateField
An experiment in building a composite component. Some basic principles:
processDecodes) and Render Response
(encodeBegin()), and marking the components
transient so they don't get saved.
ValueBindings on the children, I let them
use local values, and then manully transfer over their local values
into an overall "local value" during validate(). Unfortunately,
using ValueBindings to automate the transfer wouldn't quite work,
since the transfer wouldn't happen 'til Update Model, which is
too late to preserve the semantics of an editable value component in JSF.
| Field Summary |
|---|
| Fields inherited from class org.apache.myfaces.trinidad.component.UIXEditableValue |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, IMMEDIATE_KEY, LOCAL_VALUE_SET_KEY, REQUIRED_KEY, REQUIRED_MESSAGE_DETAIL_KEY, REQUIRED_MESSAGE_ID, SUBMITTED_VALUE_KEY, TRINIDAD_BEAN_VALIDATION_AVAILABLE, TRINIDAD_EMPTY_VALUES_AS_NULL_PARAM_NAME, TYPE, VALID_KEY, VALIDATE_EMPTY_FIELDS_PARAM_NAME, VALIDATOR_KEY, VALIDATORS_KEY, VALUE_CHANGE_LISTENER_KEY |
| Fields inherited from class org.apache.myfaces.trinidad.component.UIXValue |
|---|
CONVERTER_KEY, VALUE_KEY |
| Fields inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase |
|---|
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
| Fields inherited from interface javax.faces.component.NamingContainer |
|---|
SEPARATOR_CHAR |
| Constructor Summary | |
|---|---|
DateField()
|
|
| Method Summary | |
|---|---|
void |
encodeBegin(javax.faces.context.FacesContext context)
|
void |
encodeChildren(javax.faces.context.FacesContext context)
|
boolean |
getRendersChildren()
|
void |
processDecodes(javax.faces.context.FacesContext context)
|
void |
validate(javax.faces.context.FacesContext context)
|
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXValue |
|---|
getConverter, getLocalValue, getValue, setConverter, setValue |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.faces.component.ValueHolder |
|---|
getConverter, getLocalValue, getValue, setConverter, setValue |
| Constructor Detail |
|---|
public DateField()
| Method Detail |
|---|
public void processDecodes(javax.faces.context.FacesContext context)
processDecodes in class UIXEditableValuepublic void validate(javax.faces.context.FacesContext context)
validate in class UIXEditableValue
public void encodeBegin(javax.faces.context.FacesContext context)
throws IOException
encodeBegin in class UIXComponentBaseIOException
public void encodeChildren(javax.faces.context.FacesContext context)
throws IOException
encodeChildren in class UIXComponentBaseIOExceptionpublic boolean getRendersChildren()
getRendersChildren in class UIXComponentBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||