Update of 
/var/cvs/applications/editwizard/src/org/mmbase/applications/editwizard
In directory 
james.mmbase.org:/tmp/cvs-serv29889/src/org/mmbase/applications/editwizard

Modified Files:
        Wizard.java 
Log Message:
smalle new feature: you can group a few list's with a 'listset'. This allows 
for nicer inclusion-possiblities


See also: 
http://cvs.mmbase.org/viewcvs/applications/editwizard/src/org/mmbase/applications/editwizard


Index: Wizard.java
===================================================================
RCS file: 
/var/cvs/applications/editwizard/src/org/mmbase/applications/editwizard/Wizard.java,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -b -r1.173 -r1.174
--- Wizard.java 13 Oct 2008 13:09:53 -0000      1.173
+++ Wizard.java 28 Nov 2008 16:50:40 -0000      1.174
@@ -46,7 +46,7 @@
  * @author Pierre van Rooden
  * @author Hillebrand Gelderblom
  * @since MMBase-1.6
- * @version $Id: Wizard.java,v 1.173 2008/10/13 13:09:53 sdeboer Exp $
+ * @version $Id: Wizard.java,v 1.174 2008/11/28 16:50:40 michiel Exp $
  *
  */
 public class Wizard implements org.mmbase.util.SizeMeasurable, 
java.io.Serializable {
@@ -186,7 +186,8 @@
      * @throws WizardException when wizard creation failed
      */
     public Wizard(HttpServletRequest request, URIResolver uri,
-                  Config.WizardConfig wizardConfig, Cloud cloud) throws 
WizardException {
+                  Config.WizardConfig wizardConfig,
+                  Cloud cloud) throws WizardException {
         initialize(request, uri, wizardConfig, cloud);
     }
 
@@ -1028,7 +1029,7 @@
         }
 
         // select all fields on first level
-        NodeList fields = Utils.selectNodeList(formdef, 
"fieldset|field|list|command");
+        NodeList fields = Utils.selectNodeList(formdef, 
"fieldset|field|listset|list|command");
 
         // process all possible fields
         // - Parse the fdatapath attribute to obtain the corresponding data 
fields.
@@ -1050,6 +1051,13 @@
                 // place newfieldset in pre-html form
                 form.appendChild(newfieldset);
                 createPreHtmlForm(newfieldset, field, dataContext);
+            } else if (nodeName.equals("listset")) {
+                Node newfieldset = 
form.getOwnerDocument().createElement("listset");
+                Utils.copyAllAttributes(field, newfieldset);
+
+                // place newfieldset in pre-html form
+                form.appendChild(newfieldset);
+                createPreHtmlForm(newfieldset, field, dataContext);
             } else {
                 Node fieldDataNode = null;
                 String xpath = Utils.getAttribute(field, "fdatapath", null);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to