Paul Franky:
Hi,
we've built a portlet that uses the serveResource() method (see JSR 286) for creating an response to an AJAX request. This works fine so far.
What we wanna do is to render a velocity template within this method directly to an object. This object we would like to return as a string (or bytes) in response to the AJAX request.
How could we do this? Will ThemeUtil.includeVM() be our friend?
If you use jsp rather than velocity, it will be more simple.
you can have some html tag (<div>, <span>, etc with some ids and if require you can make it hidden initially) and after executaion of your serveResource method you can set those html tags dynamically using java script(AJAX) based on your response.
This is something intresting and innovative, please reply if success

Hope This Help.
Regards,
Mazhar
Por favor, faça login para denunciar.