Update of /var/cvs/applications/taglib/blocks/test
In directory james.mmbase.org:/tmp/cvs-serv14434
Modified Files:
node.jspx
Log Message:
it seems that a few things are broken. Catching the xception to not completely
ruin the page
See also: http://cvs.mmbase.org/viewcvs/applications/taglib/blocks/test
Index: node.jspx
===================================================================
RCS file: /var/cvs/applications/taglib/blocks/test/node.jspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- node.jspx 18 Apr 2008 16:26:46 -0000 1.1
+++ node.jspx 18 Apr 2008 16:34:05 -0000 1.2
@@ -62,7 +62,12 @@
<mm:field name="wrap(title, 10)" escape="p" />
<pre><mm:field name="wrap(title,10)" /></pre>
-->
+ <c:catch var="exception_info">
<mm:field name="info()" escape="text/html" />
+ </c:catch>
+ <c:if test="${! empty exception_info}">
+ WRONG, field name="info()" throw exception ${exception_info}
+ </c:if>
</mm:node>
@@ -151,7 +156,10 @@
Reusing the listrelations (inside the node):
</p>
<mm:listrelations referid="listrelations">
+ <c:catch var="exception_relatednode">
<mm:field name="gui()" />/<mm:relatednode><mm:field name="url"
/></mm:relatednode>
+ </c:catch>
+ <c:if test="${! empty exception_relatednode}">WRONG!! Exception:
${exception_relatednode}<br /></c:if>
<br />
</mm:listrelations>
</mm:node>
@@ -159,7 +167,10 @@
Reusing the listrelations (outside the node):
</p>
<mm:listrelations referid="listrelations">
+ <c:catch var="exception_relatednodes2">
<mm:field name="gui()" />/<mm:relatednode><mm:field name="url"
/></mm:relatednode>
+ </c:catch>
+ <c:if test="${! empty exception_relatednode2}">WRONG!! Exception:
${exception_relatednode2}<br /></c:if>
<br />
</mm:listrelations>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs