Re: T5: using template instead of T5's tml
On Wed, Dec 1, 2010 at 7:46 AM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: fill in the blanks. JMHO, but previewable templates never work in the long run as your application (and components!) get more complex. That's for sure! Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5: using template instead of T5's tml
On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com wrote: Is there any editors with preview functionality that works well with T5's template? As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5: using template instead of T5's tml
As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. Invisible instrumentation is great... But, if you're working inside a Layout Component, you will have some extra work on merging the Page's TML and the Layout's TML to see it properly on the Browser (which is not only a Tap problem)... If that's not a problem for the Designer's, it's okay, thought. ___ Everton Agner Ramos 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com wrote: Is there any editors with preview functionality that works well with T5's template? As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5: using template instead of T5's tml
Everton, a while back (w/ the T4 equivalent) and more recently (after 5.1) I was experimenting with using t:content to have a full-blown HTML page but only use a part of it for the real template. Thus, you could have something like this for a previewable page that your designers can work with in ther WISYWIGs: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; head .. include whatever styles you need for the HTML editor to display the page properly /head body div i --- whatever your layout component has -- div t:type=content -- ... this is where the 'real' template starts... -- div t:type='yourLayoutComponent' ... this is the content that you would otherwise have if you didn't use t:content /div /div /div /body /html which would be the equivalent of having a page that uses the layout like this (which has zero previewability): div t:type='yourLayoutComponent' ... this is the content that you would otherwise have if you didn't use t:content /div with a layout of html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; head/head body div div t:type=body /div /body /html I hope this helps. Alex K On Wed, Dec 1, 2010 at 8:10 AM, Everton Agner ton.ag...@gmail.com wrote: As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. Invisible instrumentation is great... But, if you're working inside a Layout Component, you will have some extra work on merging the Page's TML and the Layout's TML to see it properly on the Browser (which is not only a Tap problem)... If that's not a problem for the Designer's, it's okay, thought. ___ Everton Agner Ramos 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com wrote: Is there any editors with preview functionality that works well with T5's template? As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5: using template instead of T5's tml
Hi Alex, it's an interesting approach, some more details? I can't find t:content in the T5 component reference, is it a component you created in additional to youLayoutComponent? Thanks, Angelo Alex Kotchnev-2 wrote: Everton, a while back (w/ the T4 equivalent) and more recently (after 5.1) I was experimenting with using t:content to have a full-blown HTML page but only use a part of it for the real template. Thus, you could have something like this for a previewable page that your designers can work with in ther WISYWIGs: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; head .. include whatever styles you need for the HTML editor to display the page properly /head body div i --- whatever your layout component has -- div t:type=content -- ... this is where the 'real' template starts... -- div t:type='yourLayoutComponent' ... this is the content that you would otherwise have if you didn't use t:content /div /div /div /body /html which would be the equivalent of having a page that uses the layout like this (which has zero previewability): div t:type='yourLayoutComponent' ... this is the content that you would otherwise have if you didn't use t:content /div with a layout of html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; head/head body div div t:type=body /div /body /html I hope this helps. Alex K On Wed, Dec 1, 2010 at 8:10 AM, Everton Agner ton.ag...@gmail.com wrote: As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. Invisible instrumentation is great... But, if you're working inside a Layout Component, you will have some extra work on merging the Page's TML and the Layout's TML to see it properly on the Browser (which is not only a Tap problem)... If that's not a problem for the Designer's, it's okay, thought. ___ Everton Agner Ramos 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com wrote: Is there any editors with preview functionality that works well with T5's template? As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3288868.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
Re: T5: using template instead of T5's tml
On Wed, Dec 1, 2010 at 8:22 PM, Angelo C. angelochen...@gmail.com wrote: it's an interesting approach, some more details? I can't find t:content in the T5 component reference, is it a component you created in additional to youLayoutComponent? Thanks, http://lmgtfy.com/?q=tapestry+t%3Acontent Kalle Alex Kotchnev-2 wrote: Everton, a while back (w/ the T4 equivalent) and more recently (after 5.1) I was experimenting with using t:content to have a full-blown HTML page but only use a part of it for the real template. Thus, you could have something like this for a previewable page that your designers can work with in ther WISYWIGs: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; head .. include whatever styles you need for the HTML editor to display the page properly /head body div i --- whatever your layout component has -- div t:type=content -- ... this is where the 'real' template starts... -- div t:type='yourLayoutComponent' ... this is the content that you would otherwise have if you didn't use t:content /div /div /div /body /html which would be the equivalent of having a page that uses the layout like this (which has zero previewability): div t:type='yourLayoutComponent' ... this is the content that you would otherwise have if you didn't use t:content /div with a layout of html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; head/head body div div t:type=body /div /body /html I hope this helps. Alex K On Wed, Dec 1, 2010 at 8:10 AM, Everton Agner ton.ag...@gmail.com wrote: As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. Invisible instrumentation is great... But, if you're working inside a Layout Component, you will have some extra work on merging the Page's TML and the Layout's TML to see it properly on the Browser (which is not only a Tap problem)... If that's not a problem for the Designer's, it's okay, thought. ___ Everton Agner Ramos 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com wrote: Is there any editors with preview functionality that works well with T5's template? As long as you use div t:type=ComponentName instead of t:componentName, you can use any HTML editor. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3288868.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
T5: using template instead of T5's tml
Hi, I'm curious if this is a good approach: using either Velocity or FreeMarker as the view layer, T5's as server side only, the only component to be used maybe is the outraw which renders the result of Velocity's template evaluation, anybody has done this? any feedback from this approach? more advantages? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3287114.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
Re: T5: using template instead of T5's tml
On Tue, Nov 30, 2010 at 6:27 PM, Angelo C. angelochen...@gmail.com wrote: Hi, I'm curious if this is a good approach: using either Velocity or FreeMarker as the view layer, T5's as server side only, the only component to be used maybe is the outraw which renders the result of Velocity's template evaluation, anybody has done this? any feedback from this approach? more advantages? Thanks, Only disadvantages. It will be slower, it will not be consistent, you will lose all the component power that Tapestry brings. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3287114.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 -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
Re: T5: using template instead of T5's tml
Thanks for the fast response, I'm looking at the possibility that the view can be customized by non - tech guys. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3287128.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
Re: T5: using template instead of T5's tml
Using Velocity/FreeMarker with T5 strikes as odd to me. The designers I work with regularly design and edit the Tapestry templates (live!), without having any idea of Java, Maven, Jetty or any of that stuff. They know enough about Tapestry to leave ${value} and occasional t:component markings alone. Kalle On Tue, Nov 30, 2010 at 7:00 PM, Angelo C. angelochen...@gmail.com wrote: Thanks for the fast response, I'm looking at the possibility that the view can be customized by non - tech guys. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3287128.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
Re: T5: using template instead of T5's tml
Is there any editors with preview functionality that works well with T5's template? Kalle Korhonen-2 wrote: Using Velocity/FreeMarker with T5 strikes as odd to me. The designers I work with regularly design and edit the Tapestry templates (live!), without having any idea of Java, Maven, Jetty or any of that stuff. They know enough about Tapestry to leave ${value} and occasional t:component markings alone. Kalle -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3287224.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
Re: T5: using template instead of T5's tml
On Tue, Nov 30, 2010 at 9:41 PM, Angelo C. angelochen...@gmail.com wrote: Is there any editors with preview functionality that works well with T5's template? Browser? Just saying - you could take full advantage of live class reloading and all the automated machinery that is available. Instead of previewing a template, why not just use the whole application with pre-seeded data. My designers are super happy to see real data and to be able to interact with a working application rather than having to fill in the blanks. JMHO, but previewable templates never work in the long run as your application (and components!) get more complex. Kalle Kalle Korhonen-2 wrote: Using Velocity/FreeMarker with T5 strikes as odd to me. The designers I work with regularly design and edit the Tapestry templates (live!), without having any idea of Java, Maven, Jetty or any of that stuff. They know enough about Tapestry to leave ${value} and occasional t:component markings alone. Kalle -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3287224.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