Read these docs:
http://tapestry.apache.org/tapestry4.1/usersguide/template.html#Specifying%20parameters
http://tapestry.apache.org/tapestry4.1/usersguide/template.html#Formal%20and%20informal%20parameters
Parameters in the .page/.jwc file (or annotations, I presume)
override literal attributes in the template.
So in the template you would have:
<table jwcid="myTable" title="Preview Title"> ...
And in a .page file:
<component id="myTable" type="Any">
<binding name="title" expression="message:title">
</component>
Cheers,
Nick.
John Coleman wrote:
Jesse Kuhnert <jkuhnert <at> gmail.com> writes:
Do you mean something like?:
<table jwcid=" <at> Any" title="message:title" >
Thanks. But if I use @Any, then I can't have a static value to represent the
dynamic value when I view the template in a browser.
Some components (like buttons) support a dynamic label attribute that will
replace the value at run time. Is there anything like that.
It seems I may need to make my own @Any-ish component to replace the alt and
title attributes dynamically when I need to.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]