Re: t5: layout pattern and search engine indexing
Em Mon, 13 Jul 2009 00:56:57 -0300, Angelo Chen 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
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 > 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 pattern and search engine indexing
Em Sun, 12 Jul 2009 23:54:42 -0300, Angelo Chen 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
t5: layout pattern and search engine indexing
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 Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-layout-pattern-and-search-engine-indexing-tp24455454p24455454.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
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 > 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
On Wed, May 13, 2009 at 12:01 PM, Blower, Andy 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
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 > wrote: > > > Hi, > > Hi! > > > in 5.1.0.5, I tried this: > > context:layout/images/img20.gif > > Shouldn't it be something like 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 10:05 AM, Angelo Chen wrote: > Hi, Hi! > in 5.1.0.5, I tried this: > context:layout/images/img20.gif Shouldn't it be something like ? -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
t5: layout
Hi, in 5.1.0.5, I tried this: context:layout/images/img20.gif but it does not display anything, why? Angelo -- View this message in context: http://www.nabble.com/t5%3A-layout-tp23521381p23521381.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 component: resolving unclarities
Em Wed, 21 Jan 2009 22:07:20 -0300, manuel aldana 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 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
Thiago H. de Paula Figueiredo schrieb: 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. ;) 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 :) -- 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 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
Thiago H. de Paula Figueiredo schrieb: Em Wed, 21 Jan 2009 21:30:42 -0300, manuel aldana 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 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:30:42 -0300, manuel aldana 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 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): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> If means "the real content of each page of your application", it should be . 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
Maybe reason is page flexibility. With below template the target address would always be the same page http://host/site, which is quite static. But when using the wrapper pattern the callee would be the page (e.g. http://host/login, http://host/item). this would feel more natural and layout itself is not exposed as page but as component. manuel aldana schrieb: 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 injection). what are the pros/cons for that? Site.tml (style stuff omitted): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> SergeEby schrieb: Hi, 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
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 injection). what are the pros/cons for that? Site.tml (style stuff omitted): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> SergeEby schrieb: Hi, 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
Hi, 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 inclusion? This tag is a bit > unclear to me. How does Layout.tml connect to the Start.tml as the > 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 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 inclusion? This tag is a bit unclear to me. How does Layout.tml connect to the Start.tml as the 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
[T5] Layout component: resolving unclarities
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 inclusion? This tag is a bit unclear to me. How does Layout.tml connect to the Start.tml as the 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 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
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 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]
[T5] Layout problem
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 -- View this message in context: http://www.nabble.com/-T5--Layout-problem-tp20494043p20494043.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 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 etc and >> only >> > renderizes >> > the , and renderizes the shell . >> > >> >On T5, with the , it renders both, the layout >> and >> > the page . >> >How can I make it render only the layout ? >> > >> >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: >> > >> > >> > >> > etc >> > >> > On the page, just the body content, like: >> > >> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd >> "> >> > ${hello} >> > >> > >> > 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 >> > >> > >> > >> > 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 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 etc and > only > > renderizes > > the , and renderizes the shell . > > > >On T5, with the , it renders both, the layout > and > > the page . > >How can I make it render only the layout ? > > > >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: > > > > > > > > etc > > > > On the page, just the body content, like: > > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd > "> > > ${hello} > > > > > > 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 > > > > > > > > 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$
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 etc and only > renderizes > the , and renderizes the shell . > >On T5, with the , it renders both, the layout and > the page . >How can I make it render only the layout ? > >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: > > > > etc > > On the page, just the body content, like: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > ${hello} > > > 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 > > > > 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] >
Re: [T5] Layout and $remove$
To preview, I use something like the following. http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Hello! I use a simple remove component ,with no template, to remove the header tag. public class Remove { protected boolean beginRender(){ return false; } } Shing Home page : http://www.lombok.demon.co.uk/ --- On Wed, 9/7/08, Fabio Kreusch <[EMAIL PROTECTED]> wrote: > From: Fabio Kreusch <[EMAIL PROTECTED]> > Subject: [T5] Layout and $remove$ > To: "Tapestry users" > Date: Wednesday, 9 July, 2008, 3:30 AM > 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 > etc and only > renderizes > the , and renderizes the shell > . > > On T5, with the , it renders both, the > layout and > the page . > How can I make it render only the layout > ? > > 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: > > > >etc > > On the page, just the body content, like: > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > ${hello} > > > 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 > > 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] __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Layout and $remove$
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 etc and only renderizes the , and renderizes the shell . On T5, with the , it renders both, the layout and the page . How can I make it render only the layout ? 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: etc On the page, just the body content, like: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${hello} 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 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]
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 ... 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 ? >> 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//components >>> src/main/resources//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//components. I recommend you to create a directory called src/main/resources//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 > _ > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > Welcome to the Nifty Web Application! > > >Would you like to Log In? > > > _ > > after rendered. > > it should be > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > >My Nifty Web Application > > > >Nifty Web Application > > Welcome to the Nifty Web Application! > > >Would you like to Log In? > > >(C) 2008 NiftyWebCo, Inc. > > > > > > but, how come. after render. it become > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > >My Nifty Web Application > > > > Welcome to the Nifty Web Application! > > >Would you like to Log In? > > > > > > > > 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 ? > 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//components >> src/main/resources//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//components. I recommend you to >>> create a directory called src/main/resources//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 >>> > >>> _ >>> > >>> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >>> > >>> > Welcome to the Nifty Web Application! >>> > >>> > >>> >Would you like to Log In? >>> > >>> > >>> > >>> _ >>> > >>> > after rendered. >>> > >>> > it should be >>> > >>> >>> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >>> > >>> >My Nifty Web Application >>> > >>> > >>> > >>> >Nifty Web Application >>> > >>> > Welcome to the Nifty Web Application! >>> > >>> > >>> >Would you like to Log In? >>> > >>> > >>> >(C) 2008 NiftyWebCo, Inc. >>> > >>> > >>> > >>> > >>> >>> > >>> > but, how come. after render. it become >>> > >>> >>> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >>> > >>> >My Nifty Web Application >>> > >>> > >>> > >>> > Welcome to the Nifty Web Application! >>> > >>> > >>> >Would you like to Log In? >>> > >>> > >>> > >>> > >>> > >>> >>> > >>> > >>> > 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 ? 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//components > src/main/resources//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//components. I recommend you to >> create a directory called src/main/resources//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 >> > >> _ >> > >> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >> > >> > Welcome to the Nifty Web Application! >> > >> > >> >Would you like to Log In? >> > >> > >> > >> _ >> > >> > after rendered. >> > >> > it should be >> > >> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >> > >> >My Nifty Web Application >> > >> > >> > >> >Nifty Web Application >> > >> > Welcome to the Nifty Web Application! >> > >> > >> >Would you like to Log In? >> > >> > >> >(C) 2008 NiftyWebCo, Inc. >> > >> > >> > >> > >> > >> > but, how come. after render. it become >> > >> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >> > >> >My Nifty Web Application >> > >> > >> > >> > Welcome to the Nifty Web Application! >> > >> > >> >Would you like to Log In? >> > >> > >> > >> > >> > >> > >> > >> > 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//components src/main/resources//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//components. I recommend you to > create a directory called src/main/resources//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 > > _ > > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > Welcome to the Nifty Web Application! > > > > > >Would you like to Log In? > > > > > > _ > > > > after rendered. > > > > it should be > > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > >My Nifty Web Application > > > > > > > >Nifty Web Application > > > > Welcome to the Nifty Web Application! > > > > > >Would you like to Log In? > > > > > >(C) 2008 NiftyWebCo, Inc. > > > > > > > > > > > > but, how come. after render. it become > > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > >My Nifty Web Application > > > > > > > > Welcome to the Nifty Web Application! > > > > > >Would you like to Log In? > > > > > > > > > > > > > > > > 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, Did you put the Layout.tml on the right package? It should be under src/main/resources//components. I recommend you to create a directory called src/main/resources//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 > _ > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > Welcome to the Nifty Web Application! > > >Would you like to Log In? > > > _ > > after rendered. > > it should be > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > >My Nifty Web Application > > > >Nifty Web Application > > Welcome to the Nifty Web Application! > > >Would you like to Log In? > > >(C) 2008 NiftyWebCo, Inc. > > > > > > but, how come. after render. it become > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > >My Nifty Web Application > > > > Welcome to the Nifty Web Application! > > >Would you like to Log In? > > > > > > > > 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]
[T5] Layout Component test prblem
hi all, i 'm testing tutorial in http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html in start.tml _ http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Welcome to the Nifty Web Application! Would you like to Log In? _ after rendered. it should be http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Nifty Web Application Nifty Web Application Welcome to the Nifty Web Application! Would you like to Log In? (C) 2008 NiftyWebCo, Inc. but, how come. after render. it become http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Nifty Web Application Welcome to the Nifty Web Application! Would you like to Log In? can some one help me? Thank you. Cyber
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 > > > Page content > > 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 > 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: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >Page content > > > 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: > >http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > Page content > > > > > > > > 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
Hey that's pretty nice. Solves https://issues.apache.org/jira/browse/TAPESTRY-2309 for me, anyway. J On 2-Apr-08, at 10:59 AM, Peter Beshai wrote: What if you try making the element the border object? Like so: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; t:type="Border"> My Project My content 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 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 you will delegate the content to a parameter of the component. See the source below: Start.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> charset=utf-8"/> My Project My content Border.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> [...] Item 1 Item 2 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 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> charset=utf-8"/> My Project My content My Border.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> [...] Item 1 Item 2 Tapestry output: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>http://www.w3.org/1999/xhtml";>http-equiv="Content-Type">My Projecthead> id="main"> http://www.w3.org/1999/xhtml";>[...] [...] Item 1Item 2 My content regards, Onno 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>: Hi Onno, You don't need to do anything else. Everything outside of Page content 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 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: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml&
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 element the border object? Like so: > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; t:type="Border"> > > > > My Project > > > > > > > > > My content > > > > > > > > > > > > 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 > t:type="Border"> > > > > 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 you will delegate > > the > > > content to a parameter of the component. See the source below: > > > > > > > > > Start.tml: > > > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > > > > My Project > > > > > > > > > > > > > > > > > > > > > > > > > > > My content > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Border.tml: > > > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > > > > [...] > > > > > > > > > > > > > > > Item 1 > > > Item 2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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 > > > > 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: > > > > > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > > > > > > > My Project > > > > > > > > > > > > > &
Re: Re : Re : T5: Layout question
What if you try making the element the border object? Like so: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; t:type="Border"> My Project My content 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 t:type="Border"> > > 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 you will delegate > the > > content to a parameter of the component. See the source below: > > > > > > Start.tml: > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > My Project > > > > > > > > > > > > > > > > > > My content > > > > > > > > > > > > > > > > > > > > > > > > Border.tml: > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > [...] > > > > > > > > > > Item 1 > > Item 2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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 > > > 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: > > > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > > > > My Project > > > > > > > > > > > > > > > > > > > > > My content > > > > > > > > > > > > > > > > > > > > > > > > My Border.tml: > > > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > > > > [...] > > > > > > > > > > > > > > > Item 1 > > > Item 2 > > > > > > > > > > > >
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 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 you will delegate the > content to a parameter of the component. See the source below: > > > Start.tml: > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > My Project > > > > > > > > > My content > > > > > > > > > > > > Border.tml: > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > [...] > > > > > Item 1 > Item 2 > > > > > > > > > > > > > > > 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 > > 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: > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > My Project > > > > > > > > > > > > > > My content > > > > > > > > > > > > > > > > My Border.tml: > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > http://www.w3.org/1999/xhtml"; xmlns:t=" > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > [...] > > > > > > > > > > Item 1 > > Item 2 > > > > > > > > > > > > > > > > > > > > > > > > Tapestry output: > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > xmlns="http://www.w3.org/1999/xhtml";> > href="assets/tapestry/default.css" rel="stylesheet" > > type="text/css"> > http-equiv="Content-Type">My Project > id="main"> > > > > > > > xmlns="http://www.w3.org/1999/xhtml";>[...] > id="main"> > > [...] > > > > > > > > > > Item 1Item > > 2 > > > > > > > > My content > > > > > > > > > > > > > > > > > > > > > > > > regards, > > > > Onno > > > > > > > > 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>: > > > > > > Hi Onno, > > > > &
Re: Re : Re : T5: Layout question
Hi there, I believe I have a solution that works using parameters and delegates. Basically instead of including you will delegate the content to a parameter of the component. See the source below: Start.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Project My content Border.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> [...] Item 1 Item 2 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 > 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: > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > My Project > > > > > > > My content > > > > > > > > My Border.tml: > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > [...] > > > > > Item 1 > Item 2 > > > > > > > > > > > > Tapestry output: > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> xmlns="http://www.w3.org/1999/xhtml";> href="assets/tapestry/default.css" rel="stylesheet" > type="text/css"> http-equiv="Content-Type">My Project id="main"> > > > xmlns="http://www.w3.org/1999/xhtml";>[...] id="main"> > [...] > > > > > Item 1Item > 2 > > > > My content > > > > > > > > > > > > regards, > > Onno > > > > 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>: > > > > Hi Onno, > > > > You don't need to do anything else. Everything outside of > > > > > > Page content > > > > > > 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 > > 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: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > >Page content > > > > > > 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: > > > > > http://w
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 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Project My content My Border.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> [...] Item 1 Item 2 Tapestry output: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>http://www.w3.org/1999/xhtml";>My Project http://www.w3.org/1999/xhtml";>[...] [...] Item 1Item 2 My content regards, Onno 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>: > > Hi Onno, > > You don't need to do anything else. Everything outside of > > > Page content > > > 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 > 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: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >Page content > > > 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: > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > Page content > > > > > > > > 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: [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" > 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 > > Page content > > 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 > 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: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >Page content > > > 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: > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > Page content > > > > > > > > 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Project My content My Border.tml: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> [...] Item 1 Item 2 Tapestry output: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>http://www.w3.org/1999/xhtml";>My Project http://www.w3.org/1999/xhtml";>[...] [...] Item 1Item 2 My content regards, Onno 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>: > > Hi Onno, > > You don't need to do anything else. Everything outside of > > > Page content > > > 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 > 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: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >Page content > > > 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: > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml"; xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > Page content > > > > > > > > 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
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" 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 Page content 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 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: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content 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 Page content 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 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: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content 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]
T5: Layout question
I created a Layout component called Border. According to the documentation, I have to setup my page something like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content 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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Page content Is there a way I can tell Tapestry to ignore all Markup outside of the Border component? regards, Onno
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 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 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 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] > >
T5: layout limitation?
How can I have more than one 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 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]
[T5] - Layout and Templating in T5, how to ?
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
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 , , ). 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: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> test layout And a page: Login.html: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> login form here I don't like that in Login.html I can't have (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 , , ). 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: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > test layout > > > > > > > And a page: > > Login.html: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > submitlabel="message:login.submit.label"> > login form here > > > > I don't like that in Login.html I can't have (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
T5 layout
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 , , ). 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: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> test layout And a page: Login.html: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> login form here I don't like that in Login.html I can't have (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]