RE: Replacing the contents of a table with ajax

2011-09-08 Thread Werner Riegel
cing the contents of a table with ajax > > Maybe you should try something like : > > protected void onSubmit(AjaxRequestTarget target, Form form) { > > TablePanel tp = new TablePanel(tablePanel.getId(), > getItemList(selectedFromDropDown)); > tp.setOutputMarkupId(

Re: Replacing the contents of a table with ajax

2011-09-07 Thread Gabriel Landon
Maybe you should try something like : protected void onSubmit(AjaxRequestTarget target, Form form) { TablePanel tp = new TablePanel(tablePanel.getId(), getItemList(selectedFromDropDown)); tp.setOutputMarkupId(true); //replace the panel of you page getPage().replace(tp); //o

RE: Replacing the contents of a table with ajax

2011-09-07 Thread Werner Riegel
Thanks for your reply. I've already done that, as described in my first mail, but it still doesn't work. > Date: Wed, 7 Sep 2011 16:37:39 +0200 > From: robert.dahlst...@ongame.com > To: users@wicket.apache.org > Subject: Re: Replacing the contents of a table with aj

Re: Replacing the contents of a table with ajax

2011-09-07 Thread Robert Dahlström
Usually, put a container around the table and update the container through ajax and not the table directly. /Robert On 09/07/2011 04:22 PM, Werner Riegel wrote: Hello, im trying to update the contents of a table, but it doesn't really work. I hope you guys can help me with that. My page lo