Tuesday, July 20, 2010

create hyperlink using GWT

Hi,

After getting a bunch of urls from the sever side, I want to dispay
them in the format of hyperlinks on the client side. In this case, I
didn't use history at all so I choose to use 'new HTML()'.

tableLeft.setWidget(index, 0, new HTML("<a href='www.google.com'>text</
a>"));

If I do like this, the address of url will become 'http://
127.0.0.1:8888/www.google.com' rather than the one i want.

How can I fix that?

Thanks,
Lu

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate