FYI, if you are using a ListAdapter, you need to be sure to only modify the list via the adapter, not the source. Otherwise, the table view won't get any update events and won't properly reflect your changes...
G

On Oct 17, 2009, at 9:25 AM, Vicente de Rivera III wrote:

I also tried using ListAdapter but I had the same situation. So I just have both

    Client c = new Client();
    jpaList.add(c);
    tableDataList.add(c);


On Sat, Oct 17, 2009 at 6:09 AM, Carl Marcum <[email protected] > wrote:
Hi all,

I'm trying to set up an editable TableView based on table data from a
ListAdapter backed by a java.util.ArrayList from a JPA query.

I've done away with the JPA query portion and tested different ways to
build the TableView to find the problem.

The problem is the table doesn't seem to edit correctly or fire
RowEdited events when I use a ListAdapter to add table data.

For this example I'm creating "Customer" objects containing an int "id"
and a String "name" property.
If I:
1) build the pivot ArrayList in WTKX = ok.
2) build the pivot ArrayList in Java and add it via
tableView.addTableData =  ok.
3) build a java.util.ArrayList (like I would get from a JPA query)
and create a Pivot ListAdapter then add that with tableView.addTableData
=  problem

I can create an java.util.ArarryList, and add them one at a time to the
Pivot ArrayList and then use it for the table data = ok

Am I misunderstanding the use of ListAdapter to wrap a Java List or use
an Adapter for a TableView?

Thanks,

Carl Marcum


Reply via email to