|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.struts.faces.component.ErrorsComponent
Custom component that replaces the Struts
<html:errors>
tag.
Field Summary | |
private java.lang.String |
bundle
MessageResources attribute key to use for message lookup. |
private java.lang.String |
property
Property name of the property to report errors for. |
Fields inherited from class javax.faces.component.UIOutput |
COMPONENT_FAMILY, COMPONENT_TYPE |
Fields inherited from class javax.faces.component.UIComponentBase |
|
Constructor Summary | |
ErrorsComponent()
Create a new ErrorsComponent with default properties. |
Method Summary | |
java.lang.String |
getBundle()
Return the MessageResources key. |
java.lang.String |
getFamily()
Return the component family to which this component belongs. |
java.lang.String |
getProperty()
Return the property name for which to report errors. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Save the state of this component. |
void |
setBundle(java.lang.String bundle)
Set the MessageResources key. |
void |
setProperty(java.lang.String property)
Set the property name for which to report errors. |
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, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String bundle
MessageResources attribute key to use for message lookup.
private java.lang.String property
Property name of the property to report errors for.
Constructor Detail |
public ErrorsComponent()
Create a new ErrorsComponent
with default properties.
Method Detail |
public java.lang.String getBundle()
Return the MessageResources key.
public void setBundle(java.lang.String bundle)
Set the MessageResources key.
bundle
- The new keypublic java.lang.String getFamily()
Return the component family to which this component belongs.
public java.lang.String getProperty()
Return the property name for which to report errors.
public void setProperty(java.lang.String property)
Set the property name for which to report errors.
property
- The new property namepublic void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
Restore the state of this component.
context
- FacesContext
for the current requeststate
- State object from which to restore our statepublic java.lang.Object saveState(javax.faces.context.FacesContext context)
Save the state of this component.
context
- FacesContext
for the current request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |