Author: michiel
Date: 2009-06-30 15:44:53 +0200 (Tue, 30 Jun 2009)
New Revision: 36508
Modified:
mmbase/trunk/applications/taglib/src/main/examples/codesamples/cloud.jsp.1
mmbase/trunk/applications/taglib/src/main/examples/codesamples/context.jsp.5
mmbase/trunk/applications/taglib/src/main/examples/context.jsp
mmbase/trunk/applications/taglib/src/main/examples/nodemanagerinfo.jsp
Log:
fixed some examples
Modified:
mmbase/trunk/applications/taglib/src/main/examples/codesamples/cloud.jsp.1
===================================================================
--- mmbase/trunk/applications/taglib/src/main/examples/codesamples/cloud.jsp.1
2009-06-30 12:54:50 UTC (rev 36507)
+++ mmbase/trunk/applications/taglib/src/main/examples/codesamples/cloud.jsp.1
2009-06-30 13:44:53 UTC (rev 36508)
@@ -1,5 +1,5 @@
-<mm:cloud>
- <!-- show some data, in this case, the first 'typedef',
+<mm:cloud rank="administrator">
+ <!-- show some data, in this case, the first 'typedef',
because this type is availabe in every MMBase installation -->
<mm:listnodes type="typedef" max="1">
<mm:field name="name" /> : <mm:field name="description" />
Modified:
mmbase/trunk/applications/taglib/src/main/examples/codesamples/context.jsp.5
===================================================================
---
mmbase/trunk/applications/taglib/src/main/examples/codesamples/context.jsp.5
2009-06-30 12:54:50 UTC (rev 36507)
+++
mmbase/trunk/applications/taglib/src/main/examples/codesamples/context.jsp.5
2009-06-30 13:44:53 UTC (rev 36508)
@@ -1,5 +1,9 @@
-<mm:context scope="request">
+<mm:log>1</mm:log>
+<mm:context scope="request">
+<mm:log>2</mm:log>
<mm:import externid="abra">cada</mm:import>
<mm:write referid="abra" />
- <mm:include page="context.include.jsp" />
-</mm:context>
\ No newline at end of file
+ <mm:include page="codesamples/context.include.jsp" />
+</mm:context>
+
+
Modified: mmbase/trunk/applications/taglib/src/main/examples/context.jsp
===================================================================
--- mmbase/trunk/applications/taglib/src/main/examples/context.jsp
2009-06-30 12:54:50 UTC (rev 36507)
+++ mmbase/trunk/applications/taglib/src/main/examples/context.jsp
2009-06-30 13:44:53 UTC (rev 36508)
@@ -1,4 +1,4 @@
-<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"
+<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"
%><%...@page errorPage="error.jsp" session="false"%><html>
<mm:context scope="request">
<mm:content type="text/html">
@@ -68,11 +68,11 @@
</tr>
<tr><th colspan="2">There is also an attribute 'scope'</th></tr>
<tr valign="top">
- <td width="50%">
+ <td width="50%">
<pre><mm:include cite="true" page="codesamples/context.jsp.5"
escape="text/xml" /></pre>
where context.include.jsp:
<pre><mm:include cite="true" page="codesamples/context.include.jsp"
escape="text/xml" /></pre>
-
+
</td>
<td width="50%"><%...@include file="codesamples/context.jsp.5" %></td>
</tr>
@@ -83,7 +83,7 @@
for example that one of the variables 'hoi' must be used in an url:
</p>
<mm:url page="${hoi}.jsp">
- <mm:param name="some_variable">value</mm:param></mm:url>,
+ <mm:param name="some_variable">value</mm:param></mm:url>,
<mm:url page="test.${A.hoi}.jsp">
<mm:param name="some_variable">another_example</mm:param>
</mm:url>,
@@ -94,8 +94,8 @@
<hr />
<a href='<mm:url page="context2.jsp" referids="hoi">
<mm:param name="hello">saluton</mm:param>
- </mm:url>'>next page</a>
+ </mm:url>'>next page</a>
</body>
</html>
</mm:content>
-</mm:context>
\ No newline at end of file
+</mm:context>
Modified: mmbase/trunk/applications/taglib/src/main/examples/nodemanagerinfo.jsp
===================================================================
--- mmbase/trunk/applications/taglib/src/main/examples/nodemanagerinfo.jsp
2009-06-30 12:54:50 UTC (rev 36507)
+++ mmbase/trunk/applications/taglib/src/main/examples/nodemanagerinfo.jsp
2009-06-30 13:44:53 UTC (rev 36508)
@@ -1,7 +1,7 @@
-<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"
+<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"
%><%...@page errorPage="error.jsp" session="false"%>
<mm:content type="text/html">
-<mm:cloud>
+<mm:cloud rank="administrator">
<html>
@@ -32,4 +32,4 @@
</html>
</mm:cloud>
-</mm:content>
\ No newline at end of file
+</mm:content>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs