Hi all, Marc, Tal, would you mind updating the "Powered by" page in the community wiki so people can find out themselves about your projects based on Restlet? http://wiki.restlet.org/community/165-restlet.html
Back to the original question, this is possible to use FreeMarker or Velocity templates in Restlet like you would do with JSP, but as Vincent pointed out, this require manual work for each REST resource you want to expose as HTML, in addition to JSON/XML. Good news, is that we are planning to simplify this binding in version 2.1 but associating the template files with representation beans based on the bean qualified class name. The converter service would allow the developer to indicate where the template lives, for example in the classpath next to the bean class or in a separate directory. See Restlet Framework 2.1 roadmap for additional details: http://wiki.restlet.org/developers/175-restlet.html Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Tal Liron [mailto:tal.li...@threecrickets.com] Envoyé : vendredi 10 septembre 2010 22:42 À : discuss@restlet.tigris.org Objet : Re: Using a REST layer for UI and services Kauri is impressive! Also check out Prudence. If all goes well, we will have a 1.0 release candidate this weekend. :) http://threecrickets.com/prudence/ On 09/10/2010 02:15 AM, Marc Portier wrote: > you might want to give http://kauriproject.org a try > > it has restlet and all its goodies underneath, but adds > - a java and rest-service-wiring (based on spring and then some) > - some templating, routing, and client-side ajax/js support > (including a form-model) that helps out in this webservice to UI > transition > > we're wrapping up a 0.4 release in the near future > > -marc= > > On 09/06/2010 01:26 PM, webp...@tigris.org wrote: >> Hi everyone, >> >> I have a web app who is divided into a "web services" and a "ui" front end. >> Actually the "ui" is made from servlets who call a business services layers >> and my "web services" use the same business layer. >> But I wonder if it is a way to write a set of REST services for replacing >> the old web services and using these REST for the ui too. >> Does someone have some usefull tips or experience about that ? >> >> Thanks >> >> ------------------------------------------------------ >> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageI >> d=2655998 >> > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId > =2657442 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2657629 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2657878