cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: question on UnionBinding
Date Thu, 01 Jul 2004 13:54:20 GMT
Tim Larson <tim <at> 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


Mime
View raw message