Hi
I made it working it took me long time mainly because of my stupidity and
little confusing dependencies between shale and tiles versions ..:) thanks for
help to everybody.
Here are important parts of my sample application may be useful for somebody:
Shale with tiles.
You must use version of tiles which is bundled with shale other versions will
not work.
With default shale web.xml from blank shale application page firstTest will be
visible at url /firstTest.faces
web.xml (only part for tiles)
<!-- Tiles -->
<context-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
<listener-class>
org.apache.tiles.listener.TilesListener
</listener-class>
</listener>
tiles.xml
<tiles-definitions>
<definition name="test.definition"
template="/template/template.jsp">
<put name="header" value="/common/header.jsp"/>
</definition>
<definition name="/firstTest" extends="test.definition" >
</definition>
</tiles-definitions>
template.jsp
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://shale.apache.org/core" prefix="s"%>
<f:view>
<html>
<head>
<head>
<body>
test
<tiles:attribute name="header" flush="false"/> <!-- tiles documentation
talks about insertAtribute tag but that tag is not available with tiles
bundeled to shale.-->
</body>
</html>
</f:view>
header.jsp
header
-----Original Message-----
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 11:09 AM
To: [email protected]
Subject: Re: shale 1.0.4 and tiles
2007/10/4, Pavel Savara <[EMAIL PROTECTED]>:
>
> Hi ,
> I am trying to build it with newer tiles version but i am getting error.
> That class was moved to another package. Nightly shale is using same old
> tiles as release 1.0.4.
Shale 1.0.4 does not support the latest version of Tiles, you HAVE to use
the version bundled with Shale itself.
Antonio