Allow overriding localized value attribute of button tags.
----------------------------------------------------------

                 Key: STS-679
                 URL: http://www.stripesframework.org/jira/browse/STS-679
             Project: Stripes
          Issue Type: Improvement
          Components: Tag Library
    Affects Versions: Release 1.5.1
            Reporter: Iwao AVE!
            Priority: Trivial


Assuming these lines exist in the StripesResources.properties,

save=Save
saveNow=Save Now!

and the following lines on JSP,

(1) <stripes:submit name="save" />
(2) <stripes:submit name="save" value="Save Now!" />
(3) <stripes:submit name="save"><fmt:message key="saveNow" /></stripes:submit>

Stripes renders localized name attribute 'Save' for the 'value' attribute in 
all cases.

(1) <input type="submit" name="save" value="Save" />
(2) <input type="submit" name="save" value="Save" />
(3) <input type="submit" name="save" value="Save" />

But the expected behavior would be

(1) <input type="submit" name="save" value="Save" />
(2) <input type="submit" name="save" value="Save Now!" />
(3) <input type="submit" name="save" value="Save Now!" />

This allows us to change button caption without changing event name.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to