You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2007/02/23 15:39:00 UTC
svn commit: r510961 - in
/tiles/examples/trunk/tiles-showcase/src/main/webapp:
layouts/tabsLayout.jsp tutorial/definitionTag.jsp
tutorial/extendedDefinitionTag.jsp
Author: apetrelli
Date: Fri Feb 23 06:38:59 2007
New Revision: 510961
URL: http://svn.apache.org/viewvc?view=rev&rev=510961
Log:
TILESSHOW-7
Fixed some wrong class references.
Modified:
tiles/examples/trunk/tiles-showcase/src/main/webapp/layouts/tabsLayout.jsp
tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/definitionTag.jsp
tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/extendedDefinitionTag.jsp
Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/layouts/tabsLayout.jsp
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/layouts/tabsLayout.jsp?view=diff&rev=510961&r1=510960&r2=510961
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/layouts/tabsLayout.jsp (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/layouts/tabsLayout.jsp Fri Feb 23 06:38:59 2007
@@ -57,7 +57,7 @@
}
// Check selectedIndex bounds
if( selectedIndex < 0 || selectedIndex >= tabList.size() ) selectedIndex = 0;
- String selectedBody = ((org.apache.struts.tiles.beans.MenuItem)tabList.get(selectedIndex)).getLink(); // Selected body
+ String selectedBody = ((org.apache.tiles.beans.MenuItem)tabList.get(selectedIndex)).getLink(); // Selected body
%>
@@ -68,7 +68,7 @@
<td>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
-<logic:iterate id="tab" name="tabList" type="org.apache.struts.tiles.beans.MenuItem" >
+<logic:iterate id="tab" name="tabList" type="org.apache.tiles.beans.MenuItem" >
<% // compute href
String href = request.getRequestURI() + "?"+parameterName + "=" + index;
// Don't add request URI prefix , but let the client compute the original URL
@@ -104,7 +104,7 @@
<tr>
<td width="10" bgcolor="<%=selectedColor%>"> </td>
<td>
- <tiles:insertAttribute name="<%=selectedBody%>" flush="true" />
+ <tiles:insertTemplate template="<%=selectedBody%>" flush="true" />
</td>
<td width="10" bgcolor="<%=selectedColor%>"> </td>
</tr>
Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/definitionTag.jsp
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/definitionTag.jsp?view=diff&rev=510961&r1=510960&r2=510961
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/definitionTag.jsp (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/definitionTag.jsp Fri Feb 23 06:38:59 2007
@@ -23,7 +23,7 @@
--%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
-<tiles:definition id="definitionName" template="/tutorial/basic/myLayout.jsp" >
+<tiles:definition name="definitionName" template="/tutorial/basic/myLayout.jsp" >
<tiles:putAttribute name="title" value="My first page" />
<tiles:putAttribute name="header" value="/tutorial/common/header.jsp" />
<tiles:putAttribute name="footer" value="/tutorial/common/footer.jsp" />
Modified: tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/extendedDefinitionTag.jsp
URL: http://svn.apache.org/viewvc/tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/extendedDefinitionTag.jsp?view=diff&rev=510961&r1=510960&r2=510961
==============================================================================
--- tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/extendedDefinitionTag.jsp (original)
+++ tiles/examples/trunk/tiles-showcase/src/main/webapp/tutorial/extendedDefinitionTag.jsp Fri Feb 23 06:38:59 2007
@@ -23,7 +23,7 @@
--%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
-<tiles:definition id="definitionName" extends="myFirstDefinition" >
+<tiles:definition name="definitionName" extends="myFirstDefinition" >
<tiles:putAttribute name="title" value="My first extended definition tag page" />
</tiles:definition>