From dev-return-62877-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Thu Jul 01 13:55:02 2004 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 23682 invoked from network); 1 Jul 2004 13:55:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 13:55:02 -0000 Received: (qmail 18262 invoked by uid 500); 1 Jul 2004 13:54:34 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 18110 invoked by uid 500); 1 Jul 2004 13:54:33 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 18065 invoked by uid 99); 1 Jul 2004 13:54:32 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 06:54:32 -0700 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bg218-0008BN-00 for ; Thu, 01 Jul 2004 15:54:22 +0200 Received: from mail.ewerk.com ([217.69.240.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Jul 2004 15:54:22 +0200 Received: from joerg.heinicke by mail.ewerk.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Jul 2004 15:54:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: Joerg Heinicke Subject: Re: question on UnionBinding Date: Thu, 1 Jul 2004 13:54:20 +0000 (UTC) Lines: 22 Message-ID: References: <20040701140926.GO29256@keow.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 217.69.240.162 (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616) Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Tim Larson keow.org> writes: > > At the moment the UnionBinding behaves just like a ContextBinding, all sub > > bindings are processed. > > I do not have time to dig in the code right now, but this looks like a bug > (oversight) that needs fixed. Only the current case should be processed. Thanks for the confirmation. The code is quite easy "iterate over all sub bindings": Binding[] subBindings = getChildBindings(); if (subBindings != null) { int size = subBindings.length; for (int i = 0; i < size; i++) { subBindings[i].saveFormToModel(unionWidget, subContext); } } I will see if I can fix it. Joerg