You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jan Hornbøll Hansen (JIRA)" <ji...@apache.org> on 2007/05/29 11:16:38 UTC

[jira] Created: (WW-1954) has no effect

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


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1954) has no effect

Posted by "Jan Hornbøll Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

             Priority: Major  (was: Minor)
    Affects Version/s: 2.0.6

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1954) has no effect

Posted by "Jan Hornbøll Hansen (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Closed: (WW-1954) has no effect

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes closed WW-1954.
----------------------------

    Resolution: Not A Problem

These types of problems should be brought up on the Struts users mailing list instead of opening a ticket:

http://struts.apache.org/mail.html

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> 

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


[jira] Updated: (WW-1954) has no effect

Posted by "Jan Hornbøll Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Affects Version/s:     (was: 2.0.6)
                       2.0.7

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


[jira] Assigned: (WW-1954) has no effect

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes reassigned WW-1954:
--------------------------------

    Assignee: James Holmes

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


[jira] Updated: (WW-1954) has no effect

Posted by "Jan Hornbøll Hansen (JIRA)" <ji...@apache.org>.
     [ 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.