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]

Reply via email to