You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by si...@apache.org on 2006/06/04 21:41:33 UTC

svn commit: r411592 - in /lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF: jsp/decorator.jsp tiles-defs.xml

Author: siren
Date: Sun Jun  4 12:41:33 2006
New Revision: 411592

URL: http://svn.apache.org/viewvc?rev=411592&view=rev
Log:
add base definition for allowing layout (view) and logic (controller class) to be changed independently

Added:
    lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp
Modified:
    lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml

Added: lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp?rev=411592&view=auto
==============================================================================
--- lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp (added)
+++ lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp Sun Jun  4 12:41:33 2006
@@ -0,0 +1,3 @@
+<%@ include file="common.jsp"%>
+<tiles:useAttribute name="decorator"/>
+<c:import url="${decorator}"/>

Modified: lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml?rev=411592&r1=411591&r2=411592&view=diff
==============================================================================
--- lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml (original)
+++ lucene/nutch/trunk/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml Sun Jun  4 12:41:33 2006
@@ -125,5 +125,15 @@
 	<definition name="preferencesSavePage" extends="preferencesPage">
 		<put name="action" value="save" />
 	</definition>
-
+	
+	<!-- 
+	     Decorated definition can be used to split the logic and ui configuration apart so that
+	     one at a time can be changed 
+	     
+	     The layout (view) can be selected with attribute named "decorator"
+	 -->
+	<definition name="decoratedDefinition" path="/WEB-INF/jsp/decorator.jsp">
+ 	  <put name="decorator" value="/WEB-INF/jsp/footer.jsp"/>
+ 	</definition>
+ 	
 </tiles-definitions>