Em Tue, 27 Jan 2009 21:15:36 -0300, manuel aldana <ald...@gmx.de> escreveu:
hi,
Olá!
@Property is used, so setters/getters are generated in runtime. As an example take PageLink, it is usually set through .tml file (with t:page="xxx"). How is it possible to set @Property fields programmatically in a consise and short way?
As far as I know, it is not possible to programatically set or get @Property fields, only access them from bindings (don't forget that using a ${property} in a template is using the prop binding).
Or is it always better to use .tml templates for setting @Property fields?
It is not a good practice to have templates changing the state of page classes and components unless it is something like setting a Grid row or index or a Loop value or index.
-- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org