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

Reply via email to