[
https://issues.apache.org/jira/browse/TRINIDAD-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabrielle Crawford updated TRINIDAD-2253:
-----------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.2-core
Assignee: Gabrielle Crawford
Status: Resolved (was: Patch Available)
> Ability to synchronize UI view size with model cache size`
> ----------------------------------------------------------
>
> Key: TRINIDAD-2253
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2253
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Components
> Affects Versions: 2.0.1-core
> Environment: this should be environment independent.
> Reporter: Jing Wu
> Assignee: Gabrielle Crawford
> Priority: Minor
> Fix For: 2.0.2-core
>
> Attachments: sync-trunk.patch
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> For table/tree/treeTable, it's very possible that some rows on the client
> side may not be available in the model at server side. One example is when
> the model supports ranging and range size is relatively small. In that case,
> if one tries to access the row on client that's not available in the model,
> issues will arise.
> This enhancement is to provide the ability to synchronize the number of rows
> in the model with the number of rows at client, to make sure the model
> contains at least the same amount of rows as that on the client. The model
> can choose how to respond to size synchronization depending on it's own logic.
> public method ensureRowsAvailable() is added to UIXCollection to initiate the
> synchronization.
> /**
> * Ensure that the model has at least rowCount number of rows.
> *
> * @param rowCount the number of rows the model should hold.
> */
> public void ensureRowsAvailable(int rowCount)
> {
> getCollectionModel().ensureRowsAvailable(rowCount);
> }
> /**
> * Ensure that the model has at least rowCount number of rows. This is
> especially
> * useful for collection model that support paging. The default
> implementation
> * is a no-op.
> *
> * @param rowCount the number of rows the model should hold.
> */
> public void ensureRowsAvailable(int rowCount)
> {
> return;
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira