if you use the "var:" prefix in your template you do not need a
corresponding property in your page/component. and you
can use this variable in your template multiple times (as in the
loop example). tapestry will generate a property on the fly
during rendering for this variable.
if you declare your components purley in your template
you can also pass in the parameters it accepts as well.
.... and it should work with var: variables as well.
eg.
<ul>
<li t:type="loop" source="1..10" value="var:index">
<t:actionlink context="${var:index}">link</t:actionlink>
</li>
</ul>
AFAIK you cannot access the value of the "var:" variables in your
pages or components.
hope this helps... maybe you can post an example... as posted by thiago
g,
kris
"Thiago H. de Paula Figueiredo" <[EMAIL PROTECTED]>
06.10.2008 15:10
Bitte antworten an
"Tapestry users" <[email protected]>
An
"Tapestry users" <[email protected]>
Kopie
Thema
Re: T5: equivelent of c:set ?
Em Mon, 06 Oct 2008 09:01:48 -0300, Russell Brown <[EMAIL PROTECTED]>
escreveu:
> As far as I can see it is only of use in a loop in which case it is set
> at the start of the iteration. How about iteration idioms that involve
> setting a value at the end of the iteration to be used by the next
> iteration? It is fairly common to see and trivial in struts, jsps,
> spring mvc etc, etc.
You can do that in Tapestry, but you just do it in a different way.
Remember that the page class properties are always available to the
template.
Please post a JSP example of what you're trying to accomplish so we'll can
help you better. ;)
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]