Part 1: RootPanel rootPanel = RootPanel.get(); this.html_panel_id = HTMLPanel.createUniqueId(); html_panel = new HTMLPanel("<div id=\"" + this.html_panel_id + "\"></ div>"); rootPanel.add(html_panel);
Part 2: public native void recaptcha_show() /*-{ var recaptcha_container_id = th...@com.example.www.index.client.Index::html_panel_id; $wnd.Recaptcha.create("YOUR_RECAPTCHA_PUBLIC_KEY", recaptcha_container_id, {theme: "clean", callback: $wnd.Recaptcha.focus_response_field}); }-*/; Part 3: public native String recaptcha_get_challenge() /*-{ return $wnd.Recaptcha.get_challenge(); }-*/; public native String recaptcha_get_response() /*-{ return $wnd.Recaptcha.get_response(); }-*/; Part 4, 5, etc.: Left as exercise for the reader -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.