*this method can get a String: <a href="">abc</a>* private native String getHtml()/*-{
return [ '<a href="'">abc</a>' ].join(""); }-*/; *this native method can invoke JavaMethod MsgAlert();* private native void alert()/*-{ @com.package.Test::MsgAlert()(); }-*/; public static void MsgAlert(){ MessageBox.alert("test","test"); } *My problem is : how to use native method to get this String: <a href="javascript:MsgAlert();">abc</a>* * * *this problem confuse me for a long time , who can help me ,thank you!!!* --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---