Announcement Announcement Module
Collapse
No announcement yet.
MessageSource null in Tapestry Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageSource null in Tapestry

    hi,
    I use tapestry and spring together.Now I can inject many beans defined in spring into Tapestry pages,but during using MessageSource in Tapestry ,i enccounter a problem.Here is the bean :
    <bean id="customerMessageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
    <property name="basename">
    <value>messages</value>
    </property>
    </bean>

    When i want to get and use this bean,it always return null.At first,i think it is because messages file path error,but wherever i place it,still get null.I do'nt know if there is special requirement for using messageSource in WEB layer.

    Thanks.
    karl.

  • #2
    Try renaming the bean "messageSource". The application context will automatically manage the messageSource, but it looks for that particular bean name.

    Comment

    Working...
    X