On Thu, Jul 01, 2004 at 11:46:55AM +0000, Joerg Heinicke wrote:
> Starting with the question: Does it make sense to process all sub bindings of a
> UnionBinding?
> 
> At the moment the UnionBinding behaves just like a ContextBinding, all sub
> bindings are processed. While the processing of a UnionWidget depends on the
> caseWidget the same is not true for the binding.
> 
> My use case: I have different cases that need the same widget to be displayed
> and later on saved back to bean. But the value is not saved to the bean only for
> the current case but for all cases and so my case5 always wins, though another
> case might have been selected.
<snip example/>
> The usage of voucherAvailable on the bean is exclusive, so I don't want to have
> 5 fields were one would be sufficient.
> 
> Was the UnionBinding implemented that way because nobody thought about my use
> case or was there a use case for the current behaviour?

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.

--Tim Larson

Reply via email to