vaadin7 - Click listener on image broken in Vaadin 7 -
i run code make button add gridlayout.
private image makebutton(string text) { final image imagebutton = new image(text); imagebutton.seticon(new externalresource("https://cdn2.iconfinder.com/data/icons/ios7-inspired-mac-icon-set/128/_app_store_128.png")); imagebutton.addclicklistener(new mouseevents.clicklistener() { @override public void click(mouseevents.clickevent event) { notification.show("hello world"); } }); return imagebutton; } however click event never called. idea how/why happen?
use setsource() instead of seticon().
Comments
Post a Comment