Hi Andrei,
Thanks for creating the bug report. Here it is: http://restlet.tigris.org/issues/show_bug.cgi?id=1285 This looks like a serious one to fix ! Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com De : Andrei Pozolotin [mailto:[email protected]] Envoyé : mercredi 29 juin 2011 20:36 À : Jerome Louvel Cc : Restlet Discuss; Restlet Code Objet : Re: templates in ClientResource? Jerome: should I file a bug for this? Thank you, Andrei -------- Original Message -------- Subject: templates in ClientResource? From: Andrei Pozolotin <mailto:[email protected]> <[email protected]> To: [email protected] Date: Tue 28 Jun 2011 12:38:03 PM CDT Hello; 1) all ClientResource() constructors do uri encoding; so this resource uri: uri : http://localhost:8181/volumes/{volume}/select/{select} becomes this reference inside the client resource: ref : http://localhost:8181/volumes/%7Bvolume%7D/select/%7Bselect%7D an when it gets into: org.restlet.engine.component.ComponentClientDispatcher protected void doHandle(Request request, Response response) { then the TemplateDispatcher does not see it as "{}" template any more and hence does not do attributes resolution; 2) what is the right way to use templates in ClientResource? thank you; Andrei. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447 <http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2779550> &dsMessageId=2779550 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2805322

