Re: [Wicket-user] Ajax refreshing of DataTable

2007-02-04 Thread Jean-Baptiste Quenot
Hi PH,

Can you please send the relevant HTML markup snippet?  Did you try
adding to AjaxRequestTarget an element  that holds both the filter
toolbar and the data table?
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax refreshing of DataTable

2007-01-31 Thread Pierre-Henri Trivier
Greetings

 I have a problem with a DataTable component that I am trying to refresh
 following an Ajax event.

My page contains a 'DataTable' component, with a FilterToolbar added as
a topToolbar.
The table is displayed correctly. My page contains a modal window that I
use to edit the bean ; when I close the modal window, I want my table to
be refreshed.

So assuming the table component is available when I declare the button,
and after setting table.setOutputId to true , I do :

-
AjaxSubmitButton save = new AjaxSubmitButton(save, EditForm.this) {

 @Override
 protected void onSubmit(AjaxRequestTarget target, Form form) {
ModalWindow.close(target);
target.addComponent(table);
 }  

};
-

This works fine as far as the table's row are concerned, except that the
filter field (the one rendered by the FilterToolbar) does not get drawn.

I tried to explicitely add the filterToolbar component to the target
(after setting it to output its ID), but then an exception was thrown,
complaining that components with setRenderBodyOnly set to true could not
be added to the target.
I tried to manually call setRenderBodyOnly on the toolbar, but it failed.

Afterwards, I tried the same thing with the AjaxFallbackDataTable ; the
problem was even worse, as when I would navigate from a part of the
table to the other, the filter field would disappear too. I suspect
this is because AjaxFallbackDataTable does the rendering of different
'pages' of the table using ajax, and the same problem occurs.

So, is there a way to refresh a FilterToolbar in a DataTable using an
Ajax event ? Or will I have to reload the entire page ?


Regards

-- 
Pierre-Henri Trivier
Solutions  Technologies
Anyware Technologies
www.anyware-tech.com

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user