Can not alert or popup in module

I am pretty much new to modular applications so here's my problem.
I wanna show up a popup window in the module, and I need the window to be modular
I don't know how to work around this. Do I need popup everything from main application?
main application code
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:ModuleLoader url="TestAlert.swf">
</s:ModuleLoader>
</s:Application>
module code
<?xml version="1.0" encoding="utf-8"?>
<s:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
protected function button1_clickHandler(event:MouseEvent):void
// TODO Auto-generated method stub
Alert.show("hmmmm...","something wrong");//error here
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Button x="176" y="119" label="Button" click="button1_clickHandler(event)"/>
</s:Module>

the error I got is:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
     at mx.managers::PopUpManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createModalWindow()[E:\dev\hero_private\framew orks\projects\framework\src\mx\managers\PopUpManagerImpl.as:701]
     at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\hero_private\frameworks\projects\framewor k\src\mx\managers\PopUpManagerImpl.as:400]
     at mx.managers::PopUpManager$/addPopUp()[E:\dev\hero_private\frameworks\projects\framework\s rc\mx\managers\PopUpManager.as:193]
     at mx.controls::Alert$/show()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Ale rt.as:618]
     at TestAlert/button1_clickHandler()[/Users/dawn/Documents/workspace/work/dev/sandbox/modulet est/src/TestAlert.mxml:12]
     at TestAlert/___TestAlert_Button1_click()[/Users/dawn/Documents/workspace/work/dev/sandbox/m oduletest/src/TestAlert.mxml:20]

Similar Messages

  • Alert or Popup in Modules

    Hi,
    i'm developing an applicatin who uses Modules. The modules load and unload well and after unload a module, i can see in the profiler, the garbage collection remove the instance. so far so good.
    now, i'm using a popup or alert in my modul (for data modification).
    I load and unload my module again, without starting the alert or popup and all works fine. but after clicking a button, which triggers an alert, and unload my module again, the module won't remove by garbage collection. my instances in profiler is 1. Doing the same procedure, i generate in profiler two instances but after unload the module, the instance fell down to 1.
    So i assume, that flex hold a reference to the alert-window i the first case. the second use the reference from the first. accordingly, the second will be garbage collected.
    i'm trying to register the PopupManager in my ApplicationDomain with the follwowing two lines: import mx.managers.PopUpManager;  and privat var popuop:PopupManager. But nothing changes.
    What is the right way to use Alerts (or Popups) in modules without references.
    Here is my code:
    To open my popup with an mxml-component:
    PopUpManager.addPopUp(inputMask,Application.application as DisplayObject, true);
    and my handler for the close-event of my mxml-component:
    PopUpManager.removePopUp( CDBInputMask(event.currentTarget));
    inputMask = null;
    Thanks in advanced.
    Frank

    Alex,
    thank you again.
    I'm trying to get the information as you said:
    "moduleInfo's loaded property simply reflects whether it has released its reference.  Any other references will still pin it.  The profiler will show that."
    can you give me a hint, how can i get this information.
    After pinning my module on memory caused by click on dg, the simpleModule will be shown in the loitering objects and i can see (48) behind it. but it's hard for me to find the references created by frameword or creatd by me.
    My flex-version is 3.2.0, imho the latest version.
    i read your post and work through, so, before i unload my module by button in mainapplication, i set the focus per "focusManager.setFocus(loadBtn);" away from my module. Also, i placed a dg on my mainApp with a dataProvider. Both won't fix my problem. in my example, there is no styles defined at all.
    i think, i haver to get the information from profiler, which reference pin my module inmemory, but i'm unable to locate it at this time.
    The unloading works fine until i click on the dg or typing in some letters. Imho, there must be a procedure that will pin the module after getting some buttonDownEvents (or something else). But i'm not so deep in the framework to figure out the procedure for my self.....
    Can you give me further information, please.
    thank you for your helpful answers. unfortunately i found no solution for my problem.
    Frank

  • Can not get prompt popup for save password and plugin install

    I am using Firefox 10.0.0.2 on Win7 b4bit os. I found that I can never get prompt popup with any password form submission. Even the plugin install prompt popup can never turn up.. The prompt popup can show in safe mode only.
    I tried to re-install the whole browser and cleared all plugins/extensions. Never worked...PLEASE HELP!

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

  • Eclipse web project using Glassfish 4.1 can not load some libraries in modules directory

    We installed latest "Glassfish Tools for Luna" (updated on 2 October 2013) and created a new Eclipse dynamic web project using Glassfish 4.1. When try to annotate a class with "javax.enterprise.context.ApplicationScoped", it complains as "ApplicationScoped cannot be resolved to a type" although imported as "import javax.enterprise.context.ApplicationScoped".
    Checking "glassfish-4.1/glassfish/modules/" directory and there is cdi-api.jar that contains ApplicationScoped class. But when checking from the project libraries in the eclipse, couldnt see such a jar.
    My configuration:
    Eclipse 4.4
    Glassfish runtime java development kit : java 1.8.0_20
    Project java development kit : java 1.8.0_20
    Project compiler level : 1.8
    Project facets : Dynamic web module 3.1, Java 1.8, Glassfish Web Extensions 4.0, Javascript 1.0
    How to solve this issue?
    Thanks.

    There are 274 jars in the Glassfish 4.0 modules directory, whereas there are 282 jars in the Glassfish 4.1 modules directory. So it is not only cdi-api.jar. Moreover there are some libraries, the names of which have been changed.
    Why not simply importing all libraries in the modules directory to Eclipse, like Tomcat plugin does for tomcat/lib directory? So when manually deploying a library(jar) to modules directory Eclipse will discover it automatically.
    Thanks.

  • Alert Configuration can not log on!!

    hi gurus:
    I click  Alert Configuration or Alert Inbox  in RWB, a window popup ask for user id and password,  user id and password of SAP NetWeaver Application Server [XID/000]u201D
    i input user name with SAP_ALL authotization, but can not logon,  if i cancel this logon, erro display like this:
      URL http://sapittest:50000/sap/bc/bsp/sap/sxms_alertrules/main.do error due to log on data
    i check SICF,alertinbox and sxms_alertrules is active,  use program RSXMB_ACTIVATE_ICF_SERVICES to check web service and all are active.
    i have checked Note 750287 - Runtime Workbench: Alert configuration does not start, the configuration in exchange profile is correct.
    what should i do, does anyone have good idea for this ?
      thank you very much
    Edited by: cheng1974 on Dec 3, 2010 4:04 AM

    URL http://sapittest:50000/sap/bc/bsp/sap/sxms_alertrules/main.do error due to log on data
    Maintain FQDN (fully qualified domain name) in exchange profile for your PI server.....it may look something like sapittest.abcompany.com ....take help from the basis/ admin team and then again try to login.
    Regards,
    Abhishek.

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • Can not find Function module in Crystal Report Database Connections FN

    Hi,
    we designed a Function Module XX in SE80.
    We set up BO Interagtion for SAP
    We can connect to the R3( CRM) System.
    We can See FN's.
    We can not see our Function Module XX we designed in SE80 in the Database Connection
    What is missing ?
    Any Authorization missing ?
    Which Where
    Thanks
    Martin Sautter

    Yes,
    we just have got it:
    /Database Assistant / Data / My Connections/<myConnection>/FN -> Right Mice Button/ Options ->  Table Name Like: <MYTABLE>
    than
    /Right Mice Button/Regenerate
    Thanks
    Martin

  • HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    I have the same problem, and the solutions in   Error changing modules | Lightroom do not work.  Even uninstalling and reinstalling a new copy did not solve the problem.  As anyone got an idea what other lingering files might be causing the problem?

  • Can not see 5 security alert on OTN

    I can not see following alerts since 5/16/2003 from the URL
    http://otn.oracle.com/deploy/security/alerts.htm
    Could OTN please check to see what happend?
    oracle connection manager control SUID vulnerability
    oracle internet directory buffer overflow vulnerabilities
    oracle internet application server and web/portal vulnerabilities
    oracle enterprise manager backup and recovery vulnerability
    oracle SQL*net and net8 listener vulnerability

    Thanks- this was fixed.
    OTN

  • How can I get itunes to download on my PC. I just got an ipod classic for Christmas and can not get Itunes to download. Website goes to downloaded page but i never get a downloading popup. I even turned off my popup blocker.

    How can I get itunes to download on my PC. I just got an ipod classic for Christmas and can not get Itunes to download. Website goes to downloaded page but i never get a downloading popup. I even turned off my popup blocker.

    Make an appointment at the genius bar.
    If you went without an appointment, then it would make sense that you could be turned away.

  • Can't do google seaches or get tabs to open without ringo and get the alert..The operation can not be completed because of an internal failure. A secure network communication has not been cleaned up correctly.

    I can't get tabs to open or google search to operate without constant ringo and I get the alert...The operation can not be completed because of an internal failure. A secure network communication has not been cleaned up correctly. I have 8.0 firefox version

    This is a known bug and it is being worked on.
    The relevant bug report is [https://bugzilla.mozilla.org/show_bug.cgi?id=588511 Bug 588511], but please do not comment on the bug report.

  • DVD module of this G60-231WM notebook can not be accessed

    HP Notebook G60-231WM with Vista Home Premium Op system. The DVD module of this notebook
    can not be accessed.  Thank you, Pete Reno  

    poptang, welcome to the forum,
    please try the following: when you have shut down the system, remove and then replace the drive. Instructions can be found here. (I know they're for a T61, but it's the same method for a T400). Then at boot press F1 (for BIOS) or F12 (for Boot Menu), and see if you are able to open the drive.
    Please let us know if this helps.
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Af:richTextEditor can not work fine in the popup dialog.

    Hi all:
    I want to use af:richTextEditor in a pop up dialog, but it can not be used correctly. The code is like below:
    <af:popup id="***">
    <af:dialog >
    <af:richTextEditor contentStyle="width:100%" value="this is a test" inlineStyle="width:100%" binding="#{backing_myBackingBean.richTextEditor1}"
    id="richTextEditor1"/>
    </af:dialog>
    <af:popup>
    The value "this is a test" can not be shown in the editor and I can not write/edit in this rich text editor.
    Anyone has some experience on using these components? Please help me.
    Thanks
    Hart

    Hi Frank,
    Below is my test code, the text editor does not work fine actually. Can you help me to find where I was wrong using this code OR is is a bug to use richtexteditor in popup dialog?
    <?xml version='1.0' encoding='GBK'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=GBK"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="This is test page"/>
    <af:commandButton text="PopupRichTextEditor">
    <af:showPopupBehavior popupId="test">
    </af:showPopupBehavior>
    </af:commandButton>
    <af:popup id="test">
    <af:dialog modal="true">
    <af:richTextEditor value="this is for test">
    </af:richTextEditor>
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks in advance.
    Hart
    Message was edited by:
    harth
    Message was edited by:
    harth

  • Adobe premiere can not find any module capable of playing video. Update the video drivers and start again.

    Adobe Premiere can not find any module capable of playing video. Update the video drivers and start again.
    I've tried all the options suggested and the problem continues.
    What else can I do?
    Note: I had already worked before.
    Windows 8.1
    Notebook i7, 8M memory, video card Nvidia (updated).
    Adobe Premiere Pro 2014
    Please help me. Thank you.
    mailto: [email protected]

    Here is a link to an Adobe TechNote about the same issue with an earlier (much earlier!) version of Premiere Elements and Windows XP.
    http://kb2.adobe.com/cps/324/324938.html
    I'll leave it to Steve and Bill as to whether the fix offered in the link for Premiere Elements 2 would still be applicable to your version of Premiere Elements.
    Hope this is of some assistance.

  • "an error occurred when attempting to change modules" I can not uninstall its grayed out.

    I installed lightroom but at opening i have an error "an error occurred when attempting to change modules" I can not uninstall its grayed out.

    I fixed the problem myself, no response in chat nor phone (1 hour in hold an no answer) here's the link, step # 5 saved me! Here's the link seems to be a very common problem, hope it works for you! Error changing modules | Lightroom

Maybe you are looking for

  • How to populate the Zfield in info cube

    Dear All, This the data in the infocube 0sd_c03 0material          0sold_to          Truck No          Zfield Need to update 3000          TESTING          2199          1 HSD BS II          OMC          2198          1 HSD BS II          TESTING    

  • How to get the difference of two dates in years,months and days

    Hi friends, how to get the difference of two dates in years,months and days for ex 2 years 3 months 13 days select (sysdate-date_Start) from per_periods_of_service thanks

  • Safari keeps crashing after memory update

    I updated the memory on my macbook pro 13" from 4gb to 8gb. It is the late 2011 model and i used the memory suggested on the apple website. The system did pick it up and now my mac shows 8GB 1333 MHz DDR3. I have two browsers installed, Safari & Fire

  • Electronic wallet

    Hello, is there any electronic wallet application for N95 available? I need it for storing PIN codes etc. Thanks.

  • Opening PowerPoint Documents from Search and Hyperlinks

    Hello all, I have a problem where links to pptx files from SharePoint 2007 (e.g. in search results or hyperlinks) open in full screen mode whereas links to ppt files open correctly as we would like in PowerPoint edit mode. Any way to change this so t