Any reason to not just override the messages.properties file itself? Cheers, Scott
On Mon, Oct 22, 2012 at 5:20 PM, Jeffrey Simpson <[email protected]> wrote: > So I had to add some of my own message strings to the casLoginView.jsp. I > did not want to have my own copy of each of the message bundles. I made > my own message bundles no problem. > > I have to change where the messageSource is defined. After my change tt > looks like: > > <!-- Message source for this context, loaded from localized > "messages_xx" files --> > <bean id="messageSource" > class="org.springframework.context.support.ResourceBundleMessageSource"> > <property name="basenames"> > <list> > <value>yfu_messages</value> > <value>messages</value> > </list> > > </property> > </bean> > > I have 2 questions: > > 1. Since this configuration normally lives in the applicationContext.xml > file do I need to copy it into my overlay project and change it there or > can I override it some how using some Spring trick? > > 2. I found that by putting my file base first in the list I can override > values the default values. Does anyone know if this is deterministic or > did it just work by happenstance? > > > > > > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
