You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by vov <vo...@mail.ru> on 2010/08/05 11:23:26 UTC
Re: Problems with AjaxFallbackDefaultDataTable in an
AjaxLazyLoadPanel
Try to move your table to separate Panel. This will work
public Component getLazyLoadComponent(String id)
{
return new YourPanel(id);
}
public YourPanel(String id)
{
super(id);
List<IColumn<User>> columns = new ArrayList<IColumn<User>>();
columns.add(new PropertyColumn<User>(new Model<String>("First Name"),
"firstName", "firstName"));
columns.add(new PropertyColumn<User>(new Model<String>("Last Name"),
"lastName", "lastName"));
AjaxFallbackDefaultDataTable<User> result = new
AjaxFallbackDefaultDataTable<User>("table", columns,
new SortableUserDataProvider(), 25)
{
};
result.setOutputMarkupId(true);
result.setOutputMarkupPlaceholderTag(true);
add(result);
}
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-AjaxFallbackDefaultDataTable-in-an-AjaxLazyLoadPanel-tp2314284p2314618.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org