${} is a shortcut to make it very easy to insert some property-value into your template without having to use a component for it. There are typically 3 ways to insert some content into your page:
1. The way you're using components, keeping most of the configuration in the Java class: <h1 t:id="title">Some title</h1> @Component(parameters = { "value=prop:myTitle" }) private Output output; 2. Use and configure the component straight from within your template: <h1 t:type="Output" t:value="prop:myTitle">Some title</h1> 3. The easiest way is using the expansion: <h1>${myTitle}</h1> I use option 1 all the time. It makes refactoring much easier and keeps the templates clean for the designers. It takes more code though. This works for all components. Option 2 is typically great for quick prototyping but a lot of non-standard markup is added to the template which might confuse web-designers. It works for all components. Option 3 is a shortcut that makes it even easier to insert some property value directly into your page. It only works for inserting content retrieved from a property on your page. More information: http://tapestry.apache.org/tapestry5/guide/templates.html regards, Onno On Thu, Jun 11, 2009 at 3:38 PM, Kai Weber <kai.we...@glorybox.de> wrote: > Hi, > > I am a Tapestry beginner. I am far from knowing all the internals. I use > the PageLink component in one of my as follows: > > @Component(id="backLink", > parameters={ > "page=${backLink}", > "context=backLinkContext", > "anchor=${prev.getUniqueIdentifier()}"}) > private PageLink backLink; > > My question is now > > What does the ${...} do? > > I fail to see what this means: If I replace "context=prop:backLinkContext" > with "context=${backLinkContext}" I get a different link than expected. If I > replace "page=prop:backLink" with "page=${backLink}" I get no different > link. Why? > > Kai > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >