I think you should add Button(s) to the form and add onclick attribute 
modifier on them (or right on to the markup <input type="submit" 
wicket:id="submit" onlick="return confirm('...');"/> )

-Matej

Dorel Vaida wrote:
> I'm using wicket 1.2 final and trying to use the form's 'onsubmit' 
> handler to prompt the user to confirm a message or not. I've tried to 
> solve this by adding the "onsubmit" to the form with a 
> SimpleAttributeModifier but it doesn't work, the onsubmit attribute is 
> simply not rendered ?!
> 
> If this isn't the way a form is supposed to be used, can anybody point 
> to how can I do such a thing ? (Ask a user, 'do you really want to 
> submit that form' when he presses submit)
> 
> Thanks,
> Dorel
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to