struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hauschel Fred" <Fred.Hausc...@ixtra.com>
Subject Tile in Tile -> possible?
Date Fri, 11 Mar 2005 09:11:56 GMT
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


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