Results 1 to 5 of 5

Thread: What if I needed to render more than on fragment?

  1. #1
    Join Date
    Jul 2011
    Location
    Italy
    Posts
    14

    Default What if I needed to render more than on fragment?

    Developing a web flow, I wondered about rendering more than one fragment.

    I'm using an Ajax request managed by jQuery and Id like render more than one fragment, each one attached to a different <div>. Is it possible for example in this way?
    Code:
    <transition on="submit">
                 <evaluate expression..../>
                 <render fragments="fragment1 fragment2"/>
    </transition>
    ..or in such other way?and How can I identify each fragment on the client side?

    thank you in advance...

  2. #2
    Join Date
    Aug 2011
    Posts
    17

    Default

    just curious when it is done using jquery do u still use spring.AddAjaxEventDecoration , i tried using
    $(document).ready(function() {
    $('#displayInfo').click(function() {
    $('#displayInfo').load("Booking.htm?_flowExecution Key=${flowExecutionKey}&amp;_eventId=displayInfo",
    {ajaxSource: true});
    });
    });

    it complains that i need to provide a fragment name.Could u please advice

  3. #3
    Join Date
    Jul 2011
    Location
    Italy
    Posts
    14

    Default

    Could you please attach views.xml and *-flow.xml? it'd be easier get what's wrong...

  4. #4
    Join Date
    Aug 2011
    Posts
    17

    Default

    ok i fixed that issue.

  5. #5
    Join Date
    Aug 2011
    Posts
    17

    Default

    <render fragments="fragment1,fragment2"/>
    Last edited by hello040306; Nov 11th, 2011 at 07:52 PM.

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
  •