Hi,

I the method onUpdate(AjaxRequestTarget target) you shoud reference to
existing component:

                        @Override 
                        protected void onUpdate(AjaxRequestTarget target) { 
                           target.addComponent(tableWrapper); 
                        } 

where tableWrapper defined as above:
class TablePanel extends Panel{ 
public TablePanel(String id, final List<IColumn<PersonBean>> columns,
PersonBeanProvider personBeanProvider, int rowsPerPage) { 
        super(id);
         WebMarkupContainer tableWrapper = new
WebMarkupContainer("tableWrapper");
         tableWrapper.setOutputMarkupId(true);
         add(tableWrapper);
         AjaxFallbackDefaultDataTable<PersonBean> table = new
AjaxFallbackDefaultDataTable<PersonBean>("table",
columns,personBeanProvider, 12); 
         tableWrapper.add(table); 
        } 

    } 

... and also wrap table in HTML with <div wicket:id="tableWrapper">...</div>

Hopes it help :)
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-updating-DataTable-after-submit-tp2996324p2996427.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

Reply via email to