[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:57:23 EDT 2009


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

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

Addendum for typo - faces.config references above should be replaced with faces-config.xml. Also, my application is a JSF application, not a Seam application.

> 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