[ 
https://issues.apache.org/struts/browse/WW-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Husted resolved WW-1625.
----------------------------

    Resolution: Not A Problem
      Assignee: Ted Husted

AFAICT, this was fixed in XWork r1280, so there is nothing to for us to do 
here. 



> Add hasKey to the TextProvider interface
> ----------------------------------------
>
>                 Key: WW-1625
>                 URL: https://issues.apache.org/struts/browse/WW-1625
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Misc
>            Reporter: Philip Luppens
>         Assigned To: Ted Husted
>            Priority: Minor
>             Fix For: 2.0.7
>
>
> See: http://jira.opensymphony.com/browse/WW-1390
> "I'm trying to a write a method which returns true if a key exists in a 
> resource bundle (as used by the TextProvider). At the moment, I have 
> something along the lines of:
> public boolean doesTextKeyExist(String labelKey)
> {
> String s = getText(labelKey);
> return s != null && !s.equals(labelKey);
> }
> which works fine. But it does have some annoying logging like:
> WARN [LocalizedTextUtil:424] Unable to find text for key 
> 'export.js.title.description' in 'class 
> com.atlassian.bamboo.ww2.actions.build.admin.config.ConfigureBuildPostAction' 
> and locale 'en_US'
> I could turn off logging to for this class to hide this, but it would be nice 
> if the TextProvider interface had something along the lines of:
> boolean hasKey(String key);
> that does this a bit nicer.
> See http://forums.opensymphony.com/thread.jspa?forumID=1&threadID=51663 for 
> more discussions "

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to