[jboss-jira] [JBoss JIRA] Created: (JBAS-7213) javax.faces.application.Application getMessageBundle() method returns null in JBoss 5.1
Brendan Farragher (JIRA)
jira-events at lists.jboss.org
Thu Aug 27 14:38:24 EDT 2009
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