[jboss-jira] [JBoss JIRA] Commented: (JBAS-7213) javax.faces.application.Application getMessageBundle() method returns null in JBoss 5.1

Brendan Farragher (JIRA) jira-events at lists.jboss.org
Fri Aug 28 09:53:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-7213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12483388#action_12483388 ] 

Brendan Farragher commented on JBAS-7213:
-----------------------------------------

Meant to include the faces.config setting for the message bundle:

 <application>
  <resource-bundle>
   <base-name>foo.application</base-name>
   <var>msgs</var>
  </resource-bundle>
 </application>

In the foo package of my web application I have a file called application_en_US.properties

Thanks. 

> javax.faces.application.Application getMessageBundle() method returns null in JBoss 5.1
> ---------------------------------------------------------------------------------------
>
>                 Key: JBAS-7213
>                 URL: https://jira.jboss.org/jira/browse/JBAS-7213
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: JBossAS-5.1.0.GA
>         Environment: JBoss 5.1.0GA, JSF 1.2, Ubuntu Linux 9.04
>            Reporter: Brendan Farragher
>
> javax.faces.application.Application class's getMessageBundle() method returns null in JBoss 5.1. This causes a NullPointerException. Message bundle is retrieved correctly by the same means in JBoss 4.2.3. Sample code:
> Application app = context.getApplication();
> 		
> // The following line returns null in JBoss 5.1. Returns message bundle name correctly in JBoss 4.2.3.
> // (Should retrieve message bundle name configured in faces.config.xml file). NullPointerException follows this
> 		
> String messageBundleName = app.getMessageBundle();
> ResourceBundle messageBundle = ResourceBundle.getBundle(messageBundleName);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list