You should only need the loadBundle component:
<f:loadBundle basename="com.dtn.petro2.petro_admin.mymessages" var="tb"/>
And it would get the localized properties from
/com/dtn/petro2/petro_admin/mymessages.properties in the classpath.
Regards,
Bruno
On 5/10/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
Concerning a .properties file, do I need to define the .properties file in
my faces-config.xml:
<application>
<locale-config>
<default-locale>en_US</default-locale>
</locale-config>
<message-bundle>com.dtn.petro2.petro_admin.tbrowser</message-bundle>
</application>
*AND* in the .jsp page:
<f:loadBundle
basename="com.dtn.petro2.petro_admin.tbrowser" var="tb"/>
I return the following error if I don't have the .properties file defined in
my faces-config.xml and only have it defined in my jsp file:
[#|2006-05-10T10:50:12.168-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/transactionbrowser]
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException: null MessageFactory
Thanks,
--Todd