understand. thanks a lot On Tue, Jul 17, 2012 at 7:56 PM, Thiago H de Paula Figueiredo <thiag...@gmail.com> wrote: > On Tue, 17 Jul 2012 07:57:54 -0300, mu <mubao...@gmail.com> wrote: > >> Hi all, > > > Hi, Mu! > > >> <t:pagelink page="welcome" t:id="link" >> context="user.name">welcome</t:pagelink> >> "id" has a prefix "t", but "context" has not. why? when should the "t" >> prefix be used? > > > In t:id, which is the Tapestry component id attribute, the prefix is > obligatory because it's very common for HTML elements to have an id > attribute. The prefix is used to be sure of what is being defined at the > moment (Tapestry component id or HTML element id). t:id is *not* a > parameter, while context is. The t prefix can be used for parameters, but it > isn't required. I use the prefix when the parameter isn't the name of the > corresponding HTML attribute: t:context in PageLink, but not t:value in > TextField, for example. > > -- > Thiago H. de Paula Figueiredo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org