views:

12

answers:

0

I have a FormPanel with a tree of checkboxes wich are added on creation. Now i want to change the general name pattern of all checkboxes inside the panel. According to the DOM the names are changed correctly but when i submit the form still the old names are submitted. Tried calling .doLayout but without any luck. Any ideas?

changePredicateName: function(panel, predicateName) {
            var ref = this;
            this.counter = 0;
            panel.cascade(function(o) {
                var name = ref.groupId + "." + predicateName + "." + ref.counter + "_value";
                if (o instanceofnExt.form.Checkbox) {
                    o.name = name;
                    ref.counter++;
                } else if (o.titleCheckbox) {
                    o.titleCheckbox.name = name;
                    ref.counter++;
                }
                return true;
            });
            panel.doLayout();
        },