Re: Dynamic Tiles?

2004-01-12 Thread Christian Schlaefcke
Could you check your system date (01.01.1970). Its bad getting new mails for a thread at the very bottom of a maildir. Thanks and Regards, Chris Here goes a response to your question... Pedro Salgado - PREVIOUS MESSAGE (on this mailing list) Hi Robert.. I guess you could

Re: Dynamic Tiles?

2004-01-12 Thread Pedro Salgado
I have a problem with my battery that makes the system date reset to 1970!!! So if you continue see my mails on the bottom of the maildir it means that... my hardware vendor hasn't solved my problem :) Pedro Salgado On 12/01/2004 08:37, Christian Schlaefcke [EMAIL PROTECTED] wrote: Could

Dynamic Tiles?

2004-01-08 Thread Anderson, James H [IT]
I'm wondering if Tiles provides support for choosing a Tile dynamically, i.e., programatically at runtime. Our business users have the capability to not only modify include files, but to create new include file directories based on client defined data. We're looking for a way to support this in

Re: Dynamic Tiles?

2004-01-08 Thread Pedro Salgado
Here goes a response to your question... Pedro Salgado - PREVIOUS MESSAGE (on this mailing list) Hi Robert.. I guess you could achieve the same using the controllerClass attribute and building your class.. For instance, I have this definition in the tiles-defs.xml file: ---

Re: Dynamic Tiles?

2004-01-08 Thread Pedro Salgado
Here goes a response to your question... Pedro Salgado - PREVIOUS MESSAGE (on this mailing list) Hi Robert.. I guess you could achieve the same using the controllerClass attribute and building your class.. For instance, I have this definition in the tiles-defs.xml file: ---

Re: Dynamic Tiles?

2004-01-08 Thread Domingo A. Rodriguez S.
I definitively agree with that answer :P --- Pedro Salgado [EMAIL PROTECTED] escribió: Here goes a response to your question... Pedro Salgado - PREVIOUS MESSAGE (on this mailing list) Hi Robert.. I guess you could achieve the same using the controllerClass attribute

RE: Dynamic Tiles?

2004-01-08 Thread Anderson, James H [IT]
Thanks very much! I'll need to spend a little time digesting this, but it certainly looks like what I want. Thanks again. jim -Original Message- From: Pedro Salgado [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 4:04 PM To: Struts Users Mailing List Subject: Re: Dynamic

Re: Dynamic Tiles?

2004-01-08 Thread Pedro Salgado
:D... Fortunately I flag the best/most usefull answers I read... This way I can also help someonelse... It was also a big help for me :) ... Pedro Salgado On 08/01/2004 21:17, Domingo A. Rodriguez S. [EMAIL PROTECTED] wrote: I definitively agree with that answer :P --- Pedro Salgado

Re: Dynamic Tiles xml definitions

2002-11-20 Thread Cedric Dumoulin
Yes, it is possible. You can access the definition factory, and modify definitions yourself. This require a well understanding of the structure, because a lot of object are shared, especially when their is some inheritance. Also, you can write your own definition factory implementing the

Dynamic Tiles xml definitions

2002-11-14 Thread Mark Ayad
I've just started to use Tiles and Struts together. I have a question regarding the xml definitions loaded into memory. My question is would it be possible to parse / modify the definition file at runtime To say switch the template ? Mark

Re: Dynamic tiles (attn: Cedric)

2002-02-07 Thread Cedric Dumoulin
Jim Crossley wrote: Thanks, Cedric. I got this to work in the perform method of my Action class: ComponentDefinition definition = DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(), request,

Re: Dynamic tiles (attn: Cedric)

2002-02-07 Thread Jim Crossley
One more question... ComponentDefinition definition = DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(), request, getServlet().getServletContext()); definition.putAttribute( title, Overloaded

Re: Dynamic tiles (attn: Cedric)

2002-02-07 Thread Cedric Dumoulin
If the actionForward contains a definition name, the definition is retrieved, and missing attributes are added to your definition. Otherwise, ActionForward has no effect, and I think you should be able to return null. Jim Crossley wrote: One more question... ComponentDefinition

Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
I've just started using Tiles, and I really like it. I want to be able to overload my attributes in my struts actions prior to forwarding to the tiles definitions, but I'm having some trouble. I found this message in the archives:

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Cedric Dumoulin
First, check that you use tilesForStruts1.0.jar, as you are using Struts1.0.1. Second, check if your tiles/struts1.0.1 installation works : * install tiles-doc.jar or struts-tiles.jar * replace WEB-INF/lib/struts.jar with struts.jar from 1.0.1 * replace tiles.jar with

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
I don't mean to be a bondhead, but all I did was copy the tiles-doc.jar to Tomcat's webapps directory. Wouldn't it be bundled with the correct struts version? The page, /test/testStrutsAction.jsp, *does* run correctly, but /test/testAction.do does not. It's the latter that seems to be what I

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Cedric Dumoulin
tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So you can try the mentioned url test directly on it, and it should run. If not, let me know. However, you have mentioned that you try to use Tiles with Struts1.0.1. If true, you need to use

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
Cedric Dumoulin [EMAIL PROTECTED] writes: tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So you can try the mentioned url test directly on it, and it should run. If not, let me know. This runs: http://localhost:8080/tiles-doc/test/testStrutsAction.jsp

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
Ok, after looking at testStrutsAction.jsp, I realized that testAction.do is not doing exactly what I thought it was, and invoking it standalone was never going to work anyway. I'm now beginning to think that what I really need is a Controller, so I'm going to focus my efforts there for now. The

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Cedric Dumoulin
So your install seem to work perfectly. Sorry for the wrong response before, it is what happen when you do to much things in the same time. It is normal that the componentContext is not found if you access directly the action (with *.do). The context is set when the tile is inserted, or

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Cedric Dumoulin
Jim Crossley wrote: I'm now beginning to think that what I really need is a Controller, so I'm going to focus my efforts there for now. The docs mention that a Controller could be implemented as a Struts action. Does that require the Action to implement the Controller interface or is

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
Thanks, Cedric. I got this to work in the perform method of my Action class: ComponentDefinition definition = DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(), request,

Dynamic tiles definitions (was Re: tiles vs templates or both)

2001-10-01 Thread Cedric Dumoulin
Hi, There is several way to have dynamic definition. The first one is to write your own definitions factory implementing 'ComponentDefinitionsFactory'. The getDefinition() method is called each time you insert a definition. So you can implement your own to serve your dynamic definition.