Multi Dailog Close(returnFromDailog) not working with trinidad 1.2.8 
---------------------------------------------------------------------

                 Key: TRINIDAD-1121
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1121
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Archetype
    Affects Versions:  1.2.8-core,  1.0.8-core
         Environment: trinidad 1.2.8, Myfaces 1.2.2, Jboss 4.3 bundled with JSF 
1.2 Implementation
            Reporter: Nitin Sharma
            Priority: Blocker


We are upgrading our application from trinidad 1.0.1 to trinidad 1.2.8 with 
JBOSS upgrade from 4.0.5 to 4.3.o version. In this upgrade we are stuck with 
blocker related with trinidad dialog Framework.

Actually we have a requirement of opening multiple dialogs i.e. dialog over 
dialog and close of topmost dialog should close all the pop up windows and 
control should be returned to Parent page. 

This functionality is working alright with trinidad 1.0.1 but we are still not 
able to make it work with both trinidad 1.2.8 and trinidad 1.0.8.

To achieve this functionality with trinidad 1.0.1 we have done following things 
at code level,

1) On parent page a dialog is opened on action of commandButton using 
"dailog:dialogName1" and having launchListener and retrunListener associated.
2) On the dailog opened from step 1 we have another action commandButton to 
open the third level dialog and this commandButton is having a returnListner to 
handle the return of the third level dailog.
3) On the third level dialog on click of close button a action method is called 
which calls "RequestContext.getCurrentInstance().returnFromDialog(null,null) to 
close the dailog.
4) After this control is passed to the returnListener of dialog at second level 
in which again "RequestContext.getCurrentInstance().returnFromDialog(null,null) 
to close this dailog as well and return control to Parent window.

This same code is not working with trinidad 1.2.8 and as suggested in user 
forum to make it work with trinidad 1.0.8 but it didn't work with it as well.

Also I have tried the same scenario changing the trinidad 1.2.8 dialog 
framework demo as follows,

1) Changed the sayHello() returnListner method in chooseIntegerBean.java to 
call "RequestContext.getCurrentInstance().returnFromDialog(null,null)".

2) Due to Point 1 change instead of rendering the chooseInteger.jspx it will 
close it and control will be returned to launchDialog.jspx from 
simpleDialog.jspx.

But this didn't work.

Please let us know whether we are doing something wrong or the solution to this 
problem as without this we cann't move forward with our upgrade.

Please find below the link to user forum posting for this issue,

http://www.nabble.com/parent-popup-window-is-not-closing-while-closing-child-td17608513.html#a17818219

Thanks,
Nitin







-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to