Stripes

Allow overriding localized value attribute of button tags.

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5.1
  • Fix Version/s: None
  • Component/s: Tag Library
  • Labels:
    None

Description

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.

Activity

Hide
Iwao AVE! added a comment - 16/Apr/09 9:12 AM

Attached a patch against branches/1.5.x (revision 1127).

Show
Iwao AVE! added a comment - 16/Apr/09 9:12 AM Attached a patch against branches/1.5.x (revision 1127).

People

Vote (1)
Watch (1)

Dates

  • Created:
    16/Apr/09 9:03 AM
    Updated:
    16/Apr/09 9:12 AM