Update of /var/cvs/contributions/didactor2/src/core/metainf/tags/di/core
In directory james.mmbase.org:/tmp/cvs-serv30006/tags/di/core

Modified Files:
        menuitem.tagx 
Added Files:
        has.tagx 
Removed Files:
        may.tagx 
Log Message:
implement usercontext stuff as 'di:has'


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/metainf/tags/di/core


has.tagx is new



Index: menuitem.tagx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/metainf/tags/di/core/menuitem.tagx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- menuitem.tagx       21 Jan 2008 17:31:53 -0000      1.3
+++ menuitem.tagx       21 Jan 2008 18:31:02 -0000      1.4
@@ -8,15 +8,15 @@
   <jsp:directive.attribute name="type"        />
   <jsp:directive.attribute name="scope"       />
 
-  <c:catch var="exception">
+  <mm:treehaspage page="/${component.name}/cockpit/menuitem.jsp" 
objectlist="$includePath">
     <mm:treeinclude notfound="exception" 
page="/${component.name}/cockpit/menuitem.jsp" objectlist="$includePath" 
referids="$referids">
       <mm:param name="name">${component.name}</mm:param>
       <mm:param name="number">${component.number}</mm:param>
       <mm:param name="type">${empty type ? 'div' : type}</mm:param>
       <mm:param name="scope">${empty scope ? 'provider' : scope}</mm:param>
     </mm:treeinclude>
-  </c:catch>
-  <c:if test="${! empty exception}">
+  </mm:treehaspage>
+  <mm:treehaspage page="/${component.name}/cockpit/menuitem.jsp" 
objectlist="$includePath" inverse="true">
     <!-- Default implementation -->
     <mm:treehaspage page="${component.name}/index.jspx" 
objectlist="$includePath">
       <mm:treefile page="/${component.name}/"
@@ -34,6 +34,6 @@
         </c:otherwise>
       </c:choose>
     </mm:treehaspage>
-  </c:if>
+  </mm:treehaspage>
 </jsp:root>
 


_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to