|
From: Keith D. <kd...@cs...> - 2004-05-17 13:42:13
|
Janek,
It's just saying that onSubmit(Object command, BindException errors)
delegates to onSubmit(command), which is the simplest possible onSubmit
method to override.
Remember there are 3 flavors of onSubmit, each taking a different set of
parameters. Only override one of them, and override the simplest one =
for
what you need. I generally override the simplest: onSubmit(command).
Keith
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf =
Of
Janek Bogucki
Sent: Monday, May 17, 2004 9:32 AM
To: spr...@li...
Subject: [Springframework-developer] SimpleFormController: =
onSubmit(Object
command) pasto
>From spring CVS. First sentence refers to non-existent BindException=20
>parameter
/**
* Simplest onSubmit version. Called by the default =
implementation
of the onSubmit
* version with command and BindException parameters.
* <p>This implementation returns null, making the calling =
onSubmit
method perform
* its default rendering of the success view.
* <p>Subclasses can override this to provide custom submission
handling that
* just needs the command object.
* @param command form object with request parameters bound onto =
it
* @return the prepared model and view, or null
* @throws Exception in case of errors
* @see #onSubmit(Object, BindException)
*/
protected ModelAndView onSubmit(Object command) throws Exception =
{
return null;
}
-Janek
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now =
for
SourceForge Broadband and get the fastest 6.0/768 connection for only
$19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=3D2562&alloc_id=3D6184&op=3Dclick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|