cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <>
Subject [jira] Created: (COCOON-2167) Default value of validate attribute of submit widget has changed from true to false
Date Tue, 12 Feb 2008 00:57:07 GMT
Default value of validate attribute of submit widget has changed from true to false

                 Key: COCOON-2167
             Project: Cocoon
          Issue Type: Bug
          Components: Blocks: Forms
    Affects Versions: 2.1.11
            Reporter: Jörg Heinicke
             Fix For: 2.1.12-dev (Current SVN)


I noticed a change in behavior of cforms lately.  the submit widget now 
has "false" as default value for the "validate" attribute (opposed to the 
documenation which says, true is the default value). This really breaks 
our application.  After backporting vadim's fixes for the concurrency bugs 
we discovered to cforms 2.1.10, we also "migrated" this new behavior to 
our cforms version.

here is the code, which has an extra if statement in comparision to 

public final class SubmitDefinitionBuilder extends ActionDefinitionBuilder 

    public WidgetDefinition buildWidgetDefinition(Element widgetElement, WidgetDefinitionBuilderContext
    throws Exception {
        SubmitDefinition definition = new SubmitDefinition();
        setupDefinition(widgetElement, definition, context);

        // parse "@validate"
        if (widgetElement.hasAttribute("validate")) {
            definition.setValidateForm(DomHelper.getAttributeAsBoolean(widgetElement, "validate",

        return definition;

Is there any reason, why the behavior was changed and if it was a 
accident, could someone revert the code inside the repos to the old 

thanx alot!


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message