You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Lorinda Swick <ls...@intalio.com> on 2004/12/17 19:43:25 UTC

defining tiles in .jsp's and not in tiles.xml

Hi,

 

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

 

 <http://www.apache.org/~matzew/myfacesTilesSample.war>
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

 

 

 

 

 

 

 

 

 


RE: defining tiles in .jsp's and not in tiles.xml

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
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:lswick@intalio.com] 
Sent: Friday, December 17, 2004 7:43 PM
To: myfaces-user@incubator.apache.org
Subject: defining tiles in .jsp's and not in tiles.xml



Hi,

 

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

 

 <http://www.apache.org/~matzew/myfacesTilesSample.war>
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