[
https://issues.apache.org/struts/browse/WW-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Don Brown resolved WW-1871.
---------------------------
Resolution: Not A Problem
Agreed, use the user mailing list. The "default submit button" feature is
actually specific to browsers, particularly IE. There is nothing in the HTML
spec that specifies what a default submit button is and how it is invoked by
pressing enter.
> Default Submit Button
> ---------------------
>
> Key: WW-1871
> URL: https://issues.apache.org/struts/browse/WW-1871
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.6
> Environment: Windows Tomcat
> Reporter: chan
>
> In following example the default button for that form does not work??? When i
> enter something in search string and press enter key, the action is not
> performed, any workaround???
> <body onLoad="self.focus();document.FindField.searchString.focus();">
> <s:actionerror/>
> <s:form name="FindField" action="FindField">
> <table style="font-size:10pt" border="0">
> <tr>
> <td>
> <h4>Find Field in Dictionary</h4>
> [case insensitive with wildcard as %]
> </td>
> </tr>
> <tr>
> <td>
> <s:textfield tabindex="0" required="true" name="searchString"
> cssStyle="font-size:10pt" key="Name of the Field" size="30"/>
> <s:submit tabindex="1" key="Search" name="Search" value="Search"/>
> </td>
> </tr>
> </table>
> </s:form>
> <s:if test="people.size == 0 && Search != null">
> <h4><font color="red">No Data Found!</font></h4>
> </s:if>
> <s:if test="people.size > 0">
> <p>Search Results:</p>
> <table style="font-size:10pt" border="0" width="100%">
> <tr bgcolor="Gray">
> <td>First Name</td>
> <td>Last Name</td>
> </tr>
> <s:iterator value="people">
> <tr>
> <td><s:property value="Col0"/></td>
> <td><s:property value="Col1"/></td>
> </tr>
> </s:iterator>
> </table>
> </s:if>
> </body>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.