Title: Nachricht
I mailed you a modified demo (with org.apache.**-clazzes)
that demo uses also tiles-def in JSP,
 
on my box that sample works fine.
 
HTH,
Matthias
-----Original Message-----
From: Lorinda Swick [mailto:[EMAIL PROTECTED]
Sent: Friday, December 17, 2004 7:43 PM
To: [EMAIL PROTECTED]
Subject: defining tiles in .jsp's and not in tiles.xml

Hi,

 

I’ve downloaded the below tiles demo posted by Matthias-Wessendorf in this thread :   http://forum.java.sun.com/thread.jspa?threadID=565558&start=0&tstart=0 .  

 

http://www.apache.org/~matzew/myfacesTilesSample.war

 

 

I tried it with MyFaces 1.07b and ran into an issue with defining tiles in the jsp directly without declaring a definition in the tiles.xml.

 

Here is the root tile from which all the other demo tiles extend, tiles.jsp:

 

<%@ taglib prefix="t" uri="/WEB-INF/struts-tiles.tld" %>

<t:definition id="layout.standard" page="/template.jsp" scope="request">

 

  <t:put name="header" value="/header.jsp" />

  <t:put name="menu" value="/menu.jsp" />

  <t:put name="footer" value="/footer.jsp" />

</t:definition>

 

I received the ‘Cannot find tiles definition for…” error.   To get the demo to work, I had to define everything in tiles.xml.   

 

Is it expected to only use tiles declared in tiles.xml with myFaces?

 

 

Lorinda

 

 

 

 

 

 

 

 

 

Reply via email to