Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsf / facelets load bundle not working

843844Dec 6 2009 — edited Aug 8 2010
Hi,

I'm trying to use jsf (with facelets) for learning..
Everything works fine except resource bundle. I've following xhtml:
 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="/WEB-INF/layouts/mainFrame.xhtml">

<f:loadBundle basename="FWFUHWFEws" var="msg1" />
<f:loadBundle basename="properties.messages" var="msg" />
<f:loadBundle basename="properties.Label" var="lbl" />
I've ensured that Label.properties file exist under WEB-INF/classes/properties folder. But when i use it on my page:
<ui:define name="title">
<h:outputText value="#{msg.titleInput}" />
</ui:define> 
I don't get anything on the screen. It prints empty value.
Content of messages.properties file:
titleInput=Input
Also there is no property file named FWFUHWFEws but i don't get any error message on browser.
Aan some one tell me what's going on here? Am i doing anything wrong?

Thanks
Bhavesh

Edited by: bhavesh_shah on Dec 6, 2009 10:11 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2010
Added on Dec 6 2009
10 comments
620 views