Show different portlet pages according to PortletPreferences
I've a portlet that handles tariffs and tariff categories. I'm using Liferay 5.2.3 and Spring Portlet framework. 


----------


The portlet should work in two modes when added on page:

 1. display main screen - the standard mode (MainScreenController)
 2. display tariff category detail (TariffCategoryController) - when a portlet preference "showCategoryDetail" is set

I cannot figure out how to change/forward the request to TariffCategoryController when the portlet preference is set. Can you please give me a hint? Thank you!

    @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";
        }

        ...
    }


Show different portlet pages according to PortletPreferences
===

I've a portlet that handles tariffs and tariff categories. I'm using Liferay 5.2.3 and Spring Portlet framework. 


----------


The portlet should work in two modes when added on page:

 1. display main screen - the standard mode (MainScreenController)
 2. display tariff category detail (TariffCategoryController) - when a portlet preference "showCategoryDetail" is set

I cannot figure out how to change/forward the request to TariffCategoryController when the portlet preference is set. Can you please give me a hint? Thank you!

    @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";
        }

        ...
    }

