[ http://issues.apache.org/struts/browse/STR-1906?page=all ]
Paul Benedict closed STR-1906.
------------------------------
Resolution: Won't Fix
Assignee: (was: Struts Developers)
I agree with Michael. The problem is the lack of ability to detect the default
key. With the advent of the new EventActionDispatcher class, this problem can
be solved adequetly.
> [taglib] html:cancel alteration to allow for default enter key form submission
> ------------------------------------------------------------------------------
>
> Key: STR-1906
> URL: http://issues.apache.org/struts/browse/STR-1906
> Project: Struts 1
> Issue Type: Improvement
> Components: Taglibs
> Affects Versions: 1.1 Final
> Environment: Operating System: All
> Platform: All
> Reporter: Marcus Breese
> Priority: Minor
> Attachments: Cancel.patch, CancelTag.java.patch,
> cancelTag_tld_javascript.diff
>
>
> If you use the html taglib to create the submit and cancel tags, you have to
> be
> careful of the order, as if you are in a form and you hit the enter key, the
> form will be submitted or cancelled based upon the last submit/cancel tag
> used.
> Meaning if the order is like this:
> (Submit) (Cancel)
> the form will be cancelled
> if the order is:
> (Cancel) (Submit)
> the form will be submitted.
> For pure aesthetic reasons, I prefer to put the cancel button last (also, that
> is how most of my users like it), but I also like to hit the enter key to
> submit
> forms...
> I've written the following patch to org.apache.struts.taglib.html.CancelTag to
> rewrite the cancel submit button to be a combination of a "button" and a
> hidden
> form field.
> This requires NO CHANGE to current jsp pages.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira