cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <jason.johns...@Intrado.com>
Subject Re: question on UnionBinding
Date Thu, 01 Jul 2004 14:16:01 GMT
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

Mime
View raw message