The onSubmit mehtod of a form is generic that mean if I call getModelobject
inside of an overridden onSubmit I get an object of my Form's model object class
MyForm extends Forms<MyModelobjectsclass>
on Submit() {
getModelobject() -> MyModelObject
The AjaySubmitButton that is placed in side of my Form is not generic and
therefore
onSubmit(AjaxRequestTarget target, Form form) {
getModelobject() -> Object
simply results in an Object.
Wouldn't it make sense to have
onSubmit(AjaxRequestTarget target, Form<T> form) {
and
public abstract class AjaxSubmitButton<T> extends Button<T>
Stefan Lindner
<<winmail.dat>>
------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
