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]