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