I want to use a link or a button like (a href=”…”/>) in GWT with uiBinder.
I found the widget “hyperlink” but I don´t know how I use that.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use the Anchor widget.
You can use a sample ClickHandler on it to detect the click event or use the default href with the constructor :
You can also use the setter setHref(java.lang.String href)
In UiBinder :
EDIT :
To open the link in a new tab, you should use the setTarget(String target) method like the following example :