Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1381

Cannot change the label of the "Browse..." button for localization when using the Upload component in Tapestry 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 4.0
    • 4.0
    • Framework
    • None
    • Windows XP Operating system, Intenet Explorer 6.0

    Description

      We are using the Upload component to upload files in our application. Here is a code snippet

      <tr>
      <td nowrap="nowrap"> </td>
      <td>
      <span jwcid="@FieldLabel" field="component:upload" displayName="message:file"></span>:<br>
      <input jwcid="upload@Upload" file="ognl:file" type= "file" size="46" maxlength="256"
      validators="validators:required" displayName="message:file"/>
      </td>
      <td nowrap="nowrap"> </td>
      </tr>

      The display name is from a properties file. We are doing this to enable the localization of the application. But the label of the browse button always shows up as "Browse..." no matter what the display name is.

      As per the link http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Upload.html I think the label should be from the displayName.

      How can we localize the Browse button that shows up on the upload page.

      Thank you!

      Attachments

        1. Tapestry-1381.doc
          29 kB
          Yogesh Dheenadayalu

        Activity

          People

            jkuhnert Jesse Kuhnert
            dyogesh Yogesh Dheenadayalu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: