Button b = new Button("This is an active link");
b.setStyleName("link");
_l.addComponent(b);
b.addListener(new Button.ClickListener() {
public void buttonClick(Button.ClickEvent event) {
_w.showNotification("Clicked");
}
});
I was aware of the button with the style link, however i would like to use an actual html link hence the Link component in order to take advantage of actions related to html links i.e. the open in new tab functionality in browsers. At that point i got curious about the javascript events, whether they can be handled by the framework…
Basically just: 1) create a component in eclipse wizard, 2) select exiting component to extend, 3) write your additions to generated component stub.
In future there could also be possibility to catch client-side events from server-side. Recently got a contribution for this feature:
http://dev.vaadin.com/ticket/3234
Yes.
You should take a look of the new book edition (linked above) the chapter has many useful additions.
After getting add-on activelink, it make this error:
[ERROR]
Errors in ‘org/vaadin/activelink/client/ui/ActiveLinkConnector.java’
[INFO]
[ERROR]
Line 36: The method updateFromUIDL(UIDL, ApplicationConnection) is undefined for the type LinkConnector
[INFO]
[ERROR]
Aborting compile due to errors in some input files