<br><br><div class="gmail_quote">2010/8/25 Ed Burns <span dir="ltr">&lt;<a href="mailto:edward.burns@oracle.com">edward.burns@oracle.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">&gt;&gt;&gt;&gt;&gt; On Wed, 25 Aug 2010 13:52:46 -0700, Ed Burns &lt;<a href="mailto:edward.burns@oracle.com">edward.burns@oracle.com</a>&gt; said:<br>
<br>
&gt;&gt;&gt;&gt;&gt; On Tue, 17 Aug 2010 16:02:01 -0500, Leonardo Uribe &lt;<a href="mailto:lu4242@gmail.com">lu4242@gmail.com</a>&gt; said:<br>
LU&gt; Hi<br>
LU&gt; 2010/8/13 Ed Burns &lt;<a href="mailto:edward.burns@oracle.com">edward.burns@oracle.com</a>&gt;<br>
<br>
EB&gt; Here is my response.<br>
<br>
LU&gt; Note by default this feature is not active, so I think to test it fully it<br>
LU&gt; is necessary to activate it setting<br>
LU&gt; preserveRowComponentState to true.<br>
<br>
</div>EB&gt; I have executed your very excellent testcase app.  When I traverse the<br>
EB&gt; app with the markInitialState variant of your fix in place, the fields<br>
EB&gt; are red that should be red.  When I remove the fix and re-traverse the<br>
EB&gt; app, all of the fields are red.<br>
<br>
EB&gt; I&#39;m experimenting with having preserveRowComponentState to true by<br>
EB&gt; default.  What do you think of that?<br>
<br>
Well, that didn&#39;t work so well.  As you&#39;d expect, this failed pretty<br>
quickly because we had an existing test that exercised the existing<br>
behavior.<br>
<br>
Is everyone OK with having this be configured as a UIData property, or<br>
would it be better done using a context-param?<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>The problem with allow it with a context-param is there is no way to &quot;reset&quot; the deltas<br>or remove rows to synchronize the model with the component state.<br>
<br>Suppose a simple use case, where there is a datatable and an option that removes one<br>row. Since we don&#39;t have a way to notify the component that the row has been removed<br>the state of the deleted row will be applied on the next one.<br>
<br>It is worth to mention that tomahawk HtmlDataTableHack has a method to deal with this<br>specific use case called:<br><br>   public void deleteRowStateForRow(int deletedIndex)<br><br>Maybe it is not the best solution but works. In theory, a publisher-suscriber pattern could<br>
do the job better in this case.<br><br></div></div>Leonardo<br>