Popup close problem

Hello,
I'm currently developing  a custom dateChooser component which can display multiple months at once. I created a popup window witch contains the months and created an event that fires when a date is selected. Now all this works, but when I try to close the popup I get an error.
Source:
private function dateSelected(event:DateChangedEvent):void {
     trace(event.selectedDate);                         // The trace displays the date
     PopUpManager.removePopUp(dpw);
The error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::FocusManager/childHideHandler()[E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\managers\FocusManager.as:1744]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
at mx.core::UIComponent/setVisible()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:3038]
at mx.core::UIComponent/set visible()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:2997]
at mx.controls::CalendarLayout/mouseUpHandler()[E:\dev\4.0.0\frameworks\projects\framework\s rc\mx\controls\CalendarLayout.as:2497]
Any help is appreciated!

I just ran into this bug as well.  Very frustrating...
I get this error message when I'm trying to close my popup using the 'X' button in the top-right corner.  In my root tag (TitleWindow), I assign the following method to the close event property of the window:
private function onClose() : void
     PopUpManager.removePopUp(this);
While the workaround helped the other user based on his use case, it doesn't apply to mine.  Is there a workaround you can suggest for me?
Thanks,
-Jose

Similar Messages

  • When i open iPhoto and want to share my photo on face book its popup with problem occur and ask me to repair when i repair it appears back again?

    when i open iPhoto and want to share my photo on face book its popup with problem occur and ask me to repair when i repair it appears back again?

    The Firefox Page Zoom feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • Event triggered when a popup closes

    Hello All,
    I have a WD4A application. On one view(SECOND_VIEW) of a window(MAIN_WINDOW), there is a button. When the user clicks this button, a popup window displays.
    Now what i want is that when the popup closes, the previous view(second_view) does some action.
    So the question is how do i find out if the popup window has closed? I am able to close it, but how to inform the view that called it, that it is closed.
    P.S. The popup view is in a different window.

    HI Mithun,
    I had a similar requirement for which i used cross component programming technique. I am using the SUBSCRIBE TO BUTTON EVENT in the WDDOINT method of popup window to register an event handler to it's OK button.
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_OK
                   button_text       = 'Select DOC NR.'
                   action_name       = 'SELECT'
                   action_view       = l_api
                   is_default_button = abap_true ).
    I have created a method TRIGGER_EVENT_NAV in COMPONENTCONTROLLER .In my event handle in popup windowr (action 'SELECT' in my case) i am calling the previously mentioned compcontoller method (TRIGGER_EVENT_NAV) by using this statement WD_COMP_CONTROLLER->TRIGGER_EVENT_NAV( ).
    Now create an event in your COMPONENTCONTROLLER ( eg. OP_SECOND_WDW  - this acts as your outbound plug ) and create a corresponding inbound plug in SECOND WINDOW ( IN_SECOND_WDW ). register this inbound plug (IN_SECOND_WDW) to event of component controller (OP_SECOND_WDW ).
    use this statement
    wd_this->fire_OP_SECOND_WDW_evt
    in the method TRIGGER_EVENT_NAV to trigger the event OP_SECOND_WDW from component controller. This event in  turn triggerrs the inbound  plug IN_SECOND_WDW of second window.
    Further naviagtion within the window is the normal INBOUND - OUTBOUND plug navigation.
    Let me know if you need any further input on this issue.
    Thanks,
    Vivek
    Edited by: Vivek Priyadarshi on Sep 29, 2010 4:45 PM

  • Random app force close problems and other issues on Droid

    Has anyone seen droid apps randomly force close a lot lately? I bought the Droid and have been having constant problems after the initial update. 2.2 brought no comfort. Facebook video never worked, screen has been jumpy, lots of random app resets and force close problems showing up lately, and the 3G speeds which was about the only good thing about Verizon has become very slow lately. This thing is starting to make windows mobile 6x look good.
    This Droid device has seriously grown long in the tooth now. After nearly 10 yrs on verizon network, I'm seriously thinking of going back to AT&T for the iPhone or the new Windows 7 Phone. Anyone else feel that way about your Droid?

    Don't get me started with the Facebook app. Lets leave it at FAIL. But, yes. I've noticed it with maps, espescially if your in a moving vehicle when you open the app. Something about the gps and being in motion at the time. But, I've had it freeze from opening the camera to a few 3rd party apps. Very frustrating to the point that I'll take a regular phone AND a regular laptop, thank you. (<--not interested in renewing)

  • Autocomplete text popup location problem

    Hi,
    I encounter a autocomplete text popup location problem
    whereas the popup location is always located few cm below the textBox itself.
    Any idea how to solve this?
    Is there any property i need to set in order to prevent this?
    I am using BluePrints Ajax Component by the way.
    Thanks

    yea.
    i think that is the problem.
    i have a autocomplete textfield under groupPanel and this groupPanel is located under gridPanel
    and the resultiing popup list is located outside the panel itself.
    Thanks.
    Can u refer me to the bug URL?
    is there any workaround for this?
    Thanks

  • Af:popUp close when click outside popup area, Jdev 12c

    Hi! I had a similar post a long time ago and it became archived due to lack of time from my part, it was never answered
    the problem is:
    1)Popup without dialog tag: closes when a click is made outside the popup area.
    2)Popup with a dialog tag:  doesn't close when clicked outside the popup area
    I'd like to be able to let the user close the popup(with dialog) when he/she clicks outside the popup area.
    Thanks!

    User, which jdev version do you use?
    Why don't you use the popup without the dialog then?
    Can't be too hard to put some buttons ontp the popup.
    Timo

  • Popup reopen problem

    Hi,
    I am using PopupManager class for opening and closing a
    popup.
    The problem I am facing is that, once I close the popup and
    reopen it, whatever action I did when I opened the popup for the
    first time is lost.
    I have a tree control inside the popup, when I navigate
    through the tree nodes, close the popup and then reopen popup, the
    tree opens in its initial state instead of showing the nodes
    through which I navigated.
    Is there some other way for opening/closing of popup or is
    there some trick in PopupManager class to maintain previous state
    of popup.
    Please help.
    Thanks in advance.

    I suppose you could create a state manager but the way
    typically do it is to save the openItems of the tree before closing
    the popup, saving that array in a variable, and reopening the nodes
    to the previous state on the next popup. Here are a couple posts
    that would help.
    http://blog.flexexamples.com/2007/12/01/determining-which-tree-branches-are-open-using-the -openitems-property/
    http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-o penitems-property/

  • Avoid Alert window on close/Problem getting serious

    A website button on click opens a Link.swf.
    The Link.swf on init opens a PopUp in Full size. Perfect.
    But now, I have under my PopUp window the useless Link.swf.
    I want to get rid of it.
    The code in my Link.swf is:
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + address + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",fullscreen=" + fullscreen
    + ",toolbar=" + toolbar + ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};self.close();");
    It wants to close the Link.swf, but…
    an Alert window appears, asking if I really want to close
    >Yes or No<
    How can I avoid this Alerter, just close the Browser???
    Thank you for your help.

    Thank you GWD for the tip.
    I looked around in "javascript" articles, but haven't found a
    proper solution.It seems, that the problem I am having here is not
    that easy to solve.
    If you like, see:
    http://www.accessify.com/features/tutorials/the-perfect-popup/
    or
    http://www.quirksmode.org/js/croswin.html
    Some code might be useful, but I really don't know how to
    include it in my getUrl string.
    It looks like, that I should include a javacode in my Html
    and call the func from Flash??
    Thanks,
    Luciewong

  • Freenx - session close problem.

    After last update i have little problem, what is shown on picture below.
    http://i53.tinypic.com/2ns8ear.jpg
    There is nothing on the exit screen and choosing action (close/leave session) dialog. I've reinstalled NXclient with no effect. Thank you in advance for help.

    I was seeing the same thing on my setup at home for a while. I was suspending the user from the cli.  It was a nuisance but it was just my home machine so I didn't bother with it too much. It would have been a real pain if it was a deployment at work. I created a launcher with the command in it and then decided to go looking for the answer.
    I've used freenx on other setups (FreeBSD, Ubuntu, etc.) so I know the popup uses either xmessage or xdialog depending on the setup. I had neither installed so I installed xmessage but that didn't fix it. I then installed xdialog and now it works like it's supposed to.
    I just noticed that we are both using XFCE4 and wonder if maybe it's xfce thing or if there's not a lot of Arch users using FreeNX (or haven't gone to the affected update yet).
    Last edited by Strog (2010-11-09 15:00:01)

  • dvt:hierarchyViewer make error popup close without clicking ok button

    Hi All,
    I am using Jdev 11.1.1.3.0
    In my page I have 2 region, one contains a form which built from a EO Based VO and a commit button. Another region have a <dvt:hierarchyViewer> which is built from another VO to display some hierarchy diagram.
    In my page user can edit some information and commit the transaction by clicking the commit button.
    Whenever there is some validation fail in the model layer for the information that user edit, I will use below code:
    throw new JboException(error_message);
    which ADF will handle it as a popup with the error message and display on the UI.
    So now the issue is, whenever I click commit button, region that contains <dvt:hierarchyViewer> will shows as "Fetching Data...", and if there is anything failed for this transaction, error popup will appear. However, the popup will not stay and it will disappear even without user clicking ok button whenever <dvt:hierarchyViewer> finish fetching data and display the content. So this is a problem because error message will only display 1 second then it will disappear, user cannot even see what is the error.
    If I set render property of <dvt:hierarchyViewer> to be false, now if there is error, the popup will stay there until user click ok button to close it. So the issue definitely related to <dvt:hierarchyViewer>.
    My question will be why rendering <dvt:hierarchyViewer> will impact the error popup and make it disappear? And based on my observation, the issue only happen on IE but not on firefox.
    Hope anyone can help me with this issue.
    Thanks.
    Pei
    Edited by: user10867484 on Jun 16, 2011 5:25 PM

    Hi,
    So the issue definitely related to <dvt:hierarchyViewer>
    Your observation is correct, the conclusion you take out of this not. The hierarchy viewer fetches data asynchronously and at the end refreshes the component, which takes the focus out of the dialog into the page. The default behavior of the popup component is to dismiss when the focus is lost. The options to try and handle this are
    1. make sure the commit button has "partialSubmit=true" set so it does not refresh the page and thus the hierarchy viewer as a whole
    2. configure the af:messages component to show error messages inline and not as a popup
    I would go and try 1 first
    Frank

  • ITUNES HAS ENCOUNTERED A PROBLEM AND NEEDS TO CLOSE  PROBLEMS

    PLEASE HELP ME. I CAN NOT GET INTO ITUNES. I KEEP GETTING THE ERROR MESSAGE "ITUNES HAS ENCOUNTERED A PROBLEM AND NEEDS TO CLOSE" ERROR . WHAT MUST I DO? ITRIED TO REINSTALL THE SOFTWARE,BUT IT DID NOT WORK. HELP

    First, try to check your Quicktime installation--this has been discussed over and over again on the forum. If Quicktime won't launch--that's the problem. You can uninstall and reinstall this application.
    I just had this failure a few days ago. I chose to "repair" my Quicktime installation instead of re-doing the whole thing. I TURNED OFF MY VIRUS PROTECTION AND FIREWALL BEFORE I PROCEEDED! Then, I let Windows run a repair and everything worked properly afterwards!

  • "Itunes has encountered a problem and needs to close" problem.

    Before you read anything, please understand that I am literally being driven to tears right now and that I am on the brink of insanity.
    On Saturday, I tried to update my iPod with new songs and apps that I got from the iTunes stores since Friday. Itunes would open but in the next 10 seconds following it, the error window that says "Itunes has encountered a problem and needs to close" etc. came up. I let it go for like two hours, thinking it was a small bug or something, and I ran a virus scan too, just to make sure (I just switched to AVG too on Saturday). Two hours later, iTunes STILL wouldn't work and by that time, I was about to become upset. I uninstalled and then reinstalled iTunes about 5 times that day. Now today, iTunes is still giving me the same problem. I know other users have faced similiar problems but someway or another, they found a way to fix it.
    I have tried EVERYTHING to fix iTunes. I even did a Quicktimes and an iTunes run to get rid of any and all files associated with the two programs. When I finally thought the nightmare would end, I downloaded iTunes again. However, not only did it NOT work but now EVERY SINGLE ONE OF MY SONGS that I had in my library were GONE. No traces, nothing. Even the movies that I had on it had vanished. Everything single thing that I bought in the iTunes store disappeared. Now, at this point, I am now both incredibly frustrated, and crying my freaking eyes out now. (Understand that I am 15 years old and I grew up with music as my only solace.)
    Somebody, just please help me through this ****. All I wanted was to just update my iPod so I could listen to it in school, and now my music is gone, along with a dead iPod. -_-

    I found my solution! In case you're still having trouble, here's what I did (please pardon the odd grammar, I copy-and-pasted this from another one of my questions!):
    And for those of you who are still experiencing this problem, this is what I did. Although I don't know your details and your own specific problems, I hope this can be at least a helpful guide. (The solution was incredibly simple and easy that I am extremely mad at myself for deleting all of my files now...)
    First, just for safety measures, run a virus scan and a malware scan (so you can get rid of those icky programs lurking in your computer). Once you're done with that, check to see if your computer has an update for you (those automatic updates you get that comes with every Windows computer). If you do, click on it and update your computer. Once it's done, restart your computer and VIOLA! Itunes is fixed, Quicktime is fixed, and Adobe Reader is fixed.
    It's insane. I guess this just goes to show that even the simplest of things can fix such a mind-boggling problem! Before you take extreme and drastic measures, follow through with the simplest of solutions first!

  • TS3297 Every time I go to the itunes store, i get a message saying Itunes has stopped working and must close  Problem Event Name:     APPCRASH

    Every time I go to the itunes store, I get the pop up "Itunes has stopped working and must close"
    Under Details are : Problem Event Name:  APPCRASH

    Hello, Hal R. 
    Thank you for the question.  Try the steps in the article below as they may help with the issue that you are experiencing with iTunes becoming unresponsive or unexpectedly closing. 
    iTunes for Windows: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Jason H.

  • Dynamic Region in Popup - clientListener problem?

    Hello,
    I'm working in Jdeveloper 11.1.1.2, following the popup/region pattern found at: http://www.oracle.com/technology/products/adf/patterns/11/popupregionpattern.pdf to have a dynamic region in a popup. I already have a working implementation on one of my pages, but the exact same implementation on another page is giving me issues. Whenever I add an af:clientListener component to my popup, the table in the same panelCollection stops rendering its rows. The column headers display, but there's no text of any type in the rows. If I delete the af:clientListener, my page works perfectly.
    Here's my popup code thus far:
    <af:popup id="awdPU" contentDelivery="lazyUncached"
    launcherVar="source" eventContext="launcher">
    <af:setPropertyListener from="#{source.attributes.saId}"
    to="#{pageFlowScope.currentSaId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.saId}"
    to="#{pageFlowScope.currentSchlrId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.appId}"
    to="#{pageFlowScope.currentAppId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.aidYear}"
    to="#{pageFlowScope.currentAidYearId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.theAction}"
    to="#{pageFlowScope.currentAction}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
    to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.orgId}"
    to="#{pageFlowScope.currentOrgId}"
    type="popupFetch"/>
    <af:panelWindow id="pw1" title="Awarding">
    <af:region value="#{bindings.dynamicRegion1.regionModel}"
    id="dynam1"
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"/>
    </af:panelWindow>
    <af:serverListener type="serverPopupClosed"
    method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
    <af:clientListener method="popupClosedListener"
    type="popupClosed"/>
    </af:popup>
    and here is my working, completed dynamic region + popup code:
    <af:popup id="awdPU" contentDelivery="lazyUncached" launcherVar="source"
    eventContext="launcher">
    <af:panelWindow id="window" title="Awarding" modal="true" closeIconVisible="false">
    <af:region value="#{bindings.dynamicRegion1.regionModel}" id="dynam1"
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"
    inlineStyle="background-color:transparent;"/>
    </af:panelWindow>
    <af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
    to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.saId}" to="#{pageFlowScope.currentSaId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.appId}" to="#{pageFlowScope.currentAppId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.aidYear}"
    to="#{pageFlowScope.currentAidYear}" type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.theAction}"
    to="#{pageFlowScope.currentAction}" type="popupFetch"/>
    <af:clientListener method="popupClosedListener" type="popupClosed"/>
    <af:serverListener type="serverPopupClosed"
    method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
    <af:clientAttribute name="action" value="makeAward"/>
    <af:clientListener method="adjustPopupSize" type="popupOpening"/>
    </af:popup>
    Does anyone know of any reason a client listener would have this kind of impact on my page? I've tried other types/methods and it just seems like if an af:clientListener is there, it won't work.
    Thanks!

    Hi,
    I came across this type of problem. what the javascript method u r calling it may contain some errors or if the clientListner not able to find the method which u r calling in the jspx file that will behave like that only.
    keep one alert begining of the script method(popupClosedListener) and check it whether it is calling or not. Better related serverListner should be after the ClientListner.
    Reg,
    Brahma...

  • Urgent: Shut down when lid closes problem

    My Mabook pro / mid 2010 / Yosemite 10.10 shuts down when lid closes. This is new in the last few days, not after any system updates. It wont restart after lid opens again, unless repeatedly holding down power button for long periods. Strangely, the sleep light is on before I open the lid, but once lid is open, it's completely off.
    Does anyone know the cause and/or fix for this? I'm really worried it's the beginning of the end, and I rely on this machine for work and need to travel in a few days! Thanks in advance for any trouble shooting tips.

    Just to clarify; when I say "this is new" I mean the problem, not the laptop.

Maybe you are looking for

  • G4 MDD wont boot past logo, or to cd. Please help!

    The power was cut as I was deleting my shared folder which had about 13gb worth of data on it. The process had just started. I tried to boot back up I hear the chime and then it goes to the apple logo then the whole thing just shuts down after a few

  • MacBook Pro and WeatherPop menu bar issue

    I noticed that my weatherpop application is not automatically starting when my macbook pro boots up even though it is listed in my auto login list. So, I double clicked on it in the applications group and all it does is reload my menu bar and won't l

  • RNIF Receiver Adapter with attachment

    Hi All, Has anyone done an RNIF receiver adapter which can also do an attachment ? Any thoughts or ideas other than just help.sap links . Thanks Rahul.

  • Can't install trusty old Photoshop 5.0 on new Windows 8 desktop

    I cannot seem to install Photoshop 5.0.2 on my new Windows 8 desktop computer.  I push the install button from the cd and it does nothing.  I tried copying and pasting the old installed program onto my desktop and filling in the necessary dll files t

  • Function for Date Validation

    Hi, Can anyone tell me a Function Module to Valdate Date? Thanks & Regards Sheela