1 Reply Latest reply on Feb 9, 2006 11:10 AM by Woodler

    Layout Strategy

    pmn92 Novice

      The layoutstrategy operates at the html page level, correct? so, if write my own strategy it becomes possible to propagate a parameter to every portlet by using the setAttribute() method of the PortletContext correct? In addition to that I can access to the http request parameters using the method getHttpServletRequest()...

      If this is true, it is perfect for my need. Could you confirm?

      Thanks

        • 1. Re: Layout Strategy
          Woodler Expert

           

          "PMO" wrote:

          The layoutstrategy operates at the html page level, correct?

          --> yes

          "PMO" wrote:

          so, if write my own strategy it becomes possible to propagate a parameter to every portlet by using the setAttribute() method of the PortletContext correct?

          --> no. the portlet context in the strategy is not the javax.portlet.PortletContext. It is a strategy specific context to propagate the things like the region name, and order in which the portlet resides.

          "PMO" wrote:

          In addition to that I can access to the http request parameters using the method getHttpServletRequest()...

          --> yes. the StrategyContext allows access to the HttpRequest