Hi, I have a similar requirement for our project where we plan to 'white label' an application and brand it in different ways. Have been thinking about a way of reusing pages by changing the layout dynamically - for example triggered by domain names, but we haven't started attempting to implement anything yet.
Howard posted some exiting news about 'Tapx Dynamic' which might be of help in this area. http://tapestryjava.blogspot.com/2010/05/tapestry-happenings-52-beta-soon-new.html Other than that I'm very interested to hear if anyone else have interesting input to your problem... magnus 2010/6/24 tux4ever <geri-gla...@gmx.net> > > Dear listeners! > > I have a module with pages and components which is used by some other > applications. Every application has its own style, defined in a layout > component. Is there a possibility that this module can use the layout > component of every other application at runtime? > > For better understanding see the example below: > In the module I have following page definition: > Module.tml > <div t:id="layout" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"> > <Body Content..../> > </div> > > Module.java > public class Module{ > @Component > private Layout layout; > ... > } > > Layout.tml > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" > <div header>...</div> > <body> > <t:body /> > </body > </html> > > Now this module is used by different applications. > Application 1 defines its own layout component and application 2 defines > another layout component. > > Is there a way to override the LayoutComponent of the Module at runtime > (delegate comes in my mind...), allthough the Module has no dependency on > the other applications, but the other applications include the Module as a > maven dependency. > > Best regards, > Gerry > -- > View this message in context: > http://old.nabble.com/Layout-Component-tp28983922p28983922.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >