table.setDefaultModelObject(new UsertProvider(ListUser())

The dataTable doesn't use its model object and you cannot change the 
dataProvider either.

You have to make your UserProvider dynamic:

  table = new DataTable(..., new IDataProvider<User>() {
    @Override
    protected List<User> getList() {
      // get users *matching the current filter input*
      // .. and sort it
    }
    ...
  });

Sven


On 11/20/2012 05:40 PM, anton wrote:
There is a DropChoice.
Depending on the selected item should appear the list of users.

Automatic table should be generated with users,after this line
target.addComponent(table); ¿?

ContactProvider contactProvider = new ContactProvider(ListUser());
   final AjaxFallbackDefaultDataTable<User> table =new
AjaxFallbackDefaultDataTable<Usert>("table", columns, contactProvider, 10);
It does this either --> table.setDefaultModelObject(new
UsertProvider(ListUser()); or replaceWith.

Any ideas?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-datatable-ajax-tp4653734p4654041.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to