Categories | Question details Back To List | ||
delete item from dhtml tree Hello, I am trying to delete item from dhtml tree. I would like to display confirmation message prior to the delete. In my modal I am using command buttons and as a result whole page is reloaded. Is there any technique to display message confirming delete with the option of cancel on client side without going to the application server. Here is a fragment from my modal: <h:commandButton value="OK" type="button" onclick="tree.deleteItem(tree.getSelectedItemId(),true);"/> <h:commandButton value="CANCEL" type="button" onclick="Richfaces.hideModalPanel('DeleteFolderModalPanel')"/> Please help. Answer posted by Support on Dec 04, 2008 02:18 h:commandButton converted by jsd to the <input type="submit" which will send form to the server on click You can - use can use native HTML button or - use exestng tag but with onclick="tree.deleteItem(tree.getSelectedItemId(),true); return false; "/> |