Announcement Announcement Module
Collapse
No announcement yet.
Transitions between two <view-state> definition in one popup window Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transitions between two <view-state> definition in one popup window

    Hi there,

    Is it possible to make a transition between 2 view states which both are defined with a popup="true" parameter?

    Code:
    <view-state id="view1" popup="true">
    ...
    <transition on="showView2" to="view2" />
    </view-state>
    
    <view-state id="view2" popup="true">
    ....
    </view-state>
    The presented above code doesn't work. It opens second popup on on="showView2" tranistion.
    If I remove the popup="true" parameter in the view2 definition the view will be rendered in the main browser window which is not I would expect.

    Any ideas how to solve this issue?

    Regards,
    Krzysztof

  • #2
    I believe this is a limitation with SWF 2.0.x. I'm hoping this will be fixed in version 3.

    Comment


    • #3
      I hope so.

      Comment


      • #4
        Small change to Spring-Dojo.js to workaround

        This code will destroy the existing dialog... Add this code to the end of

        Code:
        dojo.declare("Spring.RemotingHandler", Spring.AbstractRemotingHandler, {
        ...
        var dialog = dijit.getEnclosingWidget(formNode);
        		if (dialog)	{
        			dialog.hide();
        		}
        }

        Comment

        Working...
        X