Re: T5 - HTML Templating
Here is a comment from Howard on his blog. http://tapestryjava.blogspot.com/2007/02/t5-screencast-4-beaneditform.html#comment-8358363237605682208 http://tapestryjava.blogspot.com/2007/02/t5-screencast-4-beaneditform.html#comment-8358363237605682208 Jan Vissers wrote: A very simple question (although I'm not to sure, whether everybody feels that way). One of T4's key points, is the fact that basic HTML can be used and maintained by a web designer, and a developer can go an take that HTML and instrument it, so Tapestry at runtime kicks in. Is this still a major concept in T5? Thanks, -J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/T5---HTML-Templating-tf3479074.html#a9729713 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Binding Loop parameters
Hi, Excuse me if this is a silly question but I'm new to Tapestry. In order to use Loop's value (or index) inside its body, one has to bind it to some property. Usually this means creating a new property in the page class. Here is an example from T5 tutorial. t:loop source=1..10 value=index ${index} /t:loop and in the Java code private int _index; public int getIndex() { return _index; } public void setIndex(int index) { _index = index; } It seems very clumsy for me to write all this Java code to support a simple loop. Can't the Loop component remember its value? Isn't it possible to use loop's value/index direclty without binding? Something like this. t:loop source=1..10 t:id=aLoop ${aLoop.index} /t:loop Also, what is the business with those heartbeats in Loop component? I couldn't understand it from the documentation. Best regards, Peter -- View this message in context: http://www.nabble.com/Binding-Loop-parameters-tf3433109.html#a9570601 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]