Announcement Announcement Module
Collapse
No announcement yet.
Using popup in Spring Web Flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using popup in Spring Web Flow

    Hi!

    I have a popup in my application:

    jsp:
    <script type="text/javascript" src="/ruukkiforms/resources/dojo/dojo.js" ></script>
    <script type="text/javascript" src="/ruukkiforms/resources/spring/Spring.js" ></script>
    <script type="text/javascript" src="/ruukkiforms/resources/spring/Spring-Dojo.js" ></script>

    <a id="editLink" href='${flowExecutionUrl}&amp;_eventId=editLink' ><fmt:message key="button.edit"/></a>
    <script type="text/javascript">
    Spring.addDecoration(new Spring.AjaxEventDecoration({
    elementId: 'editLink',
    event: 'onclick',
    popup: true
    }));
    </script>

    flow.xml:
    <action-state id="editLink">
    <evaluate expression="person.findAddressById(id)" result="flowScope.address" />
    <transition to="addressForm" />
    </action-state>

    <view-state id="addressForm" model="address" view="/address/form" popup="true">
    <transition on="search" to="addressForm" />
    <transition on="save" to="saveAddress" />
    <transition on="cancel" to="cancelAddress" bind="false" />
    </view-state>

    The problem is, how can I make transition to the same popup-window? Like when I click the search-button in popup-window, the result would appear in the same popup-window?

    Now when I click the button, the popup-window change as normal page.
Working...
X