[
https://issues.apache.org/struts/browse/WW-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41485
]
Jan Hornbøll Hansen commented on WW-1954:
-----------------------------------------
You wrote:
>To change the text of a submit button in HTML, you must specify the
text via the "value" attribute.
>Following is an example that will work for you:
><s:submit type="button"><s:param name="value"><fmt:message
key="searchcustomer.label.search"/></s:param></s:submit>
Yeah I sorta figured that out on my own, unfortunately you can't delete
tickets in JIRA.
Documentation still needs to corrected though:
From "http://struts.apache.org/2.0.8/docs/submit.html":
>...
>Example 3
>Render an button submit:
><s:submit type="button" value="%{'Submit'}" label="Submit the form"/>
>...
> <s:submit type="button"><s:param name="label"> has no effect
> ------------------------------------------------------------
>
> Key: WW-1954
> URL: https://issues.apache.org/struts/browse/WW-1954
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.7
> Environment: Apache Tomcat 5.5, Java 1.6, Windows XP
> Reporter: Jan Hornbøll Hansen
> Assignee: James Holmes
>
> Have following form on a webpage:
> <s:form action="searchCustomer" method="get">
> <s:textfield name="customer.name"><s:param name="label"><fmt:message
> key="searchcustomer.label.name"/></s:param></s:textfield>
> <s:textfield name="customer.citizenRegistrationNumber"><s:param
> name="label"><fmt:message
> key="searchcustomer.label.citizenregistrationnumber"/></s:param></s:textfield>
> <s:textfield name="customer.address.streetName"><s:param
> name="label"><fmt:message
> key="searchcustomer.label.streetname"/></s:param></s:textfield>
> <s:textfield name="customer.address.streetNumber"><s:param
> name="label"><fmt:message
> key="searchcustomer.label.streetnumber"/></s:param></s:textfield>
> <s:textfield name="customer.address.postalCode"><s:param
> name="label"><fmt:message
> key="searchcustomer.label.postalcode"/></s:param></s:textfield>
> <s:submit type="button" value="%{'submit'}"><s:param
> name="label"><fmt:message
> key="searchcustomer.label.search"/></s:param></s:submit>
> </s:form>
> When button is rendered text on button says "submit" instead of value of
> searchcustomer.label.search.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.