You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2012/04/24 21:29:36 UTC

[jira] [Commented] (CONNECTORS-468) Using ResourceBundle under Velocity has unhelpful behavior when a key is missing

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

Karl Wright commented on CONNECTORS-468:
----------------------------------------

r1329957

                
> Using ResourceBundle under Velocity has unhelpful behavior when a key is missing
> --------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-468
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-468
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Framework core
>    Affects Versions: ManifoldCF 0.5, ManifoldCF 0.6
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 0.6
>
>
> When you use ResourceBundle.getString in a Velocity template, the behavior for a missing key is to throw an exception - which causes the template to not render and an exception to be printed in the log.  It would be much better if the behavior was more similar to Messages.getString.  We can do this by wrapping ResourceBundle and using the wrapped class in the context instead of ResourceBundle itself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira