I'm happy to hear that XTC has actually been used in production. That's enough 
for me to try to use it myself.

I suppose the whole integration shouldn't be so difficult altogether. All that 
there really is to do, is to override AbstractUrlBasedView which amounts to 
implementing a single method:

void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest 
request, HttpServletResponse response) throws Exception;

after which the whole layout should be outputed to the response stream object. 
Inside the method, the path to rendered page template is available. The model 
parameter associates names of variables with their interpretations. If those 
interpretations are some compound types, their components should be available 
through var.somePropertyName or var[123], etc.

Are there some important incompatibilities? From the projects' trac it seems 
the implementation is pretty complete when it comes to features that are 
applicable in a RESTful approach. If I see correctly, you don't mention 
<ui:fragment /> tag on your wiki. Is it available?

Well, in the end I would really like to say: thank you, thank you, thank you. I 
really spent a gazillion hours looking for some decent templating solution that 
is previewable and isn't using some home-brew domain specific language or isn't 
tightly coupled with some crappy stateful web framework.

Julek

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2664817

Reply via email to