Update of /var/cvs/html/mmbase/components/core In directory james.mmbase.org:/tmp/cvs-serv669
Modified Files: functions-modules.jspx functions-sets.jspx Log Message: added some codesamples See also: http://cvs.mmbase.org/viewcvs/html/mmbase/components/core Index: functions-modules.jspx =================================================================== RCS file: /var/cvs/html/mmbase/components/core/functions-modules.jspx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- functions-modules.jspx 7 Jan 2009 20:56:01 -0000 1.1 +++ functions-modules.jspx 8 Jan 2009 00:15:17 -0000 1.2 @@ -1,4 +1,4 @@ -<ul +<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" @@ -7,6 +7,24 @@ > <jsp:output omit-xml-declaration="true" /> + <div class="codesample"> + <p>Simple example of how to use a module-function in JSP</p> + <pre> + <mm:escape> + <![CDATA[ + <mm:functioncontainer> + <mm:param name="signature">${'$'}{signature}</mm:param> + <mm:nodefunction module="sendmail" name="verifyEmail"> + <mm:field name="status" /> + ... + </mm:nodefunction> + </mm:functioncontainer> + + ]]> + </mm:escape> + </pre> + </div> + <ul> <mm:function id="modules" set="utils" name="modules" write="false" /> <c:forEach items="${modules}" var="module"> @@ -22,4 +40,5 @@ </ul> </li> </c:forEach> -</ul> + </ul> +</div> Index: functions-sets.jspx =================================================================== RCS file: /var/cvs/html/mmbase/components/core/functions-sets.jspx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- functions-sets.jspx 7 Jan 2009 20:56:01 -0000 1.1 +++ functions-sets.jspx 8 Jan 2009 00:15:17 -0000 1.2 @@ -1,4 +1,4 @@ -<ul +<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" @@ -7,6 +7,19 @@ > <jsp:output omit-xml-declaration="true" /> + <div class="codesample"> + <p>Simple example of how to use a set-function in JSP</p> + <pre> + <mm:escape><![CDATA[ + <mm:function set="caches" name="list" id="caches" write="false" /> + <c:forEach items="${'$'}{caches}" var="entry"> + ... + + ]]> + </mm:escape> + </pre> + </div> + <ul> <mm:function id="functionsets" set="utils" name="functionsets" write="false" /> <c:forEach items="${functionsets}" var="entry"> @@ -22,4 +35,6 @@ </ul> </li> </c:forEach> -</ul> + </ul> + +</div> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs