Be sure to use a LoadableDetachableModel
Also, maybe you set ListView#*setReuseItems* to true (because the ListView
is in a form)? You can set it to false if you have no validation and then
you will get fresh data (see ListView javadoc)

Hope this helps,

On Thu, Dec 6, 2012 at 11:09 PM, Corbin, James <jcor...@iqnavigator.com>wrote:

> I have a ListView that renders items that are populated from user cookie
> data.  The ListView contains a "clear" action that is supposed to delete
> the cookies then refresh the ListView so it reflects that the cookie data
> was removed.  I have code that executes the deletion of the cookies
> (works), then I turn around and detach the ListView's model which triggers
> a rereading of the cookie data.  For some reason (probably works as
> designed), when the model is detach and reloads the cookies, they are still
> present.
> If I then force a page refresh, cookie data is in fact removed and the
> ListView is empty.
> Is there a way to attain this?  Am I missing something?  I really don't
> want to have to reload the page to see that the cookie data has been
> removed.
> J.D.

Reply via email to