how to get the session id

2006-08-10 Thread Tapestry User List
Hello, I need to retrieve the session ID (JSESSIONID) from IRequestCycle. Is there way to do that ? Would be nice if someone have the solution of this non-urgent problem. Cheers, Didier

getting .page and .html from a database

2006-12-01 Thread Tapestry User List
Hi, I would like retrieve a tapestry specification definition (.page) and the template (.html) from a database. For doing that, I create a class that implements ISpecificationResolverDelegate. The method findPageSpecification must return a IComponentSpecification. So I instanciate a

getting .page and .html from a database

2006-12-01 Thread Tapestry User List
Hi, I would like retrieve a tapestry specification definition (.page) and the template (.html) from a database. For doing that, I create a class that implements ISpecificationResolverDelegate . The method findPageSpecification must return a IComponentSpecification. So I instanciate a

Re: getting .page and .html from a database

2006-12-01 Thread Tapestry User List
); AssetSpecification template = new AssetSpecification(); ??? how to fill the asset with a String retrieved from a database ??? template.setLocation(new DescribedLocation(spec.getSpecificationLocation(), )); spec.addAsset($template, template); Any idea ? D. 2006/12/1, Tapestry User List [EMAIL PROTECTED

Re: getting .page and .html from a database

2006-12-11 Thread Tapestry User List
=tapestry.page.SpecificationResolverDelegate create-instance class=com.vms.infrastructure.tapestry.DatabasePageResolver / /implementation Tapestry User List wrote: IComponentSpecification spec = new ComponentSpecification(); spec.setComponentClassName(CommonPage.class.getName()); Resource

Unable to find an example of implementation of ITemplateSourceDelegate interface

2006-12-11 Thread Tapestry User List
Hello, It seems nobody has ever been able to implement the ITemplateSourceDelegate interface. Does it mean that it is simply not possible ? I tried to implement this interface but as others people, I got a NullPointerException in the method TemplateParser.addTextToken(). Here my code: public

Re: Unable to find an example of implementation of ITemplateSourceDelegate interface

2006-12-11 Thread Tapestry User List
); } } 2006/12/11, Tapestry User List [EMAIL PROTECTED]: Hello, It seems nobody has ever been able to implement the ITemplateSourceDelegate interface. Does it mean that it is simply not possible ? I tried to implement this interface but as others people, I got a NullPointerException in the method

how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Tapestry User List
Hi, Happy new year I have created a class that implements ServletContextListener. In the method public void contextDestroyed(ServletContextEvent event), I need to retrieve an Application State Object (ASO) of tapestry 4 with an application scope (not session). My question is how to

Re: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Tapestry User List
Ben -Original Message- From: Tapestry User List [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 8:45 AM To: tapestry-user@jakarta.apache.org Subject: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ? Hi, Happy new

Re: RE: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-11 Thread Tapestry User List
ServletContextListener you can just call MyApplicationObject.getInstance(). Not the prettiest solution but I believe this would work. Ben -Original Message- From: Tapestry User List [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 9:19 AM To: Tapestry users Subject: Re: Re: how to retrieve

Re: Re: @Persist problem in MyBasepage

2007-01-18 Thread Tapestry User List
and if you add this method in your subclass : public void pageValidate(PageEvent event) { super.pageValidate(event); } I think that should work. All the best, D. 2007/1/18, Stephane Decleire [EMAIL PROTECTED]: Hi, Yes, your persistent properties will be available in all your

Re: Re: Re: @Persist problem in MyBasepage

2007-01-18 Thread Tapestry User List
i meant: public void pageBeginRender(PageEvent event) { super.pageBeginRender(event); } 2007/1/18, Tapestry User List [EMAIL PROTECTED]: and if you add this method in your subclass : public void pageValidate(PageEvent event) { super.pageValidate(event); } I think

is there a way to programatically add the declaration of a components library ?

2007-02-20 Thread Tapestry User List
Hi ! I'm developing a Tapestry application. For adding a component library, I need to edit the application xml file. I need to add dynamically a library at the start of the web application. Is there a way to do that programatically without editing the application xml file? ?xml version=1.0?

Re: is there a way to programatically add the declaration of a components library ?

2007-02-20 Thread Tapestry User List
A way to resolve my problem would be to externalize the application xml file. Is there a way to link an application xml file outside the war ? So that I will be able to edit this file. Redeploy the war is not a issue if the application xml file is changed. D. 2007/2/20, Tapestry User List

Re: is there a way to programatically add the declaration of a components library ?

2007-02-20 Thread Tapestry User List
is I can't mofify the application xml file because it is in a war file. So I would like to add the component library either dynamically or by externalizing the application xml file outside the war file and link it. Hope it helps to understand my problem. D. 2007/2/20, Tapestry User List [EMAIL

Re: is there a way to programatically add the declaration of a components library ?

2007-02-21 Thread Tapestry User List
ok kiuma, I will have a look. Thanks. D. 2007/2/20, Andrea Chiumenti [EMAIL PROTECTED]: Ok I think that what you need is here www.jfly.org. ciao, kiuma On 2/20/07, Tapestry User List [EMAIL PROTECTED] wrote: Let me explain why I need that: I'm developing web application with the notion

Putting hivemind configuration files outside the WAR

2007-02-21 Thread Tapestry User List
Hi, I have configuration data (hivemind.xml) which may change reasonably often, and which I'd like to be able to change without rebuilding the war file. What's the best way to make this available to HiveMind in Tapestry? Is there a easy way to do that or do I have to subclass ApplicationServlet

Re: Putting hivemind configuration files outside the WAR

2007-03-07 Thread Tapestry User List
That's what I did and it works pretty well. Thank you. D. 2007/3/6, Jesse Kuhnert [EMAIL PROTECTED]: Subclass ApplicationServlet (or replace it).. There's not very much code there to manage so it shouldn't be too bad. On 2/21/07, Tapestry User List [EMAIL PROTECTED] wrote: Hi, I have

how to edit directly the html code of a page just before sending it to the client

2007-04-13 Thread Tapestry User List
Hi all, Some of compponents I use insert html code that I would like to remove just before sending it to the client. the code that i'd like to remove is in the header. it is a script declaration: script type=text/javascript