Opening a popup on the click of a link

Hie

Was looking for a way to click a link in my app and opening a new popup having a small form.

I could not find the right stuff. In samples for link it opens an external resource rather a popup with some other vaadin component.

Looked at windows example but that is happening on the click of a button and i could do the same click listner stuff for Link.

Any suggestions?

Maybe you could try using a Button with the Button.STYLE_LINK style? Looks like a link, behaves like a button.

tx but how to set this property? this is static member in the button class.

Button myButton = new Button(“My Button”);
myButton.setStyleName(Button.STYLE_LINK);

There you go :slight_smile: