struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hauschel Fred" <Fred.Hausc...@ixtra.com>
Subject AW: Tile in Tile -> possible?
Date Fri, 11 Mar 2005 11:58:12 GMT
Hy,

yes it works, but only for one hierarchy

 

Base Definition:

 

<tiles-definitions>

    <definition name=".cpfDefinition" path="/cpfLayout.jsp" >

      <put name="de.unknown.cp.cpfextension" value="/cpfdefault.jsp"/>

    </definition>

</tiles-definitions>

 

First hierarchy:

<tiles-definitions>

    <definition name="de.unknown.cp.topmenue" extends=".cpfDefinition">

      <put name="de.unknown.cp.cpfextension" value="de.unknown.cp.topmenue.component" type="definition"
/>

    </definition>

 

    <definition name="de.unknown.cp.topmenue.component" path="/plugins/topmenue/topmenueLayout.jsp"
>

      <put name="de.unknown.cp.topmenue.top" value="/plugins/topmenue/start.jsp"/>

      <put name="de.unknown.cp.topmenue.bottom" value="/plugins/topmenue/start.jsp"/>

    </definition>

</tiles-definitions>

 

Second hierarchy:

<tiles-definitions>

 

    <definition name="de.unknown.cp.startbildschirm" extends="de.unknown.cp.topmenue.component">

            <put name="de.unknown.cp.topmenue.bottom" value="de.unknown.cp.startbildschirm.component"
type="definition" />

    </definition>

 

    <definition name="de.unknown.cp.startbildschirm.component" path="/plugins/startbildschirm/startbildschirmLayout.jsp">

      <put name="de.unknown.cp.startbildschirm.leftmenue" value="/plugins/startbildschirm/menue.jsp"/>

            <put name="de.unknown.cp.startbildschrim.content" value="/plugins/startbildschirm/content.jsp"/>

    </definition>

 

</tiles-definitions>

 

So the definition "de.unknown.cp.topmenue" extending ".cpfDefinition" but delegates to "de.unknown.cp.topmenue.component".

"de.unknown.cp.startbildschirm" extends "de.unknown.cp.topmenue.component" but doestn't know
".cpfDefinition" and my Base get lost.

Here a model for better understanding:

 

 

Cpf, topmenue and startbildschirm are different "independend" Struts Modules.

 

Any Idea?

 

Thanks Fredy

 

-----Ursprüngliche Nachricht-----
Von: hermod.opstvedt@dnbnor.no [mailto:hermod.opstvedt@dnbnor.no] 
Gesendet: Freitag, 11. März 2005 12:04
An: user@struts.apache.org
Betreff: RE: Tile in Tile -> possible?

 

Hi

 

What you are describing works - I have several apps where I do this sort

of thing

 

Hermod

 

-----Original Message-----

From: Hauschel Fred [mailto:Fred.Hauschel@ixtra.com]

Sent: Friday, March 11, 2005 10:12 AM

To: Struts Users Mailing List

Subject: Tile in Tile -> possible?

 

 

Hey,

 

is it possible to extend a Definition and overload a tile by a new

definition?

 

 

 

What I want is:

 

My Base Struts Module should have a simple baseDefinition:

 

 

 

<tiles-definitions>

 

    <definition name=".cpfDefinition" path="/cpfLayout.jsp" >

 

      <put name="de.sagIchNich.cp.cpfextension"

value="/cpfdefault.jsp"/>

 

    </definition>

 

</tiles-definitions>

 

 

 

This base should be extended by another Module.

 

 

 

<tiles-definitions>

 

    <definition name="de.sagIchNich.cp.topmenue"

extends=".cpfDefinition">

 

      <put name="de.sagIchNich.cp.cpfextension"

value="de.sagIchNich.cp.topmenue.componen"/>

 

    </definition>

 

 

 

    <definition name="de.sagIchNich.cp.topmenue.component"

path="/plugins/topmenue/topmenueLayout.jsp" >

 

      <put name="de.sagIchNich.cp.topmenue.top"

value="/plugins/topmenue/start.jsp"/>

 

            <put name="de.sagIchNich.cp.topmenue.bottom"

value="/plugins/topmenue/start.jsp"/>

 

    </definition>

 

</tiles-definitions>

 

 

 

But I think that is not possible.

 

Is there another way to something like this?

 

 

 

Maybe:

 

<tiles-definitions>

 

    <definition name="de.sagIchNich.cp.topmenue"

extends=".cpfDefinition">

 

      <put name="de.sagIchNich.cp.cpfextension" value="subLayout.jsp"/>

 

<put name="sublayoutTile1" value="first.jsp"/>

 

<put name="sublayoutTile2" value="second.jsp"/>

 

    </definition>

 

</tiles-definitions>

 

 

 

 

 

Thanks Fredy

 

 

 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

 

This email with attachments is solely for the use of the individual or

entity to whom it is addressed. Please also be aware that the DnB NOR Group

cannot accept any payment orders or other legally binding correspondence with

customers as a part of an email. 

 

This email message has been virus checked by the virus programs used

in the DnB NOR Group.

 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: user-unsubscribe@struts.apache.org

For additional commands, e-mail: user-help@struts.apache.org

 


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message