DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27312>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27312

amend html:submit  with a "label" and "labelKey" attribute for multi-linguality

           Summary: amend html:submit  with a "label" and "labelKey"
                    attribute for multi-linguality
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When having multiple submit buttons in a form that all fill different values
into one bean property (e.g. userCategory), the value visible to the browsing
user is also the value ending up in the Java form field.
This is a problem if the application is multilingual, but I want the user
category to be just for example 3 logical levels in the backend (DB)
irrespective of the language. When processing the form, it appears to be
impossible to work with the logical values only and using localized resources
seems to be possible for the "alt" and "title" element, but not the value itself.

The limitation seems to be struts's usage of the html <input
name="*struts-property*" type="submit" value="*struts-value*".

One option could be to change the implementation such that the html would be
filled by struts like:
<input name="*struts-property**struts-value*" type="submit" value="*struts-label*".
Then on the java side request.getParameterNames() would get me all potential
submitbuttons, potSubmitButton[i].startsWith(*struts-property*) would find it
and potSubmitButton[i].substring(*struts-property*.length()) would return the
*struts-value* - what do you think?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to