public abstract class TableFormRows extends TableRows
TablePages
,
but is designed for operation in a form. The displayed rows are stored in
hidden form fields, which are then read during a rewind. This ensures that
the form will rewind in exactly the same was as it was rendered even if the
TableModel has changed and no StaleLink exceptions will occur.
The component must be wrapped by TableView
.
The component iterates over the rows of the current page in the table.
The rows are wrapped in 'tr' tags by default.
You can define columns manually within, or
you can use TableValues
to generate the columns automatically.
Please see the Component Reference for details on how to use this component. [Component Reference]
TABLE_ROW_SOURCE_ATTRIBUTE
Constructor and Description |
---|
TableFormRows() |
Modifier and Type | Method and Description |
---|---|
IPrimaryKeyConvertor |
getCachedConvertor()
Returns the PK convertor cached within the realm of the current request cycle.
|
java.util.Iterator |
getConvertedTableRowsIterator()
Get the list of all table rows to be displayed on this page, converted
using the PK.convertor.
|
abstract java.util.Map |
getConvertedValues() |
abstract IPrimaryKeyConvertor |
getConvertor() |
abstract IPrimaryKeyConvertor |
getConvertorCache() |
void |
setConvertedTableRow(java.lang.Object objConvertedTableRow)
Sets the current table row PK and invokes
TableRows.setTableRow(Object) as a result. |
abstract void |
setConvertorCache(IPrimaryKeyConvertor convertor) |
getFullSource, getFullSourceParameter, getTableIndex, getTableRow, getTableRowsIterator, renderComponent, setTableIndex, setTableRow
getTableModelSource
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
public TableFormRows()
public abstract IPrimaryKeyConvertor getConvertor()
public abstract IPrimaryKeyConvertor getConvertorCache()
public abstract void setConvertorCache(IPrimaryKeyConvertor convertor)
public abstract java.util.Map getConvertedValues()
public IPrimaryKeyConvertor getCachedConvertor()
public java.util.Iterator getConvertedTableRowsIterator()
public void setConvertedTableRow(java.lang.Object objConvertedTableRow)
TableRows.setTableRow(Object)
as a result.
This method is for internal use only.objConvertedTableRow
- The current converted table row (PK)