The following code works fine if i do HTML = new HTML("<a href=#
onclick=window.test()>Hi 123I</a>'); ( Meaning HelloWorld gets Printed )
But the same HTML from inside a RichTextArea does not get printed .

I am doing missing something here



MyPanel
{

     RichTextArea ss = new RichTextArea ();
     ss.stHTML("<a href=# onclick=window.test()>Hi 123I</a>");

      public static native void exportMyFunction2(MyPanel x) /*-{
    $wnd.call = function () {
   x.@myPackage.MyPanel::test()();
   }

}-*/;


   public void test()
{
GWT.log("Hello World");
}


}

-- 
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.

Reply via email to