Announcement Announcement Module
Collapse
No announcement yet.
SWF Velocity AJAX and JSON Question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SWF Velocity AJAX and JSON Question

    I have a Velocity web app the was spring MVC and now is getting migrated to SWF (2.3.0)

    This app browser client uses two flavors of Ajax calls, ones that return html snippets and ones that return JSON.

    For the HTML snippets the SWF view events seems to work just fine:

    <view-state id="page" view="pagewithajaxcalls">
    <transition on="ajaxhtmlevent">
    <render fragments="fragmentx"/>
    </transition>
    ....

    in pagewithajaxcalls.vm I simply interrogate the $flashScope.flowRenderFragments to see what needs rendering. All of my SWF data models are in scope for rendering and it works just fine.

    I also have ajax json calls. These were implemented in spring mvc with @Controller and @ResponseBody to make the response JSON.

    Is there a graceful way for me to make those webflow? (similar to the ajax html call above?) If not how would I make the scope of the webflow available to the MVC @Controller object in order to render the response with visibility to the webflow scoped data models?

    Thanks
    -Bill
Working...
X