On Thu, 2004-07-01 at 05:46, Joerg Heinicke wrote: > [snip] > My binding: > > <fb:class id="voucher-class"> > <fb:value id="voucher" path="voucherAvailable" direction="save"/> > </fb:class> > <fb:union id="eventData" path="."> > <fb:struct id="some other cases that don't need the voucher widget"> > ... > </fb:struct> > <fb:struct id="case1" path="."> > <fb:new id="voucher-class"/> > </fb:struct> > <fb:struct id="case2" path="."> > <fb:new id="voucher-class"/> > </fb:struct> > <fb:struct id="case3" path="."> > <fb:new id="voucher-class"/> > </fb:struct> > <fb:struct id="case4" path="."> > <fb:new id="voucher-class"/> > </fb:struct> > <fb:struct id="case5" path="."> > <fb:new id="voucher-class"/> > </fb:struct> > </fb:union>
Maybe I'm not understanding your example, but shouldn't all those <fb:struct>s be wrapped in <fb:case>s with the same id? If I understand correctly it's actually the fb:case binding that does conditional processing of its subbindings; the fb:union binding just acts as a dumb container. --Jason
