Type: New Feature
Affects Version/s: 5.0.15
Fix Version/s: 5.2.0
There is a need for more submit types...
although <input type="submit"> and <input type="reset"> are trivial even without a component,
there is a problem when a type="cancel" is needed.
The issue here is that in case of cancel client validation must be skipped, and that is not possible with current
I don't know how submit type=cancel works for T4 so I've implemented it how it seemed right for me.
extract from javadoc for the "type" parameter
- Determines the button behavior, <b>"submit"</b> - a normal form button, <b>"reset"</b> - reset form (locally),
- "cancel" - works like an actionlink, generates a "cancel" event instead of "selected" and the form is not submitted
- submission (this is usually desirable).
so I've added type=submitcancel which still submits the form but avoids client validation.
both generate "cancel" event which is different from the "selected" event
on top of all that the type=forced could be easily added to call "selected" event while skipping client side validation
|Attachment||TAPESTRY-2053-R612601.patch [ 12375960 ]|
|Fix Version/s||5.1 [ 12312964 ]|
|Affects Version/s||5.0.15 [ 12313429 ]|
|Issue Type||Bug [ 1 ]||New Feature [ 2 ]|
|Summary||Submit add parameter type, with possible values submit,reset,cancel,cancelsubmit||Extend Submit components to specify behavior of submit: normal, reset or cancel|
|Assignee||Howard M. Lewis Ship [ hlship ]|
|Summary||Extend Submit components to specify behavior of submit: normal, reset or cancel||Add support for "cancel" submit buttons (which bypass client-side validation)|
|Status||Open [ 1 ]||Closed [ 6 ]|
|Fix Version/s||5.2.0 [ 12314122 ]|
|Resolution||Fixed [ 1 ]|