1 Reply Latest reply on Apr 8, 2010 3:54 PM by mxvx

    Flex PopupManager information

    mxvx

      Hi

       

      I have a created a component for Error Page namely ErrorPage.mxml

      If have added it in a method named faulthanlder. This method is the common fault handler for all the remote object which I have in my applications.

       

      Where there is only one fault it is behaving normally. When there is a fault from 2 or more services It doesn't display anything and I could see only a gray background. I am not able to see the errorpage. Can anyone suggest me a solution to have only one popup even if there is  n number of errors.

       

      if

       

       

       

       

       

      (objErrorPage==null) {

      objErrorPage =

      new ErrorPage();

      }

       

      if(blnPopup == false) {

      blnPopup =

      true;

      PopUpManager.addPopUp(objErrorPage,

      this,true);

      objErrorPage.faultCode.text=

      "Fault Code: " + event.fault.faultCode;

      objErrorPage.faultDetail.text=

      "Fault Detail: " + event.fault.faultDetail;

      objErrorPage.faultString.text=

      "Fault String: " + event.fault.faultString;

      PopUpManager.centerPopUp(objErrorPage);

      CursorManager.removeAllCursors();

      }

        • 1. Re: Flex PopupManager information
          mxvx Level 1

          hi.

           

          the problem has been resolved, sorry to bother you guys..

          The gray background was because of the PopUpManager.addPop(...) being call called twice or more that than.

          The first window is visible and when I closed the first window by some action, the second window was not displaying it correctly. instead of displaying the visual component it displayed only a gray box.

          I set a flag and initialized it only once so that I could avoid the issue.

           

          Regards

          mxvx