Update of /var/cvs/applications/cloudcontext/config/components
In directory james.mmbase.org:/tmp/cvs-serv26506

Modified Files:
        cloudcontext.xml 
Added Files:
        cloudcontext_style.head.xml 
Log Message:
avoiding some code repitition


See also: 
http://cvs.mmbase.org/viewcvs/applications/cloudcontext/config/components


cloudcontext_style.head.xml is new



Index: cloudcontext.xml
===================================================================
RCS file: 
/var/cvs/applications/cloudcontext/config/components/cloudcontext.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- cloudcontext.xml    5 Jan 2009 13:17:54 -0000       1.8
+++ cloudcontext.xml    5 Jan 2009 16:00:52 -0000       1.9
@@ -21,13 +21,7 @@
     <title xml:lang="nl">Gebruikers</title>
     <title xml:lang="en">Users</title>
     <description xml:lang="en">Generic security editor</description>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">
-          &lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt;
-        </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
     <body jsp="users.jspx">
       <param name="offset" type="java.lang.Integer" />
       <param name="orderby" type="java.lang.String" />
@@ -40,13 +34,7 @@
   <block name="user" mimetype="text/html">
     <title xml:lang="nl">Gebruiker</title>
     <title xml:lang="en">User</title>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">
-          &lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt;
-        </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
     <xi:include href="http://www.mmbase.org/components/validation.head.xml"; />
     <xi:include href="http://www.mmbase.org/components/widgets.head.xml"; />
     <body jsp="user.jspx">
@@ -55,19 +43,13 @@
 
   </block>
 
-  <block name="create_user" mimetype="text/html"
-         classification="mmbase.cloudsecurity:11">
+  <block name="create_user" mimetype="text/html">
     <title xml:lang="nl">Cre??eer gebruiker</title>
     <title xml:lang="en">Create user</title>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">
-          &lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt;
-        </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
+    <xi:include href="http://www.mmbase.org/components/validation.head.xml"; />
+    <xi:include href="http://www.mmbase.org/components/widgets.head.xml"; />
     <body jsp="create_user.jspx" />
-    <process jsp="commit_user.jspx" />
   </block>
 
   <block name="groups"
@@ -76,6 +58,7 @@
     <title xml:lang="nl">Groepen</title>
     <title xml:lang="en">Groups</title>
     <description xml:lang="en">Generic security editor</description>
+    <xi:include href="cloudcontext_style.head.xml" />
     <body jsp="groups.jspx">
       <param name="orderby" />
       <param name="search" />
@@ -88,13 +71,7 @@
   <block name="group" mimetype="text/html">
     <title xml:lang="nl">Groep</title>
     <title xml:lang="en">Group</title>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">
-          &lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt;
-        </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
     <xi:include href="http://www.mmbase.org/components/validation.head.xml"; />
     <xi:include href="http://www.mmbase.org/components/widgets.head.xml"; />
     <body jsp="group.jspx">
@@ -107,13 +84,10 @@
   <block name="create_group" mimetype="text/html">
     <title xml:lang="nl">Cre??eer groep</title>
     <title xml:lang="en">Create group</title>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">&lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt; </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
+    <xi:include href="http://www.mmbase.org/components/validation.head.xml"; />
+    <xi:include href="http://www.mmbase.org/components/widgets.head.xml"; />
     <body jsp="create_group.jspx" />
-    <process jsp="commit_group.jspx" />
   </block>
 
 
@@ -123,6 +97,7 @@
     <title xml:lang="nl">Contexten</title>
     <title xml:lang="en">Contexts</title>
     <description xml:lang="en">Generic security editor</description>
+    <xi:include href="cloudcontext_style.head.xml" />
     <body jsp="contexts.jspx">
       <param name="offset" type="java.lang.Integer" />
       <param name="tab" type="java.lang.Integer" />
@@ -135,13 +110,8 @@
   <block name="context" mimetype="text/html">
     <title xml:lang="nl">Context</title>
     <title xml:lang="en">Context</title>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">
-          &lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt;
-        </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
+    <xi:include href="http://www.mmbase.org/components/validation.head.xml"; />
     <body jsp="context.jspx">
       <param name="node" />
     </body>
@@ -154,6 +124,7 @@
     <title xml:lang="nl">Acties</title>
     <title xml:lang="en">Actions</title>
     <description xml:lang="en">Generic security editor</description>
+    <xi:include href="cloudcontext_style.head.xml" />
     <body jsp="actions.jspx" />
   </block>
 
@@ -163,13 +134,7 @@
     <title xml:lang="nl">Help</title>
     <title xml:lang="en">Help</title>
     <description xml:lang="en">Generic security editor</description>
-    <head>
-      <class name="org.mmbase.framework.StringRenderer">
-        <param name="string">
-          &lt;link 
href="{REQUEST.getContextPath}/mmbase/security/style/style.css" 
rel="stylesheet" title="Cloud Context Security" type="text/css" media="screen" 
/&gt;
-        </param>
-      </class>
-    </head>
+    <xi:include href="cloudcontext_style.head.xml" />
     <body jsp="help.jspx" />
   </block>
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to