multiple layout components

2010-06-07 Thread Paul Stanton

Hi list,

I have an application that needs multiple levels of common layout markup.

I'm sure this is possible but can't figure out how to get it to work via 
tap5.1


For example (very much simplified), I need BaseLayout.tml like so:

html  xmlns=http://www.w3.org/1999/xhtml; 
xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; 
xmlns:p=tapestry:parameter

body
center
t:body /
/center
/body
/html

and GroupLayout.tml like so:

html  type=baselayout xmlns=http://www.w3.org/1999/xhtml; 
xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; 
xmlns:p=tapestry:parameter

b
t:body /
/b
/html

then a page that uses the GroupLayout:

html  type=grouplayout xmlns=http://www.w3.org/1999/xhtml; 
xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; 
xmlns:p=tapestry:parameter

hello world
/html

and the result should be (minus extra html)

htmlbodycenterbhello world/b/center/body/html

Hopefully from the example (which doesn't work in that the b tags are 
missing) you can see what i'm trying to achieve. Does anyone know how to 
accomplish this?


sorry for the cryptic post.

p.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: multiple layout components

2010-06-07 Thread Christophe Cordenier
Hi

Your exemple should work, does your GroupLayout.java extends the base one ?

A concrete exemple is available at
http://github.com/robink/wooki/tree/master/src/main/java/com/wooki/components
with
BookLayout and Layout components.

2010/6/7 Paul Stanton p...@mapshed.com.au

 Hi list,

 I have an application that needs multiple levels of common layout markup.

 I'm sure this is possible but can't figure out how to get it to work via
 tap5.1

 For example (very much simplified), I need BaseLayout.tml like so:

 html  xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
 http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 xmlns:p=tapestry:parameter
 body
 center
 t:body /
 /center
 /body
 /html

 and GroupLayout.tml like so:

 html  type=baselayout xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
 http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 xmlns:p=tapestry:parameter
 b
 t:body /
 /b
 /html

 then a page that uses the GroupLayout:

 html  type=grouplayout xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
 http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 xmlns:p=tapestry:parameter
 hello world
 /html

 and the result should be (minus extra html)

 htmlbodycenterbhello world/b/center/body/html

 Hopefully from the example (which doesn't work in that the b tags are
 missing) you can see what i'm trying to achieve. Does anyone know how to
 accomplish this?

 sorry for the cryptic post.

 p.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Re: multiple layout components

2010-06-07 Thread Paul Stanton

Hi Chris,

Sorry I had made a mistake .. you are right, my simplified example 
should have worked.


Regards, p.

Christophe Cordenier wrote:

Hi

Your exemple should work, does your GroupLayout.java extends the base one ?

A concrete exemple is available at
http://github.com/robink/wooki/tree/master/src/main/java/com/wooki/components
with
BookLayout and Layout components.

2010/6/7 Paul Stanton p...@mapshed.com.au

  

Hi list,

I have an application that needs multiple levels of common layout markup.

I'm sure this is possible but can't figure out how to get it to work via
tap5.1

For example (very much simplified), I need BaseLayout.tml like so:

html  xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
xmlns:p=tapestry:parameter
body
center
t:body /
/center
/body
/html

and GroupLayout.tml like so:

html  type=baselayout xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
xmlns:p=tapestry:parameter
b
t:body /
/b
/html

then a page that uses the GroupLayout:

html  type=grouplayout xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
xmlns:p=tapestry:parameter
hello world
/html

and the result should be (minus extra html)

htmlbodycenterbhello world/b/center/body/html

Hopefully from the example (which doesn't work in that the b tags are
missing) you can see what i'm trying to achieve. Does anyone know how to
accomplish this?

sorry for the cryptic post.

p.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org