Re: Making a CelebrityCollector with Apache Tapestry: the For Component
By: Anonymous Loozah
at: 12-01-07 @ 3:44 am EST
<property name = "currentCelebrity"/>
The above is equivalent to creating a property currentCelebrity
in the .java class with getCurrentCelebrity() and set methods.
<component id="eachCelebrity" type="For">
<binding name="source" value="celebrities"/>
<binding name="value" value="currentCelebrity" />
</component>
So currentCelebrity is bound to the current Celebrity element inn
the list but is also a property and we can get it and use the
first and last name values from the Celebrity class.
Can't really understand this, can you explain some more, particulary <property name="currentCelebrity"?
thanks