Announcement Announcement Module
Collapse
No announcement yet.
Velocity rendering of dwr request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Velocity rendering of dwr request

    Hi!

    I'd like to use spring with dwr and annotations, currently I'm using spring and velocity for rendering and I now like to add ajax via dwr but the only way to handle this as I see it it to render the xml output directly from the method.

    But this is not what I'd like. I'd prefer to have the dwr to return an object, eg ModelAndView, and then let the viewresolver handle the rendering of that.

    Is there any links to an example doing this? Is my idea wrong?

    One may ask why, and the reason is that I'd like to use the same kind of template files for rendering the entire page as when I render some part of the page.

    Rendering the entire page:
    Code:
    <html>
    <body>
    #parse("innerobject.tmpl")
    </body>
    </html>

    And then rendering some ajax request will result in the innerobject.tmpl beeing used for rendering.

    Do I make my self clear?

    Kind regars
    /Per
Working...
X