Domchi
Domchi

Reputation: 10813

Simple hyperlink in GWT?

This should be simple, but somehow I can't find a way to create simple hyperlink in GWT. Basically, I want to load another page when users clicks on something.

Hyperlink seems to point to internal GWT application state only. I guess I could put the link in HTML code itself, but how do I create it in Java?

Upvotes: 5

Views: 3490

Answers (2)

antony.trupe
antony.trupe

Reputation: 10824

Anchor
this.add(new Anchor("www.stackoverflow.com"));

Upvotes: 9

Jason Hall
Jason Hall

Reputation: 20920

You're looking for Anchor.

Upvotes: 5

Related Questions