Re: [Trinidad] New API addition for Trinidad's UIXCollection

2014-05-16 Thread Blake Sullivan
It should be the same. — Blake Sullivan On May 15, 2014, at 7:58 AM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: How is this different from just setting the current row index to -1? On Tue, May 6, 2014 at 1:49 PM, Jing Wu jing.x...@oracle.com wrote: Thanks Blake for your

Re: [Trinidad] New API addition for Trinidad's UIXCollection

2014-05-16 Thread Andrew Robinson
How is this different from just setting the current row index to -1? On Tue, May 6, 2014 at 1:49 PM, Jing Wu jing.x...@oracle.com wrote: Thanks Blake for your comment! It's the component that is hanging onto a rowkey, the model naturally reacts to key change and has valid state. But

Re: [Trinidad] New API addition for Trinidad's UIXCollection

2014-05-06 Thread Jing Wu
Thanks Blake for your comment! It's the component that is hanging onto a rowkey, the model naturally reacts to key change and has valid state. But UIXCollection component caches the key in it's internal state object which needs to be cleared out and recalculated. So the proposal is to simply

[Trinidad] New API addition for Trinidad's UIXCollection

2014-05-05 Thread Jing Wu
Hi, This is for JIRA https://issues.apache.org/jira/browse/TRINIDAD-2471. UIXCollection caches the current row key in its internal state. There are cases that the row key becomes stale / invalid in the middle of processing a row. A new API invalidateCurrentRowKey() is added to UIXCollection

Re: [Trinidad] New API addition for Trinidad's UIXCollection

2014-05-05 Thread Blake Sullivan
Jing, What is an example of a case where code external to the model implementation knows that: 1) The model is hanging onto a rowKey 2) The key is invalid The model implementation is typical supposed to encapsulate this information. -- Blake Sullivan On May 5, 2014, at 3:26 PM, Jing Wu wrote: