Re: child wrappers
David Crawshaw <[email protected]> Wed, 9 Apr 2003 21:29:16 +1000
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, April 9, 2003, at 09:28 PM, Charles Goodwin wrote: > That's a very contradictory reply. > > The whole point of redirect wrappers, I thought, was to keep 'access' > xwt-like, ie if group has a redirect that wraps: Okay, I think I got your question wrong. The wrapper system puts a box around every one of its children. From the 'outside', the box reacts exactly as it always has (being the point). wrap.xwt: <redirect target="inner" wrap="true"/> <template> // $inner[0] returns wrapper box around first child // thisbox[0] returns first child (box *inside* the wrapper) <box id="inner"/> </template> user.xwt: <template> // $a == $w[0] // $b == $w[1] // $c == $w[2] <wrap id="w"> <box id="a"/> <box id="b"/> <box id="c"/> </wrap> </template> Does that make sense? d _______________________________________________ http://lists.xwt.org/listinfo/dev