Re: getting .page and .html from a database

2006-12-11 Thread Steve Shucker
There's some info about that at http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html. It's a config property called org.apache.tapestry.enable-reset-service. It'll enable a special URL to flush your cache. However, it only flushes the whole thing at once, so it's not somethin

Re: Re: getting .page and .html from a database

2006-12-11 Thread Benjamin S
I love you Steve. This is a much more solid approach to what I have been doing (templates stored in a filesystem, then the path saved in the db, didn't know you could get a hivemind resource from a string.) Sorry, I am about to thread jack this, but how do you handle page cache clearing? Is th

Re: getting .page and .html from a database

2006-12-11 Thread Tapestry User List
Thank you Steve. That is exactly what I were looking for. D. 2006/12/2, Steve Shucker <[EMAIL PROTECTED]>: I've got this working for pages and components, but it's probably a bit different than what you want. I have a template table in my database and I'm looking up content by a numeric PK ra

Re: getting .page and .html from a database

2006-12-02 Thread Steve Shucker
I've got this working for pages and components, but it's probably a bit different than what you want. I have a template table in my database and I'm looking up content by a numeric PK rather than a name because I have a requirement to let users version some templates. I'm also leaving out my

Re: getting .page and .html from a database

2006-12-01 Thread Jesse Kuhnert
Please don't re-post messages to the list. We all saw the first 2-3 messages you posted already. If someone wants to reply they will but doing things like this is considered very poor "mailing list" manners. On 12/1/06, Tapestry User List <[EMAIL PROTECTED]> wrote: IComponentSpecification spec =

Re: getting .page and .html from a database

2006-12-01 Thread Tapestry User List
IComponentSpecification spec = new ComponentSpecification(); spec.setComponentClassName(CommonPage.class.getName()); Resource componentResource = ??? how to instanciate a resource and fill it with a String retrieved from a database ??? spec.setSpecificationLocation(componentResource); AssetSpe