You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/03/11 14:21:23 UTC

svn commit: r157075 - in lenya/trunk/src/webapp/lenya/usecases/templates: ./ messages.jx

Author: andreas
Date: Fri Mar 11 05:21:23 2005
New Revision: 157075

URL: http://svn.apache.org/viewcvs?view=rev&rev=157075
Log:
moved message output to dedicated JX template

Added:
    lenya/trunk/src/webapp/lenya/usecases/templates/
    lenya/trunk/src/webapp/lenya/usecases/templates/messages.jx

Added: lenya/trunk/src/webapp/lenya/usecases/templates/messages.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/templates/messages.jx?view=auto&rev=157075
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/templates/messages.jx (added)
+++ lenya/trunk/src/webapp/lenya/usecases/templates/messages.jx Fri Mar 11 05:21:23 2005
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: archive.jx 123421 2004-12-27 16:02:27Z gregor $ -->
+
+<jx:template name="messages"
+           xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+
+  <ul>
+    
+    <jx:forEach var="message" items="${usecase.getErrorMessages()}">
+      <li>
+        <i18n:text>
+          <jx:out value="${message}"/>
+        </i18n:text>
+      </li>
+    </jx:forEach>
+    
+    <jx:forEach var="message" items="${usecase.getInfoMessages()}">
+      <li>
+        <i18n:text>
+          <jx:out value="${message}"/>
+        </i18n:text>
+      </li>
+    </jx:forEach>
+    
+  </ul>
+
+</jx:template>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org