|
||||||||||
| 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)
|
String |
getClientId(javax.faces.context.FacesContext context)
Hack since RI does not call getRowIndex() |
protected javax.faces.model.DataModel |
getDataModel()
|
String |
getDerivedRowKeyPrefix()
This attribute is used to append an unique prefix when rowKey is not used, to prevent a key match a existing component id (note two different components can't have the same unique id). |
protected String |
getDerivedSubClientId()
Return the fragment to be used on the container client id to identify a row. |
int |
getRowCount()
|
Object |
getRowData()
|
int |
getRowIndex()
|
Object |
getRowKey()
Used to assign a value expression that identify in a unique way a row. |
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(Iterator childIterator,
Object state,
boolean restoreChildFacets)
|
protected void |
restoreDescendantComponentStates(Object state)
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
|
protected Object |
saveDescendantComponentStates()
|
protected Object |
saveDescendantComponentStates(Iterator childIterator,
boolean saveChildFacets)
|
Object |
saveState(javax.faces.context.FacesContext context)
|
protected void |
setDataModel(javax.faces.model.DataModel datamodel)
|
void |
setDerivedRowKeyPrefix(String derivedRowKeyPrefix)
|
void |
setForceId(boolean forceId)
|
void |
setForceIdIndex(boolean forceIdIndex)
|
void |
setPreserveRowStates(boolean preserveRowStates)
|
void |
setRowIndex(int rowIndex)
|
void |
setRowKey(Object rowKey)
|
void |
setValue(Object value)
|
void |
setValueBinding(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.UIDatapublic int getRowCount()
getRowCount in class javax.faces.component.UIDatapublic Object getRowData()
getRowData in class javax.faces.component.UIDatapublic int getRowIndex()
getRowIndex in class javax.faces.component.UIDatapublic String getClientId(javax.faces.context.FacesContext context)
getClientId in class javax.faces.component.UIDatapublic void processUpdates(javax.faces.context.FacesContext context)
processUpdates in class javax.faces.component.UIDataUIData.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.UIDataUIData.processValidators(javax.faces.context.FacesContext)
public void encodeBegin(javax.faces.context.FacesContext context)
throws IOException
encodeBegin in class javax.faces.component.html.HtmlDataTableIOExceptionUIData.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 IOException
encodeEnd in class javax.faces.component.UIDataIOExceptionUIComponentBase.encodeEnd(javax.faces.context.FacesContext)public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.component.UIDataprotected void restoreDescendantComponentStates(Object state)
protected void restoreDescendantComponentStates(Iterator childIterator,
Object state,
boolean restoreChildFacets)
protected Object saveDescendantComponentStates()
protected Object saveDescendantComponentStates(Iterator childIterator,
boolean saveChildFacets)
public void setValueBinding(String name,
javax.faces.el.ValueBinding binding)
setValueBinding in class javax.faces.component.UIDatapublic void setValue(Object value)
setValue in class javax.faces.component.UIDataUIData.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 Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.html.HtmlDataTable
public void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.html.HtmlDataTablepublic boolean isForceId()
isForceId in interface ExtendedComponentBasepublic void setForceId(boolean forceId)
setForceId in interface ExtendedComponentBasepublic boolean isForceIdIndex()
public void setForceIdIndex(boolean forceIdIndex)
public void clearRowStates()
public void deleteRowStateForRow(int deletedIndex)
deletedIndex - index of row to deletepublic Object getRowKey()
public void setRowKey(Object rowKey)
public String getDerivedRowKeyPrefix()
public void setDerivedRowKeyPrefix(String derivedRowKeyPrefix)
protected String getDerivedSubClientId()
The returned value must comply with the following rules:
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||