Update of /var/cvs/html/mmbase/components/test
In directory james.mmbase.org:/tmp/cvs-serv18248

Modified Files:
        urls.jspx 
Log Message:



See also: http://cvs.mmbase.org/viewcvs/html/mmbase/components/test


Index: urls.jspx
===================================================================
RCS file: /var/cvs/html/mmbase/components/test/urls.jspx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- urls.jspx   9 Aug 2008 11:29:47 -0000       1.16
+++ urls.jspx   20 Oct 2008 17:11:16 -0000      1.17
@@ -79,47 +79,50 @@
     <mm:import id="test2"><mm:url absolute="context" 
page="/justsomeurl"><mm:param name="a" value="A" /></mm:url></mm:import>
     <p>${test2 eq '/justsomeurl?a=A' ? 'ok' : 'NOT ok'}: '${test2}' EQ 
'/justsomeurl' </p>
 
+    <!--
     <mm:component name="test" block="suburls" />
     <mm:component name="test" block="suburls" />
-
+    -->
 
     <h2>Framework params</h2>
 
-    <mm:link page="view_source" absolute="context">
+    <mm:link absolute="context">
       <mm:frameworkparam name="component">core</mm:frameworkparam>
       <mm:frameworkparam name="category">foo</mm:frameworkparam>
+      <mm:frameworkparam name="block">view_source</mm:frameworkparam>
       <mm:param name="page">index.jspx</mm:param>
-      <p>${_ eq '/mmbase/foo/core/view_source?1.2:page=index.jspx' ? 'ok' : 
'NOT ok'}: '${_}'</p>
+      <p>${_ eq '/mmbase/foo/core/view_source?1:page=index.jspx' ? 'ok' : 'NOT 
ok'}: '${_}'</p>
     </mm:link>
 
-    <mm:link page="servers" absolute="context">
+    <mm:link absolute="context">
       <mm:frameworkparam name="component">core</mm:frameworkparam>
       <mm:frameworkparam name="category">foo</mm:frameworkparam>
+      <mm:frameworkparam name="block">servers</mm:frameworkparam>
       <p>${_ eq '/mmbase/foo/core/servers' ? 'ok' : 'NOT ok'}: '${_}'</p>
     </mm:link>
 
     <p>
       <c:catch var="not_exist">
-        <mm:link page="does_not_exists" absolute="context">
+        <mm:link id="no_link" absolute="context">
           <mm:frameworkparam name="component">core</mm:frameworkparam>
-          <jsp:text>NOT ok: ${_}</jsp:text>
+          <mm:frameworkparam name="block">does_not_exists</mm:frameworkparam>
+          <jsp:text>${_}</jsp:text>
         </mm:link>
       </c:catch>
       <c:if test="${empty not_exist}">
-        <jsp:text> Should have thrown exception, becuase the specified  block 
does not exist</jsp:text>
+        <jsp:text>NOT ok: Should have thrown exception, because the specified  
block does not exist</jsp:text>
       </c:if>
       <c:if test="${not empty not_exist}">
-        <jsp:text>Ok: ${not_exist}</jsp:text>
+        <jsp:text>ok: ${not_exist}</jsp:text>
       </c:if>
     </p>
 
 
     <h2>Internal</h2>
 
-
-
+    <!--
     <mm:include debug="xml" referids="a" 
page="/mmbase/components/test/included.jspx" />
-
+    -->
     <h2>form tag</h2>
     <mm:form page="/justsomeurl" mode="url" absolute="context">
       <p>${_ eq '/justsomeurl' ? 'ok' : 'NOT ok'}: ${_}</p>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to