The meaning of tree.updateTree(target) is to refresh changed parts of
the tree during ajax request (assuming the model fired proper
listeners).
The problem with DnD tree is that it's more complicated than just
reordering DOM entries and then notifying the server. Anyway, if you
want to make sure that the whole tree is redrawn call invalidateAll on
it before sending to ajaxrequesttarget.

-Matej

On Mon, Apr 21, 2008 at 5:45 PM, Roman Zechner <[EMAIL PROTECTED]> wrote:
> Noone else interested in a similar component? What is the meaning of
> tree.updateTree(target)?
>  In the code sample below I expect the tree to be reloaded when the button
> is pressed, but nothing happens.
>  What am I doing wrong?
>
>  Cheers, Roman
>
>
>
>  Roman Zechner wrote:
>
> > i am building a variant of matej knopp's cool editable treetable.
> > i am using jquery for the drag'n drop operations on it's rows.
> > now if i have my new tree in DOM, how can i submit it back to the server?
> >
> > the idea is simple:
> > 1. change the DOM of the tree, i.e. change the order of rows
> > 2. submit it via a "save" button
> > 3. save the new tree on the serverside and update tree on view
> >
> >
> >
> > form.add(tree)
> > form.add(new AjaxFallbackButton("save", new ResourceModel("save"), form) {
> >           @Override
> >           protected void onSubmit(AjaxRequestTarget target, Form form) {
> >               TreeTable treeTable = (TreeTable)
> findParent(TreeTable.class);
> >               // do some db work
> >               tree.updateTree(target); //this does nothing? no redraw of
> tree as expected?!
> >           }
> > }
> >
> > thanks,
> >
> > roman
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to