I tried the following in the OnModuleLoad() method, and it seems to work:
Anchor a = new Anchor("Click to open google", Boolean.TRUE,"
http://www.google.nl", "_blank");
RootPanel.get().add(a);
I just added "http://" at the beginning of the URL.
On Sat, Oct 16, 2010 at 11:10 PM, SeniorBeginner <[email protected]>wrote:
> Hi all,
>
> I tried to add a link to an external page from my GWT project, but it
> does not work for me..
> I think that I made a mistake but I cannot figure this one out.
>
> The code that is use is:
> Anchor SampleLink = new Anchor("Click to open google", Boolean.TRUE,
> "www.google.nl", "_blank");
>
>
> Please help, thanks.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
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.