Update of /var/cvs/speeltuin/mihxil/wiki/examples
In directory james.mmbase.org:/tmp/cvs-serv2907
Modified Files:
index.jspx
Added Files:
example1.jspx example2.jspx example3.jspx
Log Message:
split up in multiple files
See also: http://cvs.mmbase.org/viewcvs/speeltuin/mihxil/wiki/examples
example1.jspx is new
example2.jspx is new
example3.jspx is new
Index: index.jspx
===================================================================
RCS file: /var/cvs/speeltuin/mihxil/wiki/examples/index.jspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- index.jspx 1 Apr 2008 09:19:00 -0000 1.1
+++ index.jspx 1 Apr 2008 09:58:20 -0000 1.2
@@ -2,7 +2,7 @@
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
- xmlns:mm-sr="urn:jsptagdir:/WEB-INF/tags/mm/searchrelate"
+
expires="0" type="application/xhtml+xml"
unacceptable="CRIPPLE" >
<jsp:output doctype-root-element="html"
@@ -36,37 +36,11 @@
</p>
</mm:hasnode>
<mm:hasnode number="$mag">
- <div class="drawer">
- <mm:context>
- <h1>Example1</h1>
- <div>
- <mm:node number="$mag">
- <mm:relatednodescontainer role="posrel" type="news"
id="current" />
- <mm:listnodescontainer type="news" id="repository" />
- <mm-sr:relate repository="${repository}" current="${current}"
submit="submit1" />
- </mm:node>
- <a id="submit1">Submit</a>
- </div>
- </mm:context>
- </div>
- <div class="drawer">
- <mm:context>
- <h1>Example2</h1>
- <p>Showing how to make it impossible to relate already related
nodes.</p>
- <div>
<mm:node number="$mag">
- <mm:relatednodescontainer role="posrel" type="news"
id="current" >
- <mm:relatednodes id="currentlyRelated" />
- </mm:relatednodescontainer>
- <mm:listnodescontainer type="news" id="repository">
- <mm:constraint field="number" operator="IN"
referid="currentlyRelated" inverse="true" />
- </mm:listnodescontainer>
- <mm-sr:relate repository="${repository}" current="${current}"
submit="submit2" />
+ <mm:include page="example1.jspx" />
+ <mm:include page="example2.jspx" />
+ <mm:include page="example3.jspx" />
</mm:node>
- <a id="submit2">Submit</a>
- </div>
- </mm:context>
- </div>
</mm:hasnode>
</mm:cloud>
</body>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs