You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Philip Luppens (JIRA)" <ji...@apache.org> on 2007/04/05 09:26:52 UTC
[jira] Commented: (WW-1871) Default Submit Button
[ https://issues.apache.org/struts/browse/WW-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40758 ]
Philip Luppens commented on WW-1871:
------------------------------------
Please ask questions like this on the user mailing list before submitting this as a bug report.
> 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.