Thanks a lot for the info, Barry!
Will definitely check it out.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Customizing-the-Layout-Component-tp4234938p4258643.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
If you have a Blue/Red that inherit from BasePage I'd use a Layout
Environmental. Since you have a BasePage you can create the Environmental in
your BasePage class. The Red/Blue pages should be able to set the color
property and then the layout component can retrieve it. That way only those 4
c
On Mon, 21 Mar 2011 15:22:30 -0300, stephanos2k
wrote:
Thanks for the quick response!
Hm, I didn't know that this would break the class hierarchy.
It doesn't.
I understand the issue like this (hope it works in HTML/Mail):
Layout.tml > Page.tml --> Result <-- Page.java < BasePageRed.java <
Thanks for the quick response!
Hm, I didn't know that this would break the class hierarchy.
I understand the issue like this (hope it works in HTML/Mail):
Layout.tml > Page.tml --> Result <-- Page.java < BasePageRed.java <
BasePage.java
[read P]
On Mon, 21 Mar 2011 14:27:35 -0300, stephanos2k
wrote:
In my Layout I'd like to distinguish between 2 states (let's just say
red or blue). Those are known/set by each page individually - it
inherits from BasePageRed or BasePageBlue (which go back to BasePage
where the parameter Col is
d