Re: t5: layout pattern and search engine indexing
Em Mon, 13 Jul 2009 00:56:57 -0300, Angelo Chen angelochen...@yahoo.com.hk escreveu: Hi Thiago, Hi! How to avoid event links? when you have a actionLink in the tml you will get that kind of links in the page, right? I'm sorry, I was not clear in the first message: I tried to tell you to not use ActionLink or EventLink when you can use a PageLink, as event links have less pretty URLs than pages. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: layout pattern and search engine indexing
Em Sun, 12 Jul 2009 23:54:42 -0300, Angelo Chen angelochen...@yahoo.com.hk escreveu: Hi, Hi! I use layout pattern to layout the pages, it works well, but I notice sometimes URLs like following got indexd in the search engine: www.example/index.mylayout.home?t:ac=12345678 any idea how to turn above into www.example/home?t:ac=12345678 URL rewriting. Or try to avoid event links. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: layout pattern and search engine indexing
Hi Thiago, How to avoid event links? when you have a actionLink in the tml you will get that kind of links in the page, right? Thiago H. de Paula Figueiredo wrote: Em Sun, 12 Jul 2009 23:54:42 -0300, Angelo Chen angelochen...@yahoo.com.hk escreveu: Hi, Hi! I use layout pattern to layout the pages, it works well, but I notice sometimes URLs like following got indexd in the search engine: www.example/index.mylayout.home?t:ac=12345678 any idea how to turn above into www.example/home?t:ac=12345678 URL rewriting. Or try to avoid event links. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - 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://www.nabble.com/t5%3A-layout-pattern-and-search-engine-indexing-tp24455454p24455894.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: layout
On Wed, May 13, 2009 at 10:05 AM, Angelo Chen angelochen...@yahoo.com.hk wrote: Hi, Hi! in 5.1.0.5, I tried this: context:layout/images/img20.gif Shouldn't it be something like img src=${asset:context:layout/images/img20.gif}/? -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: t5: layout
Not according to http://tapestry.apache.org/tapestry5.1/guide/parameters.html, Context Bindings. This works for us I think. -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 13 May 2009 14:36 To: Tapestry users Subject: Re: t5: layout On Wed, May 13, 2009 at 10:05 AM, Angelo Chen angelochen...@yahoo.com.hk wrote: Hi, Hi! in 5.1.0.5, I tried this: context:layout/images/img20.gif Shouldn't it be something like img src=${asset:context:layout/images/img20.gif}/? -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: layout
On Wed, May 13, 2009 at 12:01 PM, Blower, Andy andy.blo...@proquest.co.uk wrote: Not according to http://tapestry.apache.org/tapestry5.1/guide/parameters.html, Context Bindings. This works for us I think. You're right: you can now use context without using asset. I hadn't tested it before I answered that question. Nice feature. :) But Angelo's still doing something wrong. Maybe is the lack of ${} around context:xxx.jpg or not using the img tag, as the context binding throws an exception when the asset is not found. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: t5: layout
I kind of assumed the ${} bit, guess we should wait for Angelo to chime in again now... -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 13 May 2009 16:10 To: Tapestry users Subject: Re: t5: layout On Wed, May 13, 2009 at 12:01 PM, Blower, Andy andy.blo...@proquest.co.uk wrote: Not according to http://tapestry.apache.org/tapestry5.1/guide/parameters.html, Context Bindings. This works for us I think. You're right: you can now use context without using asset. I hadn't tested it before I answered that question. Nice feature. :) But Angelo's still doing something wrong. Maybe is the lack of ${} around context:xxx.jpg or not using the img tag, as the context binding throws an exception when the asset is not found. -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
thanks for the link. looking at this layout injection pattern, i wonder whether a normal template, which references the dynamic site-parts directly wouldn't be even easier (i at least find it more intuitive as using the t:body/ injection). what are the pros/cons for that? Site.tml (style stuff omitted): html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head t:header/ /head body t:navigation/ t:mainContent/ /body /html SergeEby schrieb: Hi, t:body/ is the actual content of your page, and the layout component is just a wrapper. This link would probably help you better understand: http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
Em Wed, 21 Jan 2009 21:30:42 -0300, manuel aldana ald...@gmx.de escreveu: looking at this layout injection pattern, i wonder whether a normal template, which references the dynamic site-parts directly wouldn't be even easier (i at least find it more intuitive as using the t:body/ injection). what are the pros/cons for that? The Layout pattern is just one ordinary Tapestry custom-made component. The pros are the fact that you can each part in its own class/template pair. The con is that there is no way for a component to know what the main content is, as you named in your template below. Site.tml (style stuff omitted): html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head t:header/ /head body t:navigation/ t:mainContent/ /body /html If t:mainContent means the real content of each page of your application, it should be t:body/. A Layout component (or any other component) has no other way to know what is inside it (its content). -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
Thiago H. de Paula Figueiredo schrieb: Em Wed, 21 Jan 2009 21:30:42 -0300, manuel aldana ald...@gmx.de escreveu: looking at this layout injection pattern, i wonder whether a normal template, which references the dynamic site-parts directly wouldn't be even easier (i at least find it more intuitive as using the t:body/ injection). what are the pros/cons for that? The Layout pattern is just one ordinary Tapestry custom-made component. The pros are the fact that you can each part in its own class/template pair. The con is that there is no way for a component to know what the main content is, as you named in your template below. OK, but why does the layout component need to know what the main content is? As in other mail mentioned the only (but major) cons I can see is that making the Layout as the main-entry page is not very flexible and breaks somehow the tapestry page concept. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
Em Wed, 21 Jan 2009 21:46:20 -0300, manuel aldana ald...@gmx.de escreveu: OK, but why does the layout component need to know what the main content is? If it is a layout, yes. Otherwise, it would be an ordinary page. As in other mail mentioned the only (but major) cons I can see is that making the Layout as the main-entry page is not very flexible and breaks somehow the tapestry page concept. When people here talk about a Layout component, we are talking about something described by the Tapestry documentation as A Layout component exists to provide common content across all pages in your application.. A Layout is a component, not a page, at least in the vocabulary used in this mailing list. :) It does not mean that you cannot have more than one Layout (but they should be two different components, each page would use zero or one of them) or parameterized Layout or Layouts. ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
Em Wed, 21 Jan 2009 22:07:20 -0300, manuel aldana ald...@gmx.de escreveu: yes, it is a bit confusing that you could do your layout-concept directly as a page (see starter mail of thread). But I see now it is not a good idea, so will go for layout as a component :) Technically speaking, I think it would be possible to implement the layout concept using a page, but then your content pages would need to extend the page component and provide the content through parameter blocks, a little bit like t:parameter in Grid, BeanEditor and BeanEditForm. But this would be much less elegant and easy than the component implementation of the layout concept . . . ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
sorry... there was a discussion about this already (http://www.mail-archive.com/users@tapestry.apache.org/msg17682.html), but found it later as posting... Just tell if information of above thread is out of date and tapestry templates approach changed in latest tapestry. manuel aldana schrieb: Hi, I had a look how to template things (header, footer, navigation) at http://tapestry.apache.org/tapestry5/guide/layout.html. -What is the magic about the t:body/ inclusion? This tag is a bit unclear to me. How does Layout.tml connect to the Start.tml as the t:body/ tag in the example? -How would I include another dynamic site part, like navigation bar on the left side (would be another .tml template)? All examples I have seen only play with one layout injection (main page content). thanks. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Layout component: resolving unclarities
Hi, t:body/ is the actual content of your page, and the layout component is just a wrapper. This link would probably help you better understand: http://wiki.apache.org/tapestry/Tapestry5Layoutcomponent /Serge aldana wrote: Hi, I had a look how to template things (header, footer, navigation) at http://tapestry.apache.org/tapestry5/guide/layout.html. -What is the magic about the t:body/ inclusion? This tag is a bit unclear to me. How does Layout.tml connect to the Start.tml as the t:body/ tag in the example? -How would I include another dynamic site part, like navigation bar on the left side (would be another .tml template)? All examples I have seen only play with one layout injection (main page content). thanks. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/-T5--Layout-component%3A-resolving-unclarities-tp21574666p21574839.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] Layout problem
Marinus Maris wrote: There are two files: 1. Layout.java - goes in the src\main\java\MyApp\components folder. 2. Layout.tml - goes in the src\main\resources\MyApp\components folder. So there are two different folder for one component. Did you do this? Well, those two folder have the same classpath, so technically, they are the same folders. Compiler sees them in the same way. Anyway, I know noone will believe me, but.. I fell asleep, woke up, and component suddenly worked. I don`t know how and why, and if I worked in sleep or Elves visited my apartment, but it`s ok now. Thanks for help anyway. Best Regards, Danilo. -- View this message in context: http://www.nabble.com/-T5--Layout-problem-tp20494043p20532148.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout problem
DaniloP schreef: I`m trying to build a layout, as described in http://tapestry.apache.org/tapestry5/guide/layout.html http://tapestry.apache.org/tapestry5/guide/layout.html . However, tapestry doesn`t read Layout.tml file. It`s in components package, as asked. Also, it woun`t read page .tml files inside of pages package, but I have to place them in webapp folder. This shouldn`t happen either? Could you help me find out why it`s happening? Thanks, Danilo The good old Layout.tml problem. There are two files: 1. Layout.java - goes in the src\main\java\MyApp\components folder. 2. Layout.tml - goes in the src\main\resources\MyApp\components folder. So there are two different folder for one component. Did you do this? Regards Marinus Maris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout problem
I much prefer to put them in the same folder. http://jumpstart.doublenegative.com.au/orientation.html http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/component/layout1 On 14/11/2008, at 11:43 PM, Marinus Maris wrote: DaniloP schreef: I`m trying to build a layout, as described in http://tapestry.apache.org/tapestry5/guide/layout.html http://tapestry.apache.org/tapestry5/guide/layout.html . However, tapestry doesn`t read Layout.tml file. It`s in components package, as asked. Also, it woun`t read page .tml files inside of pages package, but I have to place them in webapp folder. This shouldn`t happen either? Could you help me find out why it`s happening? Thanks, Danilo The good old Layout.tml problem. There are two files: 1. Layout.java - goes in the src\main\java\MyApp\components folder. 2. Layout.tml - goes in the src\main\resources\MyApp\components folder. So there are two different folder for one component. Did you do this? Regards Marinus Maris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout and $remove$
Thanks, that's what I needed! 2008/7/8 Onno Scheffers [EMAIL PROTECTED]: Hi Fabio, it looks like you're looking for the same thing I was looking for a while ago. http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-tc16448904.html#a16448904 Look for Peters' responses in that Thread. He really helped me out. regards, Onno Scheffers 2008/7/8 Fabio Kreusch [EMAIL PROTECTED]: Hello all, I'm new to Tapestry 5, and I'm having some problems: In T4, the Shell component creates the outer layout. When I insert a shell component in my pages, it ignores the page htmlhead etc and only renderizes the body, and renderizes the shell htmlhead. On T5, with the t:layout, it renders both, the layout htmlhead and the page htmlhead. How can I make it render only the layout htmlhead? And how can I make so that it don't render something, like the $remove$ tag on T4? The tutorials I found about T5 shows examples with layout this way: On the layout page, it goes the shell: html head etc On the page, just the body content, like: t:layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ${hello} /t:layout But if I do this way, when I open the page on a web browser it doesn't recognize it as a html page. I have tried adding a meta http-equiv=Content-Type content=text/html; charset=UTF-8/ It works for a preview, but when I run tapestry it throws this exception: Failure parsing template context:Start.tml: The markup in the document following the root element must be well-formed. How are you doing to preview the pages? Thanks. -- Fabio Kreusch [EMAIL PROTECTED] -- Fabio Kreusch [EMAIL PROTECTED]
Re: [T5] Layout and $remove$
Just one thing if anyone try this again: I had to add a xmlns, otherway it doesn't uses the Border component: t:type=Layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Did it worked for you without the xmlns? 2008/7/9 Fabio Kreusch [EMAIL PROTECTED]: Thanks, that's what I needed! 2008/7/8 Onno Scheffers [EMAIL PROTECTED]: Hi Fabio, it looks like you're looking for the same thing I was looking for a while ago. http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-tc16448904.html#a16448904 Look for Peters' responses in that Thread. He really helped me out. regards, Onno Scheffers 2008/7/8 Fabio Kreusch [EMAIL PROTECTED]: Hello all, I'm new to Tapestry 5, and I'm having some problems: In T4, the Shell component creates the outer layout. When I insert a shell component in my pages, it ignores the page htmlhead etc and only renderizes the body, and renderizes the shell htmlhead. On T5, with the t:layout, it renders both, the layout htmlhead and the page htmlhead. How can I make it render only the layout htmlhead? And how can I make so that it don't render something, like the $remove$ tag on T4? The tutorials I found about T5 shows examples with layout this way: On the layout page, it goes the shell: html head etc On the page, just the body content, like: t:layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ${hello} /t:layout But if I do this way, when I open the page on a web browser it doesn't recognize it as a html page. I have tried adding a meta http-equiv=Content-Type content=text/html; charset=UTF-8/ It works for a preview, but when I run tapestry it throws this exception: Failure parsing template context:Start.tml: The markup in the document following the root element must be well-formed. How are you doing to preview the pages? Thanks. -- Fabio Kreusch [EMAIL PROTECTED] -- Fabio Kreusch [EMAIL PROTECTED] -- Fabio Kreusch [EMAIL PROTECTED]
Re: [T5] Layout Component test prblem
Hi, Did you put the Layout.tml on the right package? It should be under src/main/resources/your_app_pkg/components. I recommend you to create a directory called src/main/resources/your_app_pkg/pages and put your pages inside it too. 2008/6/24 Tan [EMAIL PROTECTED] [EMAIL PROTECTED]: hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ html t:type=layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /html _ after rendered. it should be html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top Nifty Web Application /div h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p div class=nav-bottom (C) 2008 NiftyWebCo, Inc. /div /body /html but, how come. after render. it become html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /body /html can some one help me? Thank you. Cyber -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout Component test prblem
hi marcelo, thanks for your reply. yes. i did put src/main/resources/your_app_pkg/components src/main/resources/your_app_pkg/pages is there any possibility? Thank you. Regards, Cyber On Tue, Jun 24, 2008 at 8:40 PM, Marcelo Lotif [EMAIL PROTECTED] wrote: Hi, Did you put the Layout.tml on the right package? It should be under src/main/resources/your_app_pkg/components. I recommend you to create a directory called src/main/resources/your_app_pkg/pages and put your pages inside it too. 2008/6/24 Tan [EMAIL PROTECTED] [EMAIL PROTECTED]: hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ html t:type=layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /html _ after rendered. it should be html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top Nifty Web Application /div h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p div class=nav-bottom (C) 2008 NiftyWebCo, Inc. /div /body /html but, how come. after render. it become html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /body /html can some one help me? Thank you. Cyber -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout Component test prblem
Hi, I did have put some message in setuprender and onactivate. i did show me the System.out.println(test1); but, how come it didn't render the div ? Thankk you. On Tue, Jun 24, 2008 at 9:39 PM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi marcelo, thanks for your reply. yes. i did put src/main/resources/your_app_pkg/components src/main/resources/your_app_pkg/pages is there any possibility? Thank you. Regards, Cyber On Tue, Jun 24, 2008 at 8:40 PM, Marcelo Lotif [EMAIL PROTECTED] wrote: Hi, Did you put the Layout.tml on the right package? It should be under src/main/resources/your_app_pkg/components. I recommend you to create a directory called src/main/resources/your_app_pkg/pages and put your pages inside it too. 2008/6/24 Tan [EMAIL PROTECTED] [EMAIL PROTECTED]: hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ html t:type=layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /html _ after rendered. it should be html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top Nifty Web Application /div h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p div class=nav-bottom (C) 2008 NiftyWebCo, Inc. /div /body /html but, how come. after render. it become html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /body /html can some one help me? Thank you. Cyber -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout Component test prblem
sorry. should be after SetupRender. then it ended by right if there is an error. it should go to cleanuprender. but, it didn't go though that function. On Tue, Jun 24, 2008 at 10:01 PM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did have put some message in setuprender and onactivate. i did show me the System.out.println(test1); but, how come it didn't render the div ? Thankk you. On Tue, Jun 24, 2008 at 9:39 PM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi marcelo, thanks for your reply. yes. i did put src/main/resources/your_app_pkg/components src/main/resources/your_app_pkg/pages is there any possibility? Thank you. Regards, Cyber On Tue, Jun 24, 2008 at 8:40 PM, Marcelo Lotif [EMAIL PROTECTED] wrote: Hi, Did you put the Layout.tml on the right package? It should be under src/main/resources/your_app_pkg/components. I recommend you to create a directory called src/main/resources/your_app_pkg/pages and put your pages inside it too. 2008/6/24 Tan [EMAIL PROTECTED] [EMAIL PROTECTED]: hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ html t:type=layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /html _ after rendered. it should be html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top Nifty Web Application /div h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p div class=nav-bottom (C) 2008 NiftyWebCo, Inc. /div /body /html but, how come. after render. it become html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /body /html can some one help me? Thank you. Cyber -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Layout Component test prblem
ok. now all the function are successful go though. [component:setupRender] [component:beginRender] [component:beforeRenderTemplate] [component:beforeRenderBody] [component:afterRenderBody] [component:afterRenderTemplate] [component:afterRender] [component:cleanupRender] but, still didn't show div ... may i know is it can not find tml file? On Tue, Jun 24, 2008 at 10:25 PM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry. should be after SetupRender. then it ended by right if there is an error. it should go to cleanuprender. but, it didn't go though that function. On Tue, Jun 24, 2008 at 10:01 PM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I did have put some message in setuprender and onactivate. i did show me the System.out.println(test1); but, how come it didn't render the div ? Thankk you. On Tue, Jun 24, 2008 at 9:39 PM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi marcelo, thanks for your reply. yes. i did put src/main/resources/your_app_pkg/components src/main/resources/your_app_pkg/pages is there any possibility? Thank you. Regards, Cyber On Tue, Jun 24, 2008 at 8:40 PM, Marcelo Lotif [EMAIL PROTECTED] wrote: Hi, Did you put the Layout.tml on the right package? It should be under src/main/resources/your_app_pkg/components. I recommend you to create a directory called src/main/resources/your_app_pkg/pages and put your pages inside it too. 2008/6/24 Tan [EMAIL PROTECTED] [EMAIL PROTECTED]: hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ html t:type=layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /html _ after rendered. it should be html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top Nifty Web Application /div h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p div class=nav-bottom (C) 2008 NiftyWebCo, Inc. /div /body /html but, how come. after render. it become html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body h1Welcome to the Nifty Web Application!/h1 p Would you like to t:pagelink page=loginLog In/t:pagelink? /p /body /html can some one help me? Thank you. Cyber -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re : T5: Layout question
This is not the case. T4 had the $content$ and $remove$ directives. These are useful features that have not yet made it into Tapestry 5. On Wed, Apr 2, 2008 at 3:49 AM, Julien HENRY [EMAIL PROTECTED] wrote: Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5: Layout question I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can work with the pages more easily. For this I need some more markup around the page content that needs to be ignored when rendering the page. Thus something like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=content div class=content-holder div class=text-column t:type=Border Page content /div /div /div /div /body /html Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re : Re : T5: Layout question
Hi Peter, it works great, thanks! regards, Onno 2008/4/2, Peter Beshai [EMAIL PROTECTED]: What if you try making the html element the border object? Like so: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:type=Border head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:parameter name=content My content /t:parameter /div /div /div /div /body /html On Wed, Apr 2, 2008 at 11:56 AM, Onno Scheffers [EMAIL PROTECTED] wrote: Hi Peter, thanks, but this still doesn't seem to solve the issue. The Start page still renders all template-content around div class=text-column t:type=Border.../div. regards, Onno 2008/4/2, Peter Beshai [EMAIL PROTECTED]: Hi there, I believe I have a solution that works using parameters and delegates. Basically instead of including t:body/ you will delegate the content to a parameter of the component. See the source below: Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border t:parameter name=content My content /t:paramter /div /div /div /div /body /html Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:delegate to=content/ /div /div /div /div /body /html Border.java: @Parameter @Property private Block _content; On Wed, Apr 2, 2008 at 7:52 AM, Julien HENRY [EMAIL PROTECTED] wrote: Sorry Onno, I was wrong. Because Layout is basically component it doesn't work the way you (and I) expected. So it seems there is no official way to keep templates previewable with additionnal ouside markup that will be discarded at runtime to only keep the outside of the template. - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 12h59mn 26s Objet : Re: Re : T5: Layout question Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border My content /div /div /div /div /body /html My Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div
Re: T5: Layout question
It looks like that T5 doesn't have such solution as $content$ in T4. It is discussed before. http://www.nabble.com/Writing-an-FAQ-for-Tapestry-5-to15719185.html#a15739812 Even though the t:container element can't help. Thanks! DH - Original Message - From: Julien HENRY [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Wednesday, April 02, 2008 6:49 PM Subject: Re : T5: Layout question Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5: Layout question I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can work with the pages more easily. For this I need some more markup around the page content that needs to be ignored when rendering the page. Thus something like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=content div class=content-holder div class=text-column t:type=Border Page content /div /div /div /div /body /html Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re : T5: Layout question
Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border My content /div /div /div /div /body /html My Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:body / /div /div /div /div /body /html Tapestry output: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html xmlns=http://www.w3.org/1999/xhtml;headlink href=assets/tapestry/default.css rel=stylesheet type=text/cssmeta content=text/html; charset=utf-8 http-equiv=Content-TypetitleMy Project/title/headbodydiv id=main div id=content div class=content-holder html xmlns=http://www.w3.org/1999/xhtml;head[...]/headbodydiv id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigationliItem 1/liliItem 2/li/ul /div div class=text-column My content /div /div /div /div/body/html /div /div /div/body/html regards, Onno 2008/4/2, Julien HENRY [EMAIL PROTECTED]: Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5: Layout question I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can work with the pages more easily. For this I need some more markup around the page content that needs to be ignored when rendering the page. Thus something like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=content div class=content-holder div class=text-column t:type=Border Page content /div /div /div /div /body /html Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : T5: Layout question
Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5: Layout question I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can work with the pages more easily. For this I need some more markup around the page content that needs to be ignored when rendering the page. Thus something like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=content div class=content-holder div class=text-column t:type=Border Page content /div /div /div /div /body /html Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Layout question
Hi DH, thanks for your response. I missed that earlier discussion and t:container indeed doesn't seem to offer a proper work-around for the lack of $content$ when using the Layout component pattern. Does anyone know if something like $content$ will be added to T5 before the stable release? regards, Onno 2008/4/2, 宁德辉 [EMAIL PROTECTED]: It looks like that T5 doesn't have such solution as $content$ in T4. It is discussed before. http://www.nabble.com/Writing-an-FAQ-for-Tapestry-5-to15719185.html#a15739812 Even though the t:container element can't help. Thanks! DH - Original Message - From: Julien HENRY [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Wednesday, April 02, 2008 6:49 PM Subject: Re : T5: Layout question Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5: Layout question I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can work with the pages more easily. For this I need some more markup around the page content that needs to be ignored when rendering the page. Thus something like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=content div class=content-holder div class=text-column t:type=Border Page content /div /div /div /div /body /html Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : Re : T5: Layout question
Sorry Onno, I was wrong. Because Layout is basically component it doesn't work the way you (and I) expected. So it seems there is no official way to keep templates previewable with additionnal ouside markup that will be discarded at runtime to only keep the outside of the template. - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 12h59mn 26s Objet : Re: Re : T5: Layout question Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border My content /div /div /div /div /body /html My Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:body / /div /div /div /div /body /html Tapestry output: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html xmlns=http://www.w3.org/1999/xhtml;headlink href=assets/tapestry/default.css rel=stylesheet type=text/cssmeta content=text/html; charset=utf-8 http-equiv=Content-TypetitleMy Project/title/headbodydiv id=main div id=content div class=content-holder html xmlns=http://www.w3.org/1999/xhtml;head[...]/headbodydiv id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigationliItem 1/liliItem 2/li/ul /div div class=text-column My content /div /div /div /div/body/html /div /div /div/body/html regards, Onno 2008/4/2, Julien HENRY [EMAIL PROTECTED]: Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5: Layout question I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can work with the pages more easily. For this I need some more markup around the page content that needs to be ignored when rendering the page. Thus something like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=content div class=content-holder div class=text-column t:type=Border Page content /div /div /div /div /body /html Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr - To unsubscribe, e-mail
Re: Re : Re : T5: Layout question
Hi there, I believe I have a solution that works using parameters and delegates. Basically instead of including t:body/ you will delegate the content to a parameter of the component. See the source below: Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border t:parameter name=content My content /t:paramter /div /div /div /div /body /html Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:delegate to=content/ /div /div /div /div /body /html Border.java: @Parameter @Property private Block _content; On Wed, Apr 2, 2008 at 7:52 AM, Julien HENRY [EMAIL PROTECTED] wrote: Sorry Onno, I was wrong. Because Layout is basically component it doesn't work the way you (and I) expected. So it seems there is no official way to keep templates previewable with additionnal ouside markup that will be discarded at runtime to only keep the outside of the template. - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 12h59mn 26s Objet : Re: Re : T5: Layout question Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border My content /div /div /div /div /body /html My Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:body / /div /div /div /div /body /html Tapestry output: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html xmlns=http://www.w3.org/1999/xhtml;headlink href=assets/tapestry/default.css rel=stylesheet type=text/cssmeta content=text/html; charset=utf-8 http-equiv=Content-TypetitleMy Project/title/headbodydiv id=main div id=content div class=content-holder html xmlns=http://www.w3.org/1999/xhtml;head[...]/headbodydiv id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigationliItem 1/liliItem 2/li/ul /div div class=text-column My content /div /div /div /div/body/html /div /div /div/body/html regards, Onno 2008/4/2, Julien HENRY [EMAIL PROTECTED]: Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s Objet : T5
Re: Re : Re : T5: Layout question
Hi Peter, thanks, but this still doesn't seem to solve the issue. The Start page still renders all template-content around div class=text-column t:type=Border.../div. regards, Onno 2008/4/2, Peter Beshai [EMAIL PROTECTED]: Hi there, I believe I have a solution that works using parameters and delegates. Basically instead of including t:body/ you will delegate the content to a parameter of the component. See the source below: Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border t:parameter name=content My content /t:paramter /div /div /div /div /body /html Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:delegate to=content/ /div /div /div /div /body /html Border.java: @Parameter @Property private Block _content; On Wed, Apr 2, 2008 at 7:52 AM, Julien HENRY [EMAIL PROTECTED] wrote: Sorry Onno, I was wrong. Because Layout is basically component it doesn't work the way you (and I) expected. So it seems there is no official way to keep templates previewable with additionnal ouside markup that will be discarded at runtime to only keep the outside of the template. - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 12h59mn 26s Objet : Re: Re : T5: Layout question Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border My content /div /div /div /div /body /html My Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:body / /div /div /div /div /body /html Tapestry output: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html xmlns=http://www.w3.org/1999/xhtml;headlink href=assets/tapestry/default.css rel=stylesheet type=text/cssmeta content=text/html; charset=utf-8 http-equiv=Content-TypetitleMy Project/title/headbodydiv id=main div id=content div class=content-holder html xmlns=http://www.w3.org/1999/xhtml;head[...]/headbodydiv id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigationliItem 1/liliItem 2/li/ul /div div class=text-column My content /div /div /div /div/body/html /div /div /div/body/html regards, Onno 2008/4/2, Julien HENRY [EMAIL PROTECTED]: Hi Onno, You don't need to do anything
Re: Re : Re : T5: Layout question
What if you try making the html element the border object? Like so: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:type=Border head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:parameter name=content My content /t:parameter /div /div /div /div /body /html On Wed, Apr 2, 2008 at 11:56 AM, Onno Scheffers [EMAIL PROTECTED] wrote: Hi Peter, thanks, but this still doesn't seem to solve the issue. The Start page still renders all template-content around div class=text-column t:type=Border.../div. regards, Onno 2008/4/2, Peter Beshai [EMAIL PROTECTED]: Hi there, I believe I have a solution that works using parameters and delegates. Basically instead of including t:body/ you will delegate the content to a parameter of the component. See the source below: Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border t:parameter name=content My content /t:paramter /div /div /div /div /body /html Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:delegate to=content/ /div /div /div /div /body /html Border.java: @Parameter @Property private Block _content; On Wed, Apr 2, 2008 at 7:52 AM, Julien HENRY [EMAIL PROTECTED] wrote: Sorry Onno, I was wrong. Because Layout is basically component it doesn't work the way you (and I) expected. So it seems there is no official way to keep templates previewable with additionnal ouside markup that will be discarded at runtime to only keep the outside of the template. - Message d'origine De : Onno Scheffers [EMAIL PROTECTED] À : Tapestry users users@tapestry.apache.org Envoyé le : Mercredi, 2 Avril 2008, 12h59mn 26s Objet : Re: Re : T5: Layout question Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head meta http-equiv=Content-Type content=text/html; charset=utf-8/ titleMy Project/title /head body div id=main div id=content div class=content-holder div class=text-column t:type=Border My content /div /div /div /div /body /html My Border.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body div id=main div id=header[...]/div div id=content div class=content-holder div class=nav-column ul class=navigation liItem 1/li liItem 2/li /ul /div div class=text-column t:body / /div /div /div /div /body /html Tapestry output: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html
Re: T5: layout limitation?
You can always make a header and footer component and reuse them anywhere you like. /Olof On 29/02/2008, Zheng, Xiahong [EMAIL PROTECTED] wrote: How can I have more than one t:body/ in the layout template? My immediate problem is I need to include common header and footer contents in the template in stead of hard coding them since they can go to other templates as well. Thanks, Xiaohong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: T5: layout limitation?
Ahh, that's how you do it tapestry. I guess I still can't get out of the tiles mindset. Thanks. -Original Message- From: Olof Næssén [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 4:35 PM To: Tapestry users Subject: Re: T5: layout limitation? You can always make a header and footer component and reuse them anywhere you like. /Olof On 29/02/2008, Zheng, Xiahong [EMAIL PROTECTED] wrote: How can I have more than one t:body/ in the layout template? My immediate problem is I need to include common header and footer contents in the template in stead of hard coding them since they can go to other templates as well. Thanks, Xiaohong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] - Layout and Templating in T5, how to ?
Please search the archives of this mailing list - there have been several threads about layout. http://wiki.apache.org/tapestry/Tapestry5HowToSearchTheMailingLists Cheers. On 9/23/07, Mohammad Shamsi [EMAIL PROTECTED] wrote: Dear friends, I looked all pages and tutorials related to T5, but i can't find any thing about Layout, something like sitemesh or tiles, where can i find a simple example or guide about T5 Layout ? -- sincerely yours M. H. Shamsi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 layout
Thanks Howard - its quite a nice feature. Godspeed with the rest of Tap5. Chris Howard Lewis Ship wrote: It is not yet possible; it is a feature to be added. Not sure of the JIRA number. On 7/31/07, Chris Lewis [EMAIL PROTECTED] wrote: Hello all, I've seen several threads about T5 and layout components, but still none that show how to duplicate the functionality of $content$ in Tap 4. My layout works as long as the page templates include only their body (ie, no html, head, body). I liked $content$ in 4 because I could have normal-ish page templates and then tell Tap to pay attention to only what fell within $content$. So now my layout is: layouts/General.html: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titletest layout/title /head body t:body/ /body /html And a page: Login.html: div t:type=layouts/General xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; form t:type=BeanEditForm object=authRequest submitlabel=message:login.submit.label login form here /form /div I don't like that in Login.html I can't have html (etc) without having those elements duplicated in the resulting page. Is there a way around this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 layout
It is not yet possible; it is a feature to be added. Not sure of the JIRA number. On 7/31/07, Chris Lewis [EMAIL PROTECTED] wrote: Hello all, I've seen several threads about T5 and layout components, but still none that show how to duplicate the functionality of $content$ in Tap 4. My layout works as long as the page templates include only their body (ie, no html, head, body). I liked $content$ in 4 because I could have normal-ish page templates and then tell Tap to pay attention to only what fell within $content$. So now my layout is: layouts/General.html: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titletest layout/title /head body t:body/ /body /html And a page: Login.html: div t:type=layouts/General xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; form t:type=BeanEditForm object=authRequest submitlabel=message:login.submit.label login form here /form /div I don't like that in Login.html I can't have html (etc) without having those elements duplicated in the resulting page. Is there a way around this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com