Re: Append child Widget to parent Widget.. !! click handler of child Widget is not working .. ??

2010-12-21 Thread Santosh kumar
Hi, Amir Thank you for your reply ... !! Its working. i just added the code *RootPanel.get("divId").add(simplePanel); * Button button = new Button(); button.getElement().setAttribute("id", "buttonId"); SimplePanel simplePanel = new SimplePanel(); simplePane

Re: Append child Widget to parent Widget.. !! click handler of child Widget is not working .. ??

2010-12-19 Thread Amir Kashani
DOM.getElementById("buttonId").getParentElement().appendChild(simplePanel.getElement()); You can't attach a widget this way. Use RootPanel.get().add(simplePanel). Also, there's no need for the IDs -- reference the Widget objects rather than the elements within. If you want to intermix straight

Append child Widget to parent Widget.. !! click handler of child Widget is not working .. ??

2010-12-17 Thread Santosh kumar
Hi, Button button = new Button(); button.getElement().setAttribute("id", "buttonId"); SimplePanel simplePanel = new SimplePanel(); simplePanel.getElement().setAttribute("id", "childPanelId"); FlexTable flexTable = new FlexTable(); Button buttonInFlexTable = new Button(); buttonInFlexTable.addClick