Re: Adding a confirmation popup

2009-04-10 Thread Linda van der Pal
Thanks to you both, now at least I know what to experiment with. Regards, Linda Serkan Camurcuoglu wrote: I think it should be , or you should add form submit javascript code into the onclick handler.. Linda van der Pal wrote: I've put it on a button, might that be why it doesn't work? Gen

Re: Adding a confirmation popup

2009-04-10 Thread Serkan Camurcuoglu
I think it should be , or you should add form submit javascript code into the onclick handler.. Linda van der Pal wrote: I've put it on a button, might that be why it doesn't work? Generated line of source code: onclick="return confirm('Are you sure?');">src="resources/nl.lunaris.bookdb.webu

Re: Adding a confirmation popup

2009-04-10 Thread Linda van der Pal
I've put it on a button, might that be why it doesn't work? Generated line of source code: Jeremy Thomerson wrote: What's the generated JS? Have you debugged with Firebug, etc, to see what's happening in the JS? Are you attaching that link to a regular anchor tag in the HTML? If you're pu

Re: Adding a confirmation popup

2009-04-10 Thread Jeremy Thomerson
What's the generated JS? Have you debugged with Firebug, etc, to see what's happening in the JS? Are you attaching that link to a regular anchor tag in the HTML? If you're putting it on a span, Wicket will generate an onclick to make it a link - which may iinterfere with your onclick JS. -- Jer

Adding a confirmation popup

2009-04-10 Thread Linda van der Pal
In the book Wicket in Action I found this example: public class MyPage extends WebPage { public MyPage() { Link link = new Link("link") { @Override protected void onClick() { System.out.println("Link clicked"); } }; add(link); link.add(new SimpleAttr