Announcement Announcement Module
Collapse
No announcement yet.
What if I needed to render more than on fragment? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


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

      Comment


      • #4
        ok i fixed that issue.

        Comment


        • #5
          <render fragments="fragment1,fragment2"/>
          Last edited by hello040306; Nov 11th, 2011, 08:52 PM.

          Comment

          Working...
          X