You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jing Wu (Updated) (JIRA)" <de...@myfaces.apache.org> on 2012/03/28 18:55:26 UTC

[jira] [Updated] (TRINIDAD-2253) Ability to synchronize UI view size with model cache size`

     [ https://issues.apache.org/jira/browse/TRINIDAD-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jing Wu updated TRINIDAD-2253:
------------------------------

    Status: Patch Available  (was: Open)
    
> 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
>            Priority: Minor
>         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 syncNumRows() is added to UIXCollection to initiate the synchronization. 
>   /**
>    * Synchronize the number of rows client and server cache. The server
>    * should keep no less what what client caches.
>    *
>    * @param numRows the number of rows client holds
>    */  
>   public void syncNumRows(int numRows)
>   {
>     getCollectionModel().syncNumRows(numRows);
>   }
> The default implementation of syncNumRows on CollectionModel is to do nothing.
>   /**
>    * Synchronize the number of rows client and server cache. For collection models that
>    * do paging, they should keep row cache no less that what client holds.
>    *
>    * @param numRows the number of rows client holds
>    */   
>   public void syncNumRows(int numRows)
>   {
>     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