struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Hornbøll Hansen (JIRA) <j...@apache.org>
Subject [jira] Updated: (WW-1954) <s:submit type="button"><s:param name="label"> has no effect
Date Wed, 06 Jun 2007 11:23:26 GMT

     [ https://issues.apache.org/struts/browse/WW-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Hornbøll Hansen updated WW-1954:
------------------------------------

    Description: 
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.

  was:
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 search.customer.label.search.


> <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.6
>         Environment: Apache Tomcat 5.5, Java 1.6, Windows XP
>            Reporter: Jan Hornbøll Hansen
>
> 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.


Mime
View raw message