You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2015/02/05 07:51:34 UTC
[jira] [Commented] (WW-4459) getText() is broken
[ https://issues.apache.org/jira/browse/WW-4459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14306755#comment-14306755 ]
Lukasz Lenart commented on WW-4459:
-----------------------------------
Did you try to define a key like this: {{format.number = {0,number,#0.0##}}} ? The same works very well in the Showcase app.
> getText() is broken
> --------------------
>
> Key: WW-4459
> URL: https://issues.apache.org/jira/browse/WW-4459
> Project: Struts 2
> Issue Type: Bug
> Components: Expression Language
> Affects Versions: 2.3.20
> Reporter: Yuri
> Fix For: 2.3.22
>
>
> After upgrade from 2.3.15 to 2.3.20 we encountered couple issues:
> 1. Web server throws warning messages:
> {noformat}
> WARN [LocalizedTextUtil] Missing key [....
> {noformat}
> That happens when resource key starts with "errors."
> 2. getText() with formatting no longer works. For example,
> {code:xml}
> <s:property value="getText('{0,number,#,#0}',{#pctComplete * 100})"/>
> {code}
> throws Warning:
> {noformat}
> Missing key [{0,number,#,#0}] in bundles ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)