Re: Re : T5: Layout question

2008-04-04 Thread Howard Lewis Ship
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

2008-04-03 Thread Onno Scheffers
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

2008-04-02 Thread 宁德辉
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

2008-04-02 Thread Onno Scheffers
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

2008-04-02 Thread Julien HENRY
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

2008-04-02 Thread Onno Scheffers
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

2008-04-02 Thread Julien HENRY
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

2008-04-02 Thread Peter Beshai
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

2008-04-02 Thread Onno Scheffers
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

2008-04-02 Thread Peter Beshai
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