You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Sergey G. Kashin" <ay...@ngs.ru> on 2006/05/22 13:13:41 UTC

Multiple skins with Tapestry

How to create multiple designs with tapestry for one application?

may be good idea to use folders for skins
design1/Home.html
design2/Home.html
design3/Home.html

but for all that pages will need create view
design1/Home.java
design2/Home.java
design3/Home.java

that not very nice.

Any ideas to resolve this problem?


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


Re: Multiple skins with Tapestry

Posted by Jesse Kuhnert <jk...@gmail.com>.
Yes definitely css. You could try doing something clever with navigation to
iterate over your themed directories, but duplicating source (whether html
or java) sounds like a nightmare.

I've done the css theme solution with tapestry before, it was extremely
easy. The border component managed which css theme was selected and served
that out to the @Shell component appropriately.

On 5/22/06, Konstantin Ignatyev <kg...@yahoo.com> wrote:
>
> Tapestry skins feature is in the 'wish list'
> http://wiki.apache.org/tapestry/WishList
>
> Any ideas if it will be moved into TODO list?
>
> Paul Cantrell <ca...@pobox.com> wrote: Yes, CSS for sure, and a border
> component that swaps out different
> CSS files based on some parameter.
>
> On May 22, 2006, at 9:16 AM, mike jones wrote:
>
> > css?
> >
> > On 5/22/06, Sergey G. Kashin  wrote:
> >>
> >> How to create multiple designs with tapestry for one application?
> >>
> >> may be good idea to use folders for skins
> >> design1/Home.html
> >> design2/Home.html
> >> design3/Home.html
> >>
> >> but for all that pages will need create view
> >> design1/Home.java
> >> design2/Home.java
> >> design3/Home.java
> >>
> >> that not very nice.
> >>
>
>
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: Multiple skins with Tapestry

Posted by "Tian-Jian \"Barabbas\" Jiang@Gmail" <ba...@gmail.com>.
Konstantin Ignatyev wrote:
> Tapestry skins feature is in the 'wish list' 
> http://wiki.apache.org/tapestry/WishList
>
> Any ideas if it will be moved into TODO list?
>
>   
I'm considering a similar requirement, too.

Actually, I would like to customize contrib:TablePages' navigation bar 
with CSS, because according to Google results, we can only extend our 
own Java classes to do so.

And then I found a component library for Tapestry called TapFx: 
http://andyhot.di.uoa.gr/tapfx/app?service=page/Home
It seems to make us closer to the skin feature.

    Regards,
Mike

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


Re: Multiple skins with Tapestry

Posted by Konstantin Ignatyev <kg...@yahoo.com>.
Tapestry skins feature is in the 'wish list' 
http://wiki.apache.org/tapestry/WishList

Any ideas if it will be moved into TODO list?

Paul Cantrell <ca...@pobox.com> wrote: Yes, CSS for sure, and a border component that swaps out different  
CSS files based on some parameter.

On May 22, 2006, at 9:16 AM, mike jones wrote:

> css?
>
> On 5/22/06, Sergey G. Kashin  wrote:
>>
>> How to create multiple designs with tapestry for one application?
>>
>> may be good idea to use folders for skins
>> design1/Home.html
>> design2/Home.html
>> design3/Home.html
>>
>> but for all that pages will need create view
>> design1/Home.java
>> design2/Home.java
>> design3/Home.java
>>
>> that not very nice.
>>



Re: Multiple skins with Tapestry

Posted by Paul Cantrell <ca...@pobox.com>.
Yes, CSS for sure, and a border component that swaps out different  
CSS files based on some parameter.

On May 22, 2006, at 9:16 AM, mike jones wrote:

> css?
>
> On 5/22/06, Sergey G. Kashin <ay...@ngs.ru> wrote:
>>
>> How to create multiple designs with tapestry for one application?
>>
>> may be good idea to use folders for skins
>> design1/Home.html
>> design2/Home.html
>> design3/Home.html
>>
>> but for all that pages will need create view
>> design1/Home.java
>> design2/Home.java
>> design3/Home.java
>>
>> that not very nice.
>>
>> Any ideas to resolve this problem?

_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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


Re: Multiple skins with Tapestry

Posted by mike jones <mi...@gmail.com>.
css?

On 5/22/06, Sergey G. Kashin <ay...@ngs.ru> wrote:
>
> How to create multiple designs with tapestry for one application?
>
> may be good idea to use folders for skins
> design1/Home.html
> design2/Home.html
> design3/Home.html
>
> but for all that pages will need create view
> design1/Home.java
> design2/Home.java
> design3/Home.java
>
> that not very nice.
>
> Any ideas to resolve this problem?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
<span style="color:red">test</span>

Re[4]: Multiple skins with Tapestry

Posted by Sergey Kashin <ay...@ngs.ru>.
JC> Have you seen the "CSS Zen Garden"?  You'd be surprised what you can do with
JC> CSS...

No,but i'm not planed to use CSS, pages will be so different, may be
different components bettwen pages,
in two words not only visual differents
need something like localaize pages


-- 
Best regards,
 Sergey                            mailto:ayrton@ngs.ru


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


RE: Re[2]: Multiple skins with Tapestry

Posted by Konstantin Ignatyev <kg...@yahoo.com>.
Here we go again...

The skin discussion happens every 8 months I believe....  
Shall we check archives or go over exacly the same arguments one more time?

James Carman <ja...@carmanconsulting.com> wrote: Have you seen the "CSS Zen Garden"?  You'd be surprised what you can do with
CSS...

http://www.csszengarden.com/



-----Original Message-----
From: Sergey Kashin [mailto:ayrton@gorodok.net] 
Sent: Monday, May 22, 2006 11:09 AM
To: tapestry-user@jakarta.apache.org
Subject: Re[2]: Multiple skins with Tapestry

Hello mike,

Monday, May 22, 2006, 9:17:08 PM, you wrote:

mj> css?
no, disigns will be very different. Need various templates

>>
>> How to create multiple designs with tapestry for one application?
>>
>> may be good idea to use folders for skins
>> design1/Home.html
>> design2/Home.html
>> design3/Home.html
>>
>> but for all that pages will need create view
>> design1/Home.java
>> design2/Home.java
>> design3/Home.java
>>
>> that not very nice.
>>
>> Any ideas to resolve this problem?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>





-- 
Best regards,
 Sergey                            mailto:ayrton@gorodok.net


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



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



RE: Re[2]: Multiple skins with Tapestry

Posted by James Carman <ja...@carmanconsulting.com>.
Have you seen the "CSS Zen Garden"?  You'd be surprised what you can do with
CSS...

http://www.csszengarden.com/



-----Original Message-----
From: Sergey Kashin [mailto:ayrton@gorodok.net] 
Sent: Monday, May 22, 2006 11:09 AM
To: tapestry-user@jakarta.apache.org
Subject: Re[2]: Multiple skins with Tapestry

Hello mike,

Monday, May 22, 2006, 9:17:08 PM, you wrote:

mj> css?
no, disigns will be very different. Need various templates

>>
>> How to create multiple designs with tapestry for one application?
>>
>> may be good idea to use folders for skins
>> design1/Home.html
>> design2/Home.html
>> design3/Home.html
>>
>> but for all that pages will need create view
>> design1/Home.java
>> design2/Home.java
>> design3/Home.java
>>
>> that not very nice.
>>
>> Any ideas to resolve this problem?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>





-- 
Best regards,
 Sergey                            mailto:ayrton@gorodok.net


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



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


Re[2]: Multiple skins with Tapestry

Posted by Sergey Kashin <ay...@gorodok.net>.
Hello mike,

Monday, May 22, 2006, 9:17:08 PM, you wrote:

mj> css?
no, disigns will be very different. Need various templates

>>
>> How to create multiple designs with tapestry for one application?
>>
>> may be good idea to use folders for skins
>> design1/Home.html
>> design2/Home.html
>> design3/Home.html
>>
>> but for all that pages will need create view
>> design1/Home.java
>> design2/Home.java
>> design3/Home.java
>>
>> that not very nice.
>>
>> Any ideas to resolve this problem?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>





-- 
Best regards,
 Sergey                            mailto:ayrton@gorodok.net


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