|
From: <jue...@we...> - 2003-11-04 19:21:18
|
Trevor,
=20
Go ahead, that makes sense! I haven't been aware that the default =
mechanism wouldn't work with buttions.
=20
Juergen
________________________________
Von: spr...@li... im Auftrag =
von Trevor Cook
Gesendet: Di 04.11.2003 19:14
An: Spring Developers
Betreff: [[W3-SPAM]] - [Springframework-developer] =
AbstractWizardFormController - Email found in subject
The current wizard only works correctly with form submissions using:
<input type=3D"submit" ...>
For various reasons, we normally use buttons, as in:
<button type=3D"submit" ...>
The problem is that <input> only submits the 1 clicked button, <button>
submits all the buttons, so you need a different way to check which =
button
was clicked. I have modified the class adding the following 2 methods:
protected boolean isFinish(HttpServletRequest request)
protected boolean isCancel(HttpServletRequest request)
which contain the current logic for determining the workflow. However, =
they
can be overridden to allow customization beyond just the name of the
parameters (for special cases such as mine :) ). This change does not
affect any existing "out-of-the-box" functionality.
If there are no objections, I will commit these changes tonight.
Trevor
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|