You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kent Tong <ke...@cpttm.org.mo> on 2005/02/13 12:28:10 UTC
How to update the rows cached by SimpleTableModel
Hi,
In a test program I'm providing a list of objects via the
"source" parameter of a Table component. In addition, I
am using FullSessionStateManager. Therefore, the rows are
saved in the session. My question is, in a listener, if
I change the list, how can I update the rows in the
session?
I've tried:
* Calling tableDataChanged on the table model. No observable
effect.
* Calling reset on the table. It also forgets the paging state
and sorting state.
* Calling fireObservedStateChange on the table. No observable
effect.
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: How to update the rows cached by SimpleTableModel
Posted by Kent Tong <ke...@cpttm.org.mo>.
Kent Tong <kent <at> cpttm.org.mo> writes:
>
> In a test program I'm providing a list of objects via the
> "source" parameter of a Table component. In addition, I
> am using FullSessionStateManager. Therefore, the rows are
> saved in the session. My question is, in a listener, if
> I change the list, how can I update the rows in the
> session?
Never mind. Figured it out. I need to create a new SimpleListDataModel
and evaluate the "source" parameter again. Then call tableDataChanged
and fireObservedStateChange.
This is a bit troublesome but works. Maybe it makes sense to
add a "refreshData" method to TableView?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org