Thank you for that recommendation. Removing dashes did the trick. It's weird 
that it manifests itself only with nested layout component - works fine with 
'-' for one level of layering.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Freddy D.
Sent: Thursday, May 08, 2008 6:24 AM
To: stripes-users@lists.sourceforge.net
Subject: Re: [Stripes-users]layout question - is it possible to have nested 
layouts with nested layout components?

Just one recommendation: avoid using "spa ces" and "da-shes" in the
names of your components. Prefer "under_scores" or "CaMelCase",
it will save you from possibly getting problems that are difficult
to track down.

Cheers,
Freddy

On 07-05-2008 at 22:56, Leonard Gestrin wrote:
- Hello, 
- Please, validate if this is possible.
- 
- I have master-layout.jsp with component main-component.
[...]
- I have app-layout.jsp that I want to be rendered inside
- master-layout.jsp but also I want it to declare it's own component.
[...]
- I want jsps to be able to be rendered in place of sub-main-component of
- app-layout.jsp which in turn gets rendered in master-layout.jsp but it
- does not seem to work.
- 
- <stripes:layout-render name="/WEB-INF/jsp/layout/app-layout.jsp" >
-       <stripes:layout-component name=" sub-main-content ">
-               TESTING
-     </stripes:layout-component>
- </stripes:layout-render>
- 
- Is there a way to make it work this way or layout components can not be
- nested?

This should work exactly like that. At least it's the approach I used to
create a master layout, a menu layout and a further nested layout for
administrative page¿.

The master layout is even used for the login page as well. This works,
because I mapped the Stripe¿Filter for forward requests to my login.jsp and
loginError.jsp pages.

Oscar


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to