Directory

ActiveLink - Vaadin Add-on Directory

A Link component that sends event to the server - "Link and Button, all in one" ActiveLink - Vaadin Add-on Directory
ActiveLink is an extended Link component that sends an event to the server when clicked, before navigating to the linked URL. This allows an application to allow a user to open stuff in new windows/tabs while still doing the ajaxy-thing when when the user does not. "Best of both worlds." It also sends some additional information about which modifiers where held (e.g shift) and which mouse button was clicked. (Plain-old left-click is reliable, but some other situations are more difficult depending on the browser; verify in the relevant browsers if it covers your needs.) If no listeners are attached, it will behave like a regular Link. Thanks to Sami Viitanen for fixing 7.3 compatibility. NOTE Now on GitHub!
Issue Tracker
Source Code
Online Demo

ActiveLink version 1.0
null

ActiveLink version 7.0.0
Updated to work with Vaadin 7, and API changed: you now get a complete click event (with modifiers etc) server-side whenever the , and can make your own decisions regarding what has been opened where. This is more flexible, but one feature has been removed: the ability to 'cancel' a plain click. Please feel free to comment on the new API (preferable in the forum).

ActiveLink version 7.0.1
Fixed the removeListener() bug mentioned in comments.

ActiveLink version 7.0.2
This version works with Vaadin 7.0 final (the previous version targeted 7-alpha, small changes were needed)

ActiveLink version 7.3.0
Now works with Vaadin 7.3+ thanks to Sami Viitanen. Also moved to GitHub.

ActiveLink version 7.3.1
Removed DemoUI that was accidentally included in the jar