Hi Guys,
I know this has been explained over and over here, but I cannot get it to work.
I am new to Spring and porting an application to Spring (2.5) MVC/ Webflow 2.
I use properties file only to keep strings out of the app, there is no internationalization yet. In order for our CMS to be able to edit properties files, the file is not deployed with the app, it lives on a apache server in front of the app server... at the moment, I only try to get it work the standart way before I go further.
neither this
or thisCode:<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basenames"> <list> <value>/WEB-INF/messages</value> </list> </property> </bean>
works.Code:<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basename" value="/WEB-INF/messages"/> </bean>
I do not even get any error. I tried to put the file (messages.properties) in "/WEB-INF", "/WEB-INF/resources", or the src folder (classpath loading). No luck, no errors, no messages.
in my xhtml file where I want to show a message, it looks like that:
using this namespaces in the header (its a fragment, the top page menu)Code:<spring:message code="misc.topnav.link.home" text="HOME" />
I would expect, that the text "HOME" would be shown if no message was found for the code, but nothing is ever shown. no errors, no message and no default message defined with the text attribute, just nothing.Code:<ui:composition 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" xmlns:spring="http://www.springframework.org/tags" xmlns:sf="http://www.springframework.org/tags/faces">
used struts before, if a message was not found, it alwasy showed the code/key surrounded by ???.
does anyone have a clou what I am doing wrong here?
Cheers, Mulder


Reply With Quote