haul 2002/12/16 06:57:23 Modified: src/java/org/apache/cocoon/transformation Tag: cocoon_2_0_3_branch SimpleFormTransformer.java Log: <action dev="CH" type="fix"> SimpleFormTransfomer: fixed error tags when no validation data available. </action> Revision Changes Path No revision No revision 1.1.2.4 +8 -11 xml-cocoon2/src/java/org/apache/cocoon/transformation/SimpleFormTransformer.java Index: SimpleFormTransformer.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/SimpleFormTransformer.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- SimpleFormTransformer.java 30 Nov 2002 10:22:06 -0000 1.1.2.3 +++ SimpleFormTransformer.java 16 Dec 2002 14:57:22 -0000 1.1.2.4 @@ -50,18 +50,15 @@ */ package org.apache.cocoon.transformation; -import org.apache.avalon.framework.component.ComponentException; +import org.apache.avalon.excalibur.pool.Recyclable; import org.apache.avalon.framework.component.ComponentManager; import org.apache.avalon.framework.component.ComponentSelector; import org.apache.avalon.framework.component.Composable; -import org.apache.avalon.framework.parameters.Parameters; import org.apache.avalon.framework.configuration.Configurable; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; +import org.apache.avalon.framework.parameters.Parameters; import org.apache.avalon.framework.thread.ThreadSafe; - -import org.apache.avalon.excalibur.pool.Recyclable; - import org.apache.cocoon.ProcessingException; import org.apache.cocoon.acting.ValidatorActionResult; import org.apache.cocoon.components.language.markup.xsp.XSPFormValidatorHelper; @@ -69,16 +66,14 @@ import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.cocoon.environment.Request; import org.apache.cocoon.environment.SourceResolver; -import org.apache.cocoon.xml.AbstractXMLPipe; - -import org.xml.sax.SAXException; +import org.apache.cocoon.util.HashMap; import org.xml.sax.Attributes; +import org.xml.sax.SAXException; import org.xml.sax.helpers.AttributesImpl; -import org.apache.cocoon.util.HashMap; +import java.io.IOException; import java.util.Map; import java.util.Stack; -import java.io.IOException; /** Eliminates the need for XSP to use FormValidatorAction. Caveat: * Select options need a value attribute to work correctly. @@ -574,6 +569,7 @@ getLogger().debug("replacing"); this.ignoreCount++; this.stack.push(name); + this.ignoreThis = false; super.startElement(uri, name, raw, attributes); String valString = String.valueOf(value[0]); super.characters(valString.toCharArray(), 0, valString.length()); @@ -596,6 +592,7 @@ if (this.validationResults == null || this.fixed) { this.ignoreCount++; this.stack.push(name); + this.ignoreThis = true; } else { String aName = attr.getValue("name"); if (aName == null) {
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]