0
我有一个处理关税和关税类别的portlet。我使用的是Liferay 5.2.3和Spring Portlet框架。根据PortletPreferences显示不同的portlet页面
页面上添加时该portlet应在两种模式下工作:
- 显示主屏幕 - 的标准模式(MainScreenController)
- 显示资费类细节(TariffCategoryController) - 当一个portlet偏好“showCategoryDetail”设置为
我无法弄清楚如何改变/转发请求到TariffCategoryController当portlet preferenc e被设定。你能给我一个提示吗?谢谢!
@Controller("mainScreenController")
@RequestMapping("VIEW")
public class MainScreenController {
@RenderMapping
public String handleRenderRequest() {
return "mainScreen";
}
...
}
@Controller("tariffCategoryController")
@RequestMapping("VIEW")
public class TariffCategoryController {
@RenderMapping(params = "myaction=showTariffCategory")
public String handleRenderRequest() {
return "tariffCategory";
}
...
}
刚才注意到我已经回答了将近一年的问题。希望有人会发现它有用:)。 –