Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 16:44:13 -0300, Adam Zimowski wrote: * Is there a better way to store file content (cache?). Not sure if reading it on each access is the right way to go. You should definetely use some form of cache (EHCache, etc). Never user an expansion (${}) when passing a value t

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
Tapestry never disappoints! Single page loading content from activation context is so simple and easy, it just feels like the right way to go! Here is what I've got which pretty much works. Static publishable content wrapped around a layout. Few questions regarding possible improvements: * Is the

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Michael Gentry
On Fri, Jul 23, 2010 at 12:51 PM, Thiago H. de Paula Figueiredo wrote: > Struts is a completely different beast when compared to Tapestry, so most of > the approaches used in one don't apply to the other. I think that's why we are here, Thiago. :-) mrg -

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Robert Zeigler
That's how I've done it in the past. With URL rewriting, this can be made even "nicer" in that you can map your more complicated url (with extra parameters/pathinfo) to a simpler url, and vice versa Robert On Jul 23, 2010, at 7/2311:45 AM , Adam Zimowski wrote: > I was thinking about that Thi

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 13:45:57 -0300, Adam Zimowski wrote: I was thinking about that Thiago :) In fact, that's about how we do it currently with Struts. I'm going to give this a try today. Struts is a completely different beast when compared to Tapestry, so most of the approaches used in on

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
I was thinking about that Thiago :) In fact, that's about how we do it currently with Struts. I'm going to give this a try today. Adam On Fri, Jul 23, 2010 at 11:37 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 23 Jul 2010 13:31:59 -0300, Adam Zimowski > wrote: > >> I guess worst case scen

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 13:31:59 -0300, Adam Zimowski wrote: I guess worst case scenario we can precompile these empty classes during our publishing process. Need to verify if that will work but that would be the work around. Why not having a single page class that loads the content to be rende

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
I guess worst case scenario we can precompile these empty classes during our publishing process. Need to verify if that will work but that would be the work around. On Fri, Jul 23, 2010 at 11:26 AM, Adam Zimowski wrote: > Okay having to try both suggestions I'm finding that requirement of a > co

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 13:26:03 -0300, Adam Zimowski wrote: So is there a way to make Tapestry process a template without a Java class? That's really, all I need. No. On the other hand, you can have a Tapestry page to render different output based on activaction context or query parameters.

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
Okay having to try both suggestions I'm finding that requirement of a component class is what's making this simple requirement a difficult excercise. I was able to get templates to load from a different location on the filesystem, but that's not really my requirement. Here is a very simplified sce

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Howard Lewis Ship
I've managed to get more of the docs working, including Javadoc, but not the component report yet. http://tapestry.formos.com/nightly/tapx/ On Wed, Jul 21, 2010 at 11:26 AM, Adam Zimowski wrote: > Thank you much Guys. This is definitely giving me ways to explore. I > will share our solution whe

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Adam Zimowski
Thank you much Guys. This is definitely giving me ways to explore. I will share our solution when it's ready, but may post some questions first :) On Wed, Jul 21, 2010 at 11:35 AM, Thiago H. de Paula Figueiredo wrote: > Take a look at these past discussions: > > http://old.nabble.com/Tapestry-Tem

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Thiago H. de Paula Figueiredo
Take a look at these past discussions: http://old.nabble.com/Tapestry-Templates-%2B-Scripting-Language-(CMS)-to27191065s302.html#a27191192 http://old.nabble.com/How-to-load-tml-files-from-the-filesystem-instead-of-classpath--tp28462363s302p28469434.html -- Thiago H. de Paula Figueiredo Independ

Re: T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Howard Lewis Ship
The tapx library includes a dynamic templating component that is probably perfect for your needs. Unfortunately, the documentation for tapx isn't building lately, so it's a challenge to know about it. I'll try and work on that over the next couple of days. On Wed, Jul 21, 2010 at 8:00 AM, Adam Z

T5: CMS integration - multiple templates single controller?

2010-07-21 Thread Adam Zimowski
One of the big features of our current Struts-based app (we are porting to T5), is the integration with content management system (we use RedDot). What we do currently, is we have a single Struts action, which inspects query parameter for CMS page, and dynamically streams the markup for that page (

Re: T5: CMS Integration

2008-09-30 Thread Lutz Hühnken
Dear Mr. Mason, > Tapestry features so I can't us a conventional CMS like Magnolia. Has > any one else had any success with this sort of integration. yes, we had. If you look for example at "www.go7seas-kreuzfahrten.de", you will see a "hybrid". The cruises, the booking process, ship and journey

T5: CMS Integration

2008-09-13 Thread Charles Mason
Hi All, I was wondering if anyone has had any experience integrating a CMS in to a Tapestry 5 App. I really like the T5 templating system and so I am keen to keep using it. However sometimes I need to be able to allow the user to edit a pages content, however other parts of the site need Tapestry