|
Comment Added :
WICKET :
Re: Getting user confirmation
Getting user confirmation commented on by Eelco Hillenius (Jan 09, 2007). Comment:make it a custom component like this: public class ConfirmLink extends Link { public ConfirmLink(String id, String msg) { super(id);
add(new SimpleAttributeModifier("onclick", "return confirm('" + msg + "');"));
} } new ConfirmLink("removeLink", "are you sure?") { public void onClick() { .. }};
|
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Unsubscribe or edit your notifications preferences
