I am new to both java and GWT and am using Eclipse (Juno with the GWT plugin) to develop an application for a volunteer organisation. I have created a class called AwardTracker (in org.AwardTracker.client) which is my entry point. This displays a standard login page. I followed a tutorial for this and it is working. The next part I want to implement is to build a page to create an account. For this I have a “Create an account” hyperlink on the login page. I have created a new Package (org.AwardTracker.client.CreateAccount) to hold this class.
To create the class I am selecting, at the top of the page, Create new visual classes / GWT / GWT Java UI / Composite is this the correct one?
Once I have created the page how do I call it with the following event handler?
Hyperlink hprlnkCreateAnAccount = new Hyperlink("Create an account", false, "newHistoryToken");
hprlnkCreateAnAccount.addAttachHandler(new Handler() {
public void onAttachOrDetach(AttachEvent event) {
}Thanks,Glyn
Anchor a = new Anchor("hi");
a.addClickhandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Window.alert("hi");
}
});