|
||||||||||
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.UIData
javax.faces.component.html.HtmlDataTable
org.apache.myfaces.component.html.ext.HtmlDataTableHack
public abstract class HtmlDataTableHack
Reimplement all UIData functionality to be able to have (protected) access the internal DataModel.
Field Summary |
---|
Fields inherited from class javax.faces.component.html.HtmlDataTable |
---|
COMPONENT_TYPE |
Fields inherited from class javax.faces.component.UIData |
---|
COMPONENT_FAMILY |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
HtmlDataTableHack()
|
Method Summary | |
---|---|
protected void |
checkUpdateModelError(javax.faces.context.FacesContext context)
This method is used when a custom processUpdates and processValidators is defined, to check if a update model error forces the render response for our data, because _isValidChilds is a private field and is not available on child components that inherits this component class like t:dataList. |
void |
clearRowStates()
Remove all preserved row state for the dataTable |
protected javax.faces.model.DataModel |
createDataModel()
Creates a new DataModel around the current value. |
void |
deleteRowStateForRow(int deletedIndex)
Remove preserved row state for deleted row and adjust row state to reflect deleted row. |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
void |
encodeEnd(javax.faces.context.FacesContext context)
|
java.lang.String |
getClientId(javax.faces.context.FacesContext context)
Hack since RI does not call getRowIndex() |
protected javax.faces.model.DataModel |
getDataModel()
|
int |
getRowCount()
|
java.lang.Object |
getRowData()
|
int |
getRowIndex()
|
protected boolean |
hasErrorMessages(javax.faces.context.FacesContext context)
|
boolean |
isForceId()
If true, this component will force the use of the specified id when rendering. |
boolean |
isForceIdIndex()
If false, this component will not append a '[n]' suffix (where 'n' is the row index) to components that are contained within a "list." This value will be true by default and the value will be ignored if the value of forceId is false (or not specified.) |
boolean |
isPreserveRowStates()
Indicates whether the state for each row should not be discarded before the datatable is rendered again. |
boolean |
isRowAvailable()
|
void |
processUpdates(javax.faces.context.FacesContext context)
|
void |
processValidators(javax.faces.context.FacesContext context)
|
protected void |
restoreDescendantComponentStates(java.util.Iterator childIterator,
java.lang.Object state,
boolean restoreChildFacets)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
protected java.lang.Object |
saveDescendantComponentStates(java.util.Iterator childIterator,
boolean saveChildFacets)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
protected void |
setDataModel(javax.faces.model.DataModel datamodel)
|
void |
setForceId(boolean forceId)
|
void |
setForceIdIndex(boolean forceIdIndex)
|
void |
setPreserveRowStates(boolean preserveRowStates)
|
void |
setRowIndex(int rowIndex)
|
void |
setValue(java.lang.Object value)
|
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
|
Methods inherited from class javax.faces.component.html.HtmlDataTable |
---|
getBgcolor, getBorder, getCellpadding, getCellspacing, getColumnClasses, getDir, getFooterClass, getFrame, getHeaderClass, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRowClasses, getRules, getStyle, getStyleClass, getSummary, getTitle, getWidth, setBgcolor, setBorder, setCellpadding, setCellspacing, setColumnClasses, setDir, setFooterClass, setFrame, setHeaderClass, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRowClasses, setRules, setStyle, setStyleClass, setSummary, setTitle, setWidth |
Methods inherited from class javax.faces.component.UIData |
---|
broadcast, getFamily, getFirst, getFooter, getHeader, getRows, getValue, getVar, processDecodes, queueEvent, setFirst, setFooter, setHeader, setRows, setVar |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, decode, encodeChildren, 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 HtmlDataTableHack()
Method Detail |
---|
public boolean isRowAvailable()
isRowAvailable
in class javax.faces.component.UIData
public int getRowCount()
getRowCount
in class javax.faces.component.UIData
public java.lang.Object getRowData()
getRowData
in class javax.faces.component.UIData
public int getRowIndex()
getRowIndex
in class javax.faces.component.UIData
public java.lang.String getClientId(javax.faces.context.FacesContext context)
getClientId
in class javax.faces.component.UIData
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class javax.faces.component.UIData
UIData.processUpdates(javax.faces.context.FacesContext)
protected void checkUpdateModelError(javax.faces.context.FacesContext context)
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class javax.faces.component.UIData
UIData.processValidators(javax.faces.context.FacesContext)
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class javax.faces.component.html.HtmlDataTable
java.io.IOException
UIData.encodeBegin(javax.faces.context.FacesContext)
public void setPreserveRowStates(boolean preserveRowStates)
public boolean isPreserveRowStates()
protected boolean hasErrorMessages(javax.faces.context.FacesContext context)
public void encodeEnd(javax.faces.context.FacesContext context) throws java.io.IOException
encodeEnd
in class javax.faces.component.UIData
java.io.IOException
UIComponentBase.encodeEnd(javax.faces.context.FacesContext)
public void setRowIndex(int rowIndex)
setRowIndex
in class javax.faces.component.UIData
protected void restoreDescendantComponentStates(java.util.Iterator childIterator, java.lang.Object state, boolean restoreChildFacets)
protected java.lang.Object saveDescendantComponentStates(java.util.Iterator childIterator, boolean saveChildFacets)
public void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding binding)
setValueBinding
in class javax.faces.component.UIData
public void setValue(java.lang.Object value)
setValue
in class javax.faces.component.UIData
UIData.setValue(java.lang.Object)
protected javax.faces.model.DataModel getDataModel()
protected void setDataModel(javax.faces.model.DataModel datamodel)
protected javax.faces.model.DataModel createDataModel()
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.html.HtmlDataTable
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.html.HtmlDataTable
public boolean isForceId()
isForceId
in interface ExtendedComponentBase
public void setForceId(boolean forceId)
setForceId
in interface ExtendedComponentBase
public boolean isForceIdIndex()
public void setForceIdIndex(boolean forceIdIndex)
public void clearRowStates()
public void deleteRowStateForRow(int deletedIndex)
deletedIndex
- index of row to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |