Results 1 to 2 of 2

Thread: Render JSON as result of webflow execution (expression evaluation).

  1. #1
    Join Date
    Jul 2008
    Posts
    18

    Question Render JSON as result of webflow execution (expression evaluation).

    Hi Guys,

    Quick question. I am working with webflow in an application and I need to render JSON as result of an evaluation expression.

    My flow is defined in this way

    Code:
    <view-state id="..." view="...">
     <transition on="paginate">
                <set name="requestScope.echo" value="requestParameters.sEcho" type="int" />
                <set name="requestScope.startIndex" value="requestParameters.iDisplayStart" type="int" />
                <set name="requestScope.pageSize" value="requestParameters.iDisplayLength" type="int" />
    
                <evaluate expression="dashboardFlow.requestPage(requestScope.echo, requestScope.startIndex, requestScope.pageSize, flowScope.application, flowScope.statuses)" result="flowScope.result"/>
            </transition>
    </view-state>
    Is there any way to tell webflow to render the result of this expression evaluation?

    I was trying to setup the ContentNegotiatingViewResolver to use jackson, but I cant find a way to tell webflow to serialize or render an specific result.

    How do you solve this cases? What approach should I use?

    Thanks!.

  2. #2
    Join Date
    Jul 2008
    Posts
    18

    Default

    Maybe using: http://static.springsource.org/sprin...eaming-actions ?
    Which approach is the best for these cases?

    I was taking a look to a lot of examples and all of them use the approach to render fragments (html fragments) but i need to return a Serialized object.
    Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •