cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r164818 - /cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
Date Tue, 26 Apr 2005 16:44:18 GMT
Author: vgritsenko
Date: Tue Apr 26 09:44:18 2005
New Revision: 164818

URL: http://svn.apache.org/viewcvs?rev=164818&view=rev
Log:
Use EMPTY_PROPERTIES

Modified:
    cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java

Modified: cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java?rev=164818&r1=164817&r2=164818&view=diff
==============================================================================
--- cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
(original)
+++ cocoon/blocks/core/forms/trunk/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
Tue Apr 26 09:44:18 2005
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,6 +29,7 @@
 import org.apache.cocoon.forms.datatype.convertor.ConversionResult;
 import org.apache.cocoon.xml.AttributesImpl;
 import org.apache.cocoon.xml.AbstractXMLPipe;
+import org.apache.cocoon.xml.XMLUtils;
 import org.apache.cocoon.xml.dom.DOMBuilder;
 import org.w3c.dom.Element;
 
@@ -189,7 +190,7 @@
                 if (localName.equals("item")) {
                     if (!hasLabel) {
                         // make the label now
-                        super.startElement(Constants.INSTANCE_NS, LABEL_EL, Constants.INSTANCE_PREFIX_COLON
+ LABEL_EL, new AttributesImpl());
+                        super.startElement(Constants.INSTANCE_NS, LABEL_EL, Constants.INSTANCE_PREFIX_COLON
+ LABEL_EL, XMLUtils.EMPTY_ATTRIBUTES);
                         super.characters(currentValueAsString.toCharArray(), 0, currentValueAsString.length());
                         super.endElement(Constants.INSTANCE_NS, LABEL_EL, Constants.INSTANCE_PREFIX_COLON
+ LABEL_EL);
                     }



Mime
View raw message