A not so elegant solution is to create a RemoveElt component so that the associated html tag is not generated.
public class RemoveElt { protected boolean beginRender(){ return false; } } Example : <span t:type="removeElt"> testu...@test.com </span> The above <span> will not appear in the generated in html . Shing ----- Original Message ----- From: dkeenan <david_siedle...@yahoo.co.uk> To: users@tapestry.apache.org Cc: Sent: Monday, August 20, 2012 2:39 PM Subject: Setting element value from an attribute Hi. When creating dynamic content in a TML template file I normally do something like this: ${user.email} So when running the template in my tapestry app, I get a header with the logged in user's email address. But, when viewing the template outside of tapestry, as a normal file, obviously I get "${user.email}" shown in the header. I really like being able to design my templates outside of the application and I would like to have something like this: testu...@test.com Is there a way of doing something like that so that my template looks okay when viewed outside of the application, and the element is updated appropriately when running inside the app? Many thanks, Dave. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Setting-element-value-from-an-attribute-tp5715597.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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