You might try moving your "none" decorator so it comes after the
"default" one in decorators.xml.

Matt

On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
All:
     I am trying to switch decorator with Sitemesh and it did not work
so I tried to not use a decorator for JSP files under the /pages/test
folder so I chaged my decorator.xml to the following:

<decorators defaultdir="/decorators">
    <excludes>
        <pattern>/selenium/*</pattern>
        <pattern>/test/*</pattern>
    </excludes>

    <decorator name="none">
        <pattern>/test/*</pattern>
    </decorator>

    <decorator name="default" page="default.jsp">
        <pattern>/*</pattern>
    </decorator>
</decorators>

I am using Spring MVC for my presentation layer and so I have the
following url defined
in my Spring config file:

      <prop key="/test/testtext.html">filenameController</prop>
      <prop key="/test/testform.html">filenameController</prop>
      <prop key="/test/testimage.html">filenameController</prop>
      <prop key="/test/opensource.html">filenameController</prop>

I expected my pages to get rendered without a decorator but Sitemesh still uses
the default decorator.

Ok, so I tried to switch decorators so I created a new decorate called
"second" as shown below:

<decorators defaultdir="/decorators">
    <excludes>
        <pattern>/selenium/*</pattern>
    </excludes>

    <decorator name="second" page="second.jsp">
        <pattern>/test/*</pattern>
    </decorator>

    <decorator name="default" page="default.jsp">
        <pattern>/*</pattern>
    </decorator>
</decorators>

The default decorator gets used despite my url having the "/test/" pattern.

How can I switch decorators or not use a decorator for some of my pages?

--
- Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to