Browse Source

adding resources to portlet/context/WEB-INF

conversation
Chris Beams 16 years ago
parent
commit
4a149d00f6
  1. 24
      org.springframework.testsuite/src/test/java/org/springframework/web/portlet/context/WEB-INF/resources/messageSource.xml
  2. 12
      org.springframework.testsuite/src/test/java/org/springframework/web/portlet/context/WEB-INF/resources/themeSource.xml

24
org.springframework.testsuite/src/test/java/org/springframework/web/portlet/context/WEB-INF/resources/messageSource.xml

@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="useCodeAsDefaultMessage">
<value>${useCodeAsDefaultMessage}</value>
</property>
<property name="basenames">
<list>
<value>org/springframework/web/portlet/context/WEB-INF/${message-file}</value>
<value>org/springframework/web/portlet/context/WEB-INF/more-context-messages</value>
</list>
</property>
</bean>
<bean id="messageSourceString" factory-bean="messageSource" factory-method="toString"/>
<bean id="currentTimeMillis" class="javax.management.ObjectName" factory-method="getInstance">
<constructor-arg value="${objectName}"/>
</bean>
</beans>

12
org.springframework.testsuite/src/test/java/org/springframework/web/portlet/context/WEB-INF/resources/themeSource.xml

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="themeSource" class="org.springframework.ui.context.support.ResourceBundleThemeSource">
<property name="basenamePrefix">
<value>${theme-base}</value>
</property>
</bean>
</beans>
Loading…
Cancel
Save