I like the new var: prefix for temp variables, although I can't find any
docs on how to properly use it. Here's my template code:
<div t:type="layouts/General" title="e"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<div t:type="loop" source="recentPosts" value="var:post">
<div>${var:post}</div>
<div>${var:post.title}</div>
<div>${var:post.body}</div>
<div>${var:post.created}</div>
</div>
</div>
When I run this I get an exception:
"Component blog/Start does not contain a stored render variable with
name 'post.title'. Stored render variables: post."
So it sees my stored render variable, but thinks post.something
represents a different property. Having just read the issue at
https://issues.apache.org/jira/browse/TAPESTRY-1830 it seems that only
simple objects (probably ending in a toString call?) are supported. Is
that true, and if so, is that the extent of what will be done? I haven't
dug in to the code, but couldn't you infer the type based on the type of
the collection supplied to the source parameter?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]