-
Jan 3rd, 2006, 12:35 PM
#1
PortletModeHandlerMapping getting invoked for all portlets.
I am facing a issue where I do see that PortletModeHandlerMapping's handler gets called all the time before it decided the correct handler of PortletModeParameterHandlerMapping. I have taken the sample books example.
Here booksController gets invoked everytime Submit occurs.
Is it the correct behaviour.
<bean id="parameterMappingInterceptor" class="org.springframework.web.portlet.handler.Par ameterMappingInterceptor"/>
<bean id="portletModeParameterHandlerMapping" class="org.springframework.web.portlet.handler.Por tletModeParameterHandlerMapping">
<property name="order" value="10"/>
<property name="interceptors">
<list>
<ref bean="parameterMappingInterceptor"/>
</list>
</property>
<property name="portletModeParameterMap">
<map>
<entry key="view">
<map>
<entry key="books"><ref bean="booksController"/></entry>
<entry key="incrementBook"><ref bean="bookIncrementController"/></entry>
<entry key="viewBook"><ref bean="bookViewController"/></entry>
<entry key="editBook"><ref bean="bookEditController"/></entry>
<entry key="deleteBook"><ref bean="bookDeleteController"/></entry>
<entry key="addBook"><ref bean="bookAddController"/></entry>
</map>
</entry>
</map>
</property>
</bean>
<bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.Por tletModeHandlerMapping">
<property name="order" value="20"/>
<property name="portletModeMap">
<map>
<entry key="view"><ref bean="booksController"/></entry>
<entry key="help"><ref bean="booksHelpController"/></entry>
</map>
</property>
</bean>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules