Developers,

   First off- great work! I wish I would of found this framework earlier-
it is by far the quickest, easiest server-side java web framework I have
worked with thus far (Vaadin, Spring MVC and Struts included). I never
thought I could get a lightning fast dynamic web site up within a few hours
of reading the click tutorial... simply amazing and concise.

My question is this: is there any way to leverage html & velocity templates
when responding to an Ajax request... I really do not wish to do this:

    public ActionResult onMyPageAction(){

         StringBuilder html = new StringBuilder();
         html.append(
            " <p>Some really long html with tags and such.. etc,
etc...</p>");
         return new ActionResult(html.toString(), ActionResult.HTML);
    }

I suppose it would be nice to programmatically load an html template, set
some model objects, run it through the velocity parser, and then return
that html output in the call.

Regards,
Dan

Reply via email to