features for Link needed

I need this:

<a href='#' onclick="return false;"><img src='https://www.paypal.com/en_US/i/btn/btn_dg_pay_w_paypal.gif'></a>

with the listener ability on the server side so I can run code.

I’ld strip down a button of its theme if it was that easy, anyone has an example?

Embedded has a click listener, so you can do something like :


Embedded e = new Embedded(altlabel, new ExternalResource("https://www.paypal.com/en_US/i/btn/btn_dg_pay_w_paypal.gif"));
e.addListener(new ClickListener(){public void click(ClickEvent event) { /* do something */} })
e.setStyleName("myClass");

You may want to set the height and width too to avoid some layout problems with slow connections.
You can also use that css to make the pointer change into the hand icon :


.myClass{
	cursor: pointer; /*Non IE*/
	cursor: hand; /*IE*/
}

You can also use a Button with the link style. button.addStyleName(Reindeer.BUTTON_LINK);

You could try the
ActiveLink add-on
if you need a real link in the browser, as might well be the case for PayPal integration.