Re: Can we remove data-source support?

2005-03-01 Thread brenmcguire
Removing data source support? It's ok for me... I took a piece of code from Struts DataSource support for this project: http://sdsmanager.sourceforge.net/ Obviously with all the needed disclaimers :-P It works as a plugin for Struts. I made that library because I think a better DataSource support i

Re: [Standalone Tiles] Tiles Refactoring Part 2

2005-10-06 Thread brenmcguire
> ... my hunch is that there are very few people who have actually written code that depends on the implementation details of Tiles besides writing Controllers ... Err... Include me in the list please: http://mutidimensions.sf.net/ Dimensions is based on DefinitionsFactory, FactorySet and various

Re: [Standalone Tiles] Tiles Refactoring Part 2

2005-10-06 Thread brenmcguire
Cedric Dumoulin wrote: > But be care, there is some not so often used API that are used by some companies. I hope these APIs will remain. I think of : > ... > - the i18n mechanism to load alternative definition files Yeah right. Dimensions uses that mechanism to show different pages for diffe

Re: [Standalone Tiles] Tiles Refactoring Part 2

2005-10-07 Thread brenmcguire
Joe Germuska wrote: > Thanks for speaking up! That said, the code we're talking about is in a different package (org.apache.tiles rather than org.apache.struts.tiles) so your project could maintain its dependency on the original Struts Tiles code and make a reasoned decision about how and when to

[Tiles] Resolving inheritances improvements

2005-10-07 Thread brenmcguire
Hi list! As I promised here is my suggestion... In Dimensions I had to use a workaround for a missing feature. In order to resolve inheritances and overriding definitions between multiple definition files, i need to follow these steps: 1) Find the "leaf" definition file; 2) build the path from this

Re: [Tiles] Resolving inheritances improvements

2005-10-07 Thread brenmcguire
Whooops a missing step! > >1) Find the "leaf" definition file; >2) If it is already loaded, finish. >3) Create an empty definitions set; >4) put all missing definitions loaded into the definitions set; >5) find the parent definition file; >6) if it is already loaded, put all missing definitions (b

Re: [Tiles] Resolving inheritances improvements

2005-10-10 Thread brenmcguire
Greg Reddin wrote: > If I understand you correctly Standalone Tiles may be doing that now by default. I'll have to take another look at it (maybe add another test case). > What do you mean with "by default"? As you can see in XmlDefinitionsSet and FactorySet's JavaDoc it says (at the method "ex

Re: [Tiles] Resolving inheritances improvements

2005-10-10 Thread brenmcguire
[EMAIL PROTECTED] wrote: > >... But suppose that, one day, there will be some dynamic Tiles >definitions (i.e. think about customizable home pages with preferred >sections such as MyYahoo). Do I have to reload all definitions files from >root for all the users?... Uh wrong example, you know this

Re: [Tiles] Resolving inheritances improvements

2005-10-11 Thread brenmcguire
Greg Reddin wrote: > > Ok, I may have misunderstood. I thought you were saying that the following setup doesn't work: > ... (omissis) > > I thought you were saying "child" would not be able to extend > "parent" because they exist in different files. I *think* this feature > exists, but I'd have

[Standalone Tiles] TilesRequestProcessor and TilesPlugin

2005-12-01 Thread brenmcguire
I noticed that TilesRequestProcessor and TilesPlugin have disappeared from Tiles standalone. I know that TilesPlugin absence could be replaced with TilesServlet (I think it only initializes the definitions factory, correct me if I am wrong) but TilesRequestProcessor is useful for Struts users. I wa

Re: [Standalone Tiles] TilesRequestProcessor and TilesPlugin

2005-12-01 Thread brenmcguire
Whoops I have to correct myself. I use: mapping.findForward("success"); while in struts-config.xml I put this: But the question is the same ;-) [EMAIL PROTECTED] wrote: >I noticed that TilesRequestProcessor and TilesPlugin have disappeared from >Tiles standalone. >I know that TilesPlugin absenc

[Standalone Tiles] From Struts-Tiles to Tiles-standalone incompatibilities

2005-12-01 Thread brenmcguire
Hello (again) :-) I am in the process of porting a product based upon (Struts) Tiles called "Dimensions". It makes intensive use of "FactorySet" class. I am trying to port a simple example to Tiles Standalone, but I'm having a growing headache! :-P So let's start: 1) First of all I noticed that yo

Re: [Standalone Tiles] TilesRequestProcessor and TilesPlugin

2005-12-01 Thread brenmcguire
Joe Germuska wrote: > > I would think that if you were using the TilesServlet mapped to handle requests for "*.tiles" then > >> > > > would just become > >> > > > or something similar depending on how the TilesServlet maps paths to definitions. > > I haven't tried this, but it seems to make sens

Re: [Standalone Tiles] From Struts-Tiles to Tiles-standalone incompatibilities

2005-12-01 Thread brenmcguire
I was wondering where I might hack the code when I saw this in TilesUtilImpl: if (definition == null) { if (!factory.isLocaleProcessed(request.getLocale())) { // FIXME This will modify the factory as well as the definitions // bu

Re: [Standalone Tiles] From Struts-Tiles to Tiles-standalone incompatibilities

2005-12-01 Thread brenmcguire
Greg Reddin wrote: > > Yes, I understand, and I still have your messages from about a month ago in my inbox and have not forgotten your requests, though I'm not sure I fully understand what you are trying to do. The typical scenario is: 1) take the HttpServletRequest, in particular a bean (in se