点击浏览器后,控件不会去任何地方
正如此链接所示 after back button, portlet does not go in to processaction
在Portlet.xml中添加了wps.multiple.action.execution = true,仍然是url正在缓存&不发布新网址。我正在使用带有JSR 168规范的IBM Portal服务器6.1。
我的Portlet.xml如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" id="com.ibm.faces.portlet.FacesPortlet.c82f6e6464">
<portlet>
<portlet-name>BrowserBackPortle</portlet-name>
<display-name xml:lang="en">BrowserBackPortle</display-name>
<display-name>BrowserBackPortle</display-name>
<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>wps.multiple.action.execution</name>
<value>true</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>com.ibm.browserbackportle.nl.BrowserBackPortlePortletResource</resource-bundle>
<portlet-info>
<title>BrowserBackPortle</title>
<short-title>BrowserBackPortle</short-title>
<keywords>BrowserBackPortle</keywords>
</portlet-info>
</portlet>
我试图在点击浏览器时调用Spring拦截器来拦截请求。控制没有在哪里,它没有击中拦截器。我的Spring拦截器如下:
public class RxFlowInterceptor extends HandlerInterceptorAdapter {
@Override
public boolean preHandleRender(final RenderRequest request, final RenderResponse response,
final Object handler)
throws Exception {
System.out.println("---------------PREHANDLERENDER-----------------");
return super.preHandleRender(request, response, handler);
}
}