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();
simplePanel.getElement().setAttribute("id", "childPanelId");
FlexTable flexTable = new FlexTable();
Button buttonInFlexTable = new Button();
buttonInFlexTable.addClickHandler(new ButtonInFlexTableHandler());
flexTable.setWidget(0, 0, buttonInFlexTable);
simplePanel.add(flexTable);
*RootPanel.get("divId").add(simplePanel);*
DOM.getElementById("buttonId").getParentElement().appendChild(simplePanel.getElement());
On Sat, Dec 18, 2010 at 12:53 PM, Santosh kumar <[email protected]> wrote:
> 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.addClickHandler(new ButtonInFlexTableHandler());
> flexTable.setWidget(0, 0, buttonInFlexTable);
> simplePanel.add(flexTable);
>
> DOM.getElementById("buttonId").getParentElement().appendChild(simplePanel.getElement());
> -
> -
> -
> -
> public class ButtonInFlexTableHandler implements ClickHandler {
>
> @Override
> public void onClick(ClickEvent event) {
> Window.alert("Hello ..!");
> }
> }
>
> According to this code, it should display the window alert message. But
> onClick of buttonInFlexTable button is not working !!
>
> Please, any help is appreciated .. Thank you ..!!
>
>
> --
> Thanks & Regards
>
> *S a n t o s h k u m a r . k
>
> *
>
--
Thanks & Regards
*S a n t o s h k u m a r . k
*
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.