Change decorator in the request

Jonathan Barbero <[email protected]> Wed, 10 Mar 2010 13:10:20 -0300
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
--000e0cdf16621cc7bc0481748aae
Content-Type: text/plain; charset=ISO-8859-1

Hi,

 I'm trying to change the decorator selection in the request, before
sitemesh renders the page.

For example, the request has a parameter that selects an specific decorator,
in the servlet I want to override that election with other decorator.
I could use the SessionDecoratorMapper before the PageDecoratorMapper so I
could set in the session the decorator that I want that Sitemesh uses,
ignoring the parameter. The problem with this is that I don't want that
another request uses the decorator that I set in the session. The best
solution is to set an attribute in the request that override the parameter
selection, but I didn't find any DecoratorMapper that extracts the decorator
to use from a request's attribute.

 Any tip?

 Thanks in advance,
  Jonathan.

--000e0cdf16621cc7bc0481748aae
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>=A0I&#39;m trying to change the decorator selection in the reque=
st, before sitemesh renders the page.<br><br>For
example, the request has a parameter that selects an specific
decorator, in the servlet I want to override that election with other
decorator.<br>
I could use the SessionDecoratorMapper before the PageDecoratorMapper
so I could set in the session the decorator that I want that Sitemesh
uses, ignoring the parameter. The problem with this is that I don&#39;t
want that another request uses the decorator that I set in the session.
The best solution is to set an attribute in the request that override
the parameter selection, but I didn&#39;t find any DecoratorMapper that
extracts the decorator to use from a request&#39;s attribute.<br>
<br>=A0Any tip?<br><br>=A0Thanks in advance,<br><font color=3D"#888888">=A0=
 Jonathan.</font>

--000e0cdf16621cc7bc0481748aae--