Announcement Announcement Module
Collapse
No announcement yet.
Spring portlet : mandatory to have one context file for each portlet ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring portlet : mandatory to have one context file for each portlet ?

    Hi,

    I am developping portlets with Spring MVC in a single war for Liferay. And I was wondering if I have to write one context file (containing
    <context:component-scan base-package="mypackage.portletA"/>
    <bean class="org.springframework.web.portlet.mvc.annotat ion.DefaultAnnotationHandlerMapping"/>
    <bean class="org.springframework.web.portlet.mvc.annotat ion.AnnotationMethodHandlerAdapter"/>)

    for each portlet ? or does it exist a simpler method ? like defining some kind of context ( based on the portlet name) through an annotation on the controllers ? or at least in a single xml file ?

    Thanks in advance
Working...
X