The link should be AjaxLink or AJaxSubmitButton or AjaxSubmitLink



public onSubmit(AJaxtarget target,Form form){

//do your operations...

String javaScript = "alert('" + "are you sure to delete"
                                                        + "')";
target.addJavascript(javaScript);
}






tsuresh wrote:
> 
>  Hello, 
> I have a delete link in a list of names. If  I click on the delete link of
> name then the message should be are you sure to delete selectedName?
> 
> String selectedName = "user1";
> deleteLink.add(new SimpleAttributeModifier("onclick", "return confirm('Are
> you sure to delete?');"));
> 
> I am not able to append this selectedName after: Are you sure to delete 
> How to append this?
> thanks
> 

-- 
View this message in context: 
http://www.nabble.com/Simple-question-about-alert-string-tp15950581p15950760.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to