struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuri (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4459) getText() is broken
Date Thu, 05 Feb 2015 17:48:35 GMT

    [ https://issues.apache.org/jira/browse/WW-4459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307634#comment-14307634
] 

Yuri commented on WW-4459:
--------------------------

If define a key for the format in resource file then server does not throw warning message.
That could be a workaround for us. 
Defining format directly in jsp throws warning. 

> 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
>         Environment: JBoss EAP 6
>            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)

Mime
View raw message