Never mind, I got it work. What I had to do was this:

public CharSequence decorateScript(CharSequence script) {
                                                // TODO Auto-generated method 
stub
                                                return 
super.decorateScript("var x = confirm('Are you sure you want to
delete the selected record(s)?'); if(x) { " + script + " }  ");

Thanks
                                        }



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Add-JS-Modifer-to-a-Non-Form-Processing-AjaxButton-tp4657904p4657992.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to