A synthetic property is simply a property that isn't (necessarily) backed by
an instance variable.  Often they are read only.

OGNL magic:

<binding name="source" expression="{ someProperty, someOtherProperty }"/>

Curly braces means assemble as a list (or array, not sure which).  Handy.

Also, note that you *can* pass a single object as the source for a Foreach.
It treats ordinary objects as if they were a single element array.

----- Original Message -----
From: "Neil Clayton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 3:22 PM
Subject: [Tapestry-developer] 'Synthetic' properties, and Foreach


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

HI all,

I saw something on the list awhile ago about synthetic properties. What's
the
formal definition of this? (in the land of Tapestry!). Is it an OGNL thing?

Specifically, I am wondering if I still need to have a property on my
page/component that is populated with a single value when I am performing a
Foreach - or is there some OGNL magic that replaces this? [my thinking is
that I DO still need the property - but ....]

BTW: Howard! OGNL does rock!

- --
Regards,
Neil Clayton

(PS: If you see strange text you don't understand underneath my email, don't
worry - it's just my PGP signature)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9oI1vLXcfQF3yrNoRAqLwAJ43l8vDmlL666eQ3UhHM/Qg99JTIgCgoxN7
PLMRu/qe6DbOsgQKPJ+x/Qs=
=9PBl
-----END PGP SIGNATURE-----



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to