|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIData edu.nrao.sss.webapp.faces.component.ForEach
public class ForEach
This class implements a ForEach loop tag by partially overriding the default table renderer. By partially, I mean those parts of the rendering that dealt solely with rendering UIColumns are overridden or replaced to deal with all child elements and no table tags are written. This allows us to borrow the default renderer's handling of child id's and the data model and all that.
Field Summary |
---|
Fields inherited from class javax.faces.component.UIData |
---|
COMPONENT_FAMILY, COMPONENT_TYPE |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
ForEach()
empty constructor |
Method Summary | |
---|---|
void |
encodeBegin(FacesContext context)
This method is overridden to prevent the default renderer from writing out table tags. |
void |
encodeChildren(FacesContext context)
Overridden to render our child UI components even though they are not UIColumns. |
void |
encodeEnd(FacesContext context)
Overridden to prevent end table tag output |
void |
processDecodes(FacesContext context)
Overridden to properly decode our child components |
void |
processUpdates(FacesContext context)
Overridden to properly decode our child components |
void |
processValidators(FacesContext context)
Overridden to properly decode our child components |
Methods inherited from class javax.faces.component.UIData |
---|
broadcast, getClientId, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getRowIndex, getRows, getValue, getVar, isRowAvailable, queueEvent, restoreState, saveState, setFirst, setFooter, setHeader, setRowIndex, setRows, setValue, setValueBinding, setVar |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, decode, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForEach()
Method Detail |
---|
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIData
IOException
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class UIData
IOException
public void encodeChildren(FacesContext context) throws IOException
encodeChildren
in class UIComponentBase
IOException
public void processDecodes(FacesContext context)
processDecodes
in class UIData
public void processValidators(FacesContext context)
processValidators
in class UIData
public void processUpdates(FacesContext context)
processUpdates
in class UIData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |