RE: Spring-loaded Restlets with Context dependencies

2009-05-17 Thread Jerome Louvel
Hi Dustin, Thanks for reporting your solution and for the support! I'm sure it will help others. Regarding the WAR client, it is normally automatically added by the ServerServlet#createComponent() method, which is invoked at the end of SpringServerServlet#createComponent. No need to declare

RE: Re: UnsupportedOperationException in DomRepresentation constructor

2009-05-17 Thread Jerome Louvel
Hi Mikis, Thanks for reporting this, I've added a check in the code. It seems that your JAXP parser doesn't support XInclude. The Javadocs does mention this case. Checked in SVN trunk. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios

RE: Creating multiple components on Tomcat

2009-05-17 Thread Jerome Louvel
Hi Tamer, Could you send us a zip of your project or a subset of it reproducing the issue? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org/ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com/

RE: No CallContext given until now when using client.post() inside a jax-rs method

2009-05-17 Thread Jerome Louvel
Hi Antonin, I quick look at your sample code and at Restlet doesn't explain what happens. I would suggest to prepare a small reproducible snippet and attach it to a new defect report. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios

RE: Can a filter read entity non-destructively?

2009-05-17 Thread Jerome Louvel
Hi Keith, Did you know we have already ported those examples? Check the org.restlet.example module for source code. Otherwise, the getEntityAsForm() method caches the result by default, so you could invoke it again later down the road. However, the Resource class doesn't know about that and from

RE: Dependency injection in Restlet 2.0 with Guice

2009-05-17 Thread Jerome Louvel
Sounds good Tim. Would you be interested to contribute and maintain such an extension to Restlet? We could start by working in Restlet Incubator, using the “com.google.inject” package. Once “javax.inject” is available and the extension is stable, we could promote it as an official Restlet

RE: SiteMesh-like functionality for Restlet?

2009-05-17 Thread Jerome Louvel
Hi Rhett, For very similar purpose, we rely on FreeMarker at Noelios and are extremely happy with it. It is easy to define and reuse HTML layout macros. I suggest having a look at their manual: http://www.freemarker.org/docs/index.html Their mailing list is also quite reactive. Another option

Re: Dependency injection in Restlet 2.0 with Guice

2009-05-17 Thread Tim Peierls
Yes, I'd be interested. I'd like to find out more about how Spring (and others) will support javax.inject before going any further in code, though. --tim On Sun, May 17, 2009 at 12:05 PM, Jerome Louvel jerome.lou...@noelios.comwrote: Sounds good Tim. Would you be interested to contribute and