Re: One class for differents templates ?

2007-06-27 Thread #Cyrille37#

Howard Lewis Ship a écrit :

This is an idea I am actively resisting.  I don't want there to be any
confusion or ambiguity between a class and its template.   Multiple
classes per template are somewhat ambiguous.

You could have a base class with a template, and then have subclasses,
which will inherit the base classes's template.

Yep, that the right answer.
Thanks for you clear perspicacity.

Cyrille.



On 6/27/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:

Hi,

Perhaps it is a stupid question, but in this case it should demonstrate
that I do not understand anything ;-)

Is it possible to use differents templates with the same page/component
class ?

like :
MyPage.java
and
MyPage01.html, MyPage02.html, ...

I think that with Tap4 we could do that with page specification
(MyPage01.page, MyPage02.page ...)

Thanks for you highlight,
cyrille









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: One class for differents templates ?

2007-06-27 Thread Howard Lewis Ship

This is an idea I am actively resisting.  I don't want there to be any
confusion or ambiguity between a class and its template.   Multiple
classes per template are somewhat ambiguous.

You could have a base class with a template, and then have subclasses,
which will inherit the base classes's template.

On 6/27/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:

Hi,

Perhaps it is a stupid question, but in this case it should demonstrate
that I do not understand anything ;-)

Is it possible to use differents templates with the same page/component
class ?

like :
MyPage.java
and
MyPage01.html, MyPage02.html, ...

I think that with Tap4 we could do that with page specification
(MyPage01.page, MyPage02.page ...)

Thanks for you highlight,
cyrille


-
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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



One class for differents templates ?

2007-06-27 Thread #Cyrille37#

Hi,

Perhaps it is a stupid question, but in this case it should demonstrate 
that I do not understand anything ;-)


Is it possible to use differents templates with the same page/component 
class ?


like :
MyPage.java
and
MyPage01.html, MyPage02.html, ...

I think that with Tap4 we could do that with page specification 
(MyPage01.page, MyPage02.page ...)


Thanks for you highlight,
cyrille


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]