Formatting numeric values in param tag not working correctly with RTL languages
-------------------------------------------------------------------------------
Key: STS-697
URL: http://www.stripesframework.org/jira/browse/STS-697
Project: Stripes
Issue Type: Bug
Components: Formatting, Tag Library
Affects Versions: Release 1.5.1
Environment: Solaris 10, Java 1.6.0_14
Reporter: Martin Walsh
Priority: Minor
Using a RTL locale, when attempting to format a negative number as a URL
parameter it is not formatted correctly.
<ss:url value="<%=ACCOUNT_KEYS_ACTION%>" event="view" var="popup_url">
<ss:param name="keyId">
<ss:format value="-1" formatType="number"/>
</ss:param>
</ss:url>
Produces:
keys.action?view=&keyId=-1
when it should produce:
keys.action?view=&keyId=1-
Which is what the integer type converter expects. This only seems to occur
when providing literal values. If i get the value from the action bean:
<ss:url value="<%=ACCOUNT_KEYS_ACTION%>" event="view" var="popup_url">
<ss:param name="keyId">
<ss:format value="${actionBean.keyId}" formatType="number"/>
</ss:param>
</ss:url>
Then the correct URL is displayed.
keys.action?view=&keyId=1-
I checked the format tag on its own:
<ss:format value="-1" formatType="number"/>
which seems to display the correct value of 1-
--
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
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development