RE: RE: Does Tiles supports skins???

2003-08-22 Thread Holman, Cal
Antonio>> The trick is that the layout is actual a put attribute.  You then use that 
layout as the target of the Request Dispatcher.  I took the example class Cedric 
provided and modified it some.  This weekend I can post to the web along with the 
tiles.xml.

Cal 

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 03:58
To: Struts Users Mailing List
Subject: Re: RE: Does Tiles supports skins???

Cal,

Thanks, it works but I have an additional question.

Creating a tiles action and using the findAttributeNames method of the
Component Context, I get only the put attributes, but how can I get
the path of the definition?, because I have different layouts for the
skins.

I read in the Tiles Advanced Features how can I switch the path
including a path with the Request Dispatcher class, but I should read
first the path attribute to change the skin directory.

Thanks in advance.

Antonio


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

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



Re: RE: Does Tiles supports skins???

2003-08-22 Thread [EMAIL PROTECTED]
Cal,

Thanks, it works but I have an additional question.

Creating a tiles action and using the findAttributeNames method of the 
Component Context, I get only the put attributes, but how can I get 
the path of the definition?, because I have different layouts for the 
skins.

I read in the Tiles Advanced Features how can I switch the path 
including a path with the Request Dispatcher class, but I should read 
first the path attribute to change the skin directory.

Thanks in advance.

Antonio


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



RE: Does Tiles supports skins???

2003-08-21 Thread Holman, Cal
You can achieve this by using a controllerURL to change the definition on the fly.  I 
use this technique for my personal site so the user can set their own style sheet and 
layout.  I am not a graphics person so the results are not very impressive.  Here is 
the link: http://www.calandva.com/holmansite/do/portal/Settings 

Cal 

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 19:52
To: [EMAIL PROTECTED]
Subject: Does Tiles supports skins???

Hi,

I am am newbie working with Struts and Tiles and I am having problems
to develop and application that the user can make a choice among the
differents skins from the application.

The layout I'm currently using is the classic one (header, menu, body
and footer)

Each skin has its own css's, layouts, images, and the header, menu and
footer.

I have the tiles defined in the tile-defs.xml for the default skin and
my first thought was to overload the whole tile definition at runtime
through a jsp,using the user skin preference that I have in session.

But does not work, because when I put in the value a <%= => the
results is an empty string form this tile.

Does someone know a method to do this?

Thanks folks.

Antonio González


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

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



Does Tiles supports skins???

2003-08-20 Thread [EMAIL PROTECTED]
Hi,

I am am newbie working with Struts and Tiles and I am having problems 
to develop and application that the user can make a choice among the 
differents skins from the application.

The layout I'm currently using is the classic one (header, menu, body 
and footer)

Each skin has its own css's, layouts, images, and the header, menu and 
footer.

I have the tiles defined in the tile-defs.xml for the default skin and 
my first thought was to overload the whole tile definition at runtime 
through a jsp,using the user skin preference that I have in session.

But does not work, because when I put in the value a <%= => the 
results is an empty string form this tile.

Does someone know a method to do this?

Thanks folks.

Antonio González


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