Issue with Popup Warning in SaveAndClose Panel

hi,
I have a requirement to show a warning message based on Validation of some fields to get user input . Then I try to Commit or not Commit the data.
But the popup is not getting launched before completing the method.
When I run Click on Save or SaveandClose button , if Validation method below returns false, popup wont be launched immediately, until it reaches end of Save/SaveCllose Action methods.
Because of this I am not able to capture the user response and proceed accordingly.
Here is the example code:
I have Page: Entry.jsff
It has Save and SaveAndClose Rendered and is based on Application Panel (I can have toolbar buttons also )
In Save and SaveClose Action methods I am calling validation method which in turn throws a Warning popup. like below.
public String handleSaveAndClose() {       
if(handleValidations()){
RecordingUiUtil.invokeEL("#{bindings.Commit.execute}");
return ("saveandclose");
}else{
Map pageFlowScope =
AdfFacesContext.getCurrentInstance().getPageFlowScope();
String wrng = (String)pageFlowScope.get("pSubmitFlag");
if(wrng!=null && wrng.equals("Y")){
RecordingUiUtil.invokeEL("#{bindings.Commit.execute}");
return ("saveandclose");
return null;
The Save Action Method:
public String handleSave() {       
if(handleValidations()){
RecordingUiUtil.invokeEL("#{bindings.Commit.execute}");
return ("save");
}else{
Map pageFlowScope =
AdfFacesContext.getCurrentInstance().getPageFlowScope();
String wrng = (String)pageFlowScope.get("pSubmitFlag");
if(wrng!=null && wrng.equals("Y")){
RecordingUiUtil.invokeEL("#{bindings.Commit.execute}");
return ("save");
return null;
public boolean handleValidations(){
/*....Lets say I have some validation code*/
if(validation success){
return true;
}else{
PatternsPublicUtil.invokePopup(this.getSubmitWrngPopup(),null);
return false;
Return Value for "saveandclose" has taskflow Return to parent page.
It works fine when validation method returns true. No issue as there is no need for Warning.
When validation fails I cant proceed with user response before completing action methods.
Can u pl. help any poissible solution for this??
thx
--nagamani                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi,
you cannot interrupt processing of a managed bean method. You need to break up the methods in a part that runs for evaluating the success of validation- If validation fails you open a popup with a dialog. You then listen for the dialog OK or Cancel button being oressed and proceed accordingly. If you need to transfer context information between the two actions, use memory scope attributes
See http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf
for how to handle the OK and Cancel button in a dialog
Frank

Similar Messages

  • LSMW issue with Popups

    Hello,
    can me help anyone. I've an LSMW with an recorded transaction. I generate a BDC-map. Sometimes the transaction gives me a popup sometimes not. the popup show me only an information. It is possible to check when the popups comes up and quit it. Otherwise I got an error. And I've no chance to split the data in this with popup information and woth no popup information.
    Any ideas?
    Thank you!
    Best regards
    MartinS

    Is this a parameter? Where can I find this? Or did you mean the Batch-Input option in the Gui-Settings:
    - Click on the GUI settings button.
    - Click on the 'options'.
    - Goto the 'Expert' Tab.
    - Switch off the 'Dialog Box for OK-Code' Check box in the 'Batch Input' section.
    - Save the settings by clicking 'Apply' and 'OK'.
    Thank's for help!

  • Issues with security warning popups in JRE1.5.0_06

    Using
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    Browser is Internet Explorer 6.0.2800.1106
    Background:
    Our web application has 3 different applets on one page, transmitted using https. Due to a variety of factors, the name of the host does not match the name on the certificate, and we can not change that.
    Problem:
    We get 3 dialog boxes warning us that the names do not match, as usual. However after installing 1.5.0_06 we get 2 different undesirable behaviors:
    A ) 1 or 2 of the dialog boxes are empty and small, as if only the window of the dialog box was created, with no components on it. When you resize them, they remain blank (only default background color). They can not be closed.
    B) All 3 of the dialog boxes look as they should, but only one of them can be interacted with. Even after we press "Run" on the working dialog box, we are not able to interact with the other two dialog boxes.
    The applets causing these security popups are in 2 different frames, and load simultaneously. The popups all appear at the same time .
    We consistently see different behaviors on different PCs:
    PC I : After 30 tries, it fails once, error B
    PC II: After 20 tries, it works once, mostly error A
    PC III: 10 tries, Mostly error A. Never worked once. After a reboot (and full cache clears) we get mostly error B. Never works.
    If we disable the warnings (in the control panel), the page loads ok, with no errors.
    Have anyone experienced this ?

    I've experienced similar problem with Java Web Start twice.
    Also using JRE version 1.5.0_06 Java HotSpot(TM) Client VM and Browser Internet Explorer 6.0.2800.1106 on Windows XP (Problem was the same with Java 1.4.2)
    My application was signed and launched via JNLP. The security warning popup was shown in the windows taskbar, but it was hidden. Using maximize in the taskmanager, I was able to see the dialog but it was blank. The problem was persistent, although I did not try as many times as 20-30 :-)
    On both occations the problem occured on multi (3) screen systems, which I suspected to be the problem (Java has historically had some issues regarding multi screen systems), but now I'm not so sure.
    Did you find a solution / cause?

  • Issue with popup

    Hi
    I'm kind of new to Java put hopeful I can project my problem enough for someone to help me on the nature of my problem. My problem is i have created two class Wellcome class and MainApp Class. What i want to do is when a user clicks on a button from the Wellcome class it take them straight to the MainApp Class. I've been looking everywhere and havent found anything apart from popup dialogs which is not what i want.
    This is my button at the current state
              final JButton openNxtTrackButton = new JButton();
              openNxtTrackButton.addActionListener(new ActionListener() {
                   public void actionPerformed(final ActionEvent arg0) {
              });If anyone can help me that would be great thanks
    Edited by: limpep on Mar 11, 2008 5:59 PM

    limpep wrote:
    Okey basically i have two different fames one is called Welcome and the other one is called MainApp. All i want to do is when a user clicks on a button on the Welcom frame(window) it take the user to the Mainapp frame(window).I politely disagrees with this:
    new MainApp().setVisible (true);Perhaps better would be to make the Welcome window a modal JDialog that is shown by an invisible JFrame -- your MainApp. Then when the JDialog -- or perhaps easier, the JOptionPane returns, the MainApp is made visible.
    For example:
        public MainApp() // main app constructor
            JLabel label = new JLabel("Main App");
            label.setFont(label.getFont().deriveFont(Font.BOLD, 48));
            mainPanel.setPreferredSize(new Dimension(300, 200));
            mainPanel.add(label);
            JOptionPane.showMessageDialog(null, createOptionPanel(), "Option Panel", JOptionPane.PLAIN_MESSAGE);
        private JPanel createOptionPanel()
            JPanel optionPanel = new JPanel();
            JLabel label = new JLabel("Option Panel");
            label.setFont(label.getFont().deriveFont(Font.BOLD, 48));
            optionPanel.setPreferredSize(new Dimension(350, 100));
            optionPanel.add(label);
            return optionPanel;
        }

  • Issue with popup region in oaf

    Hi ALL,
    I have a issue in poup region as below.
    I have a popup region that i am invoking from a base page on clicking of a button, in the popup region i have search functionalty , so i am giving some search criteria and clicking find button and able to get the data,
    but the issue is when i am clicking the find button the popup getting closed, i need the popup should display teh search data and after that i have some other functionality to select some rows from the data and need to click one mote button to reflect the data in base page, so how i can retain the poup on click of first button, please help me out

    Raghava,
    Check the vo attribute attached to the Date Field, it should be of Date type at both the level..VO Level as well as Database level.
    Regards,
    Gyan

  • Issue with Popup LOV field not clearing out "default" value

    I am using APEX 4.0 & Oracle 10g
    I have a form that displays a default value on a "Popup LOV" field (say P1_POPUP) when the Form is initially displayed to the user. The default value is part of the Popup LOV list of values. If the field is "manually cleared" *i.e. I clear the default value by backspacing and don't touch the LOV) and I Refresh (submit) the form (REFRESH button to display the same Form again), the default value is still displayed.  
    In Post Processing, I debugged the value of P1_POPUP to see if holds the default value and yes it does. I was expecting no value in P1_POPUP.
    Is this an APEX standard behavior?
    Any way how I can get rid of this value on an manually clearing action of this Pop Up field?
    Looking forward for your response.
    Thank very much in advance.
    Ed.

    I apologize, the default value was NULL indeed. However, it seems like I may need to manually clear this value so that it will not be displayed.

  • RH8 issue with popups

    Hi there,
    I am using RH8 on Windows XP. I am working on a very large, legacy project that has been around for ages.
    In many, many topics there are popups which take you to a secondary topic for syntax information. Each subheading in the secondary topic has a bookmark and these popups throughout the help link back to the relevant section of this secondary topic.
    However, since RH8 (I upgraded from RH5) when I click on the popup link in the webhelp output, it very often does not take me to the correct location of the bookmark referenced. It pops up several lines below that bookmark, so that the wrong heading is shown.
    It seems to work ok in IE, but not in Firefox, Safari and Google Chrome (I know it's not supported, but my boss uses it!).
    As our users use either Linux or UNIX, they don't use IE, so I need it to work in the other browsers. It definitely used to work correctly, as I've tested older RH5 output in all of the aforementioned browsers.
    It doesn't seem to matter if you use auto-sizing popups or custom-sized popups, the same thing happens.
    Anyone have any idea why this might be happening? It's very frustrating! 
    Thanks in advance,
    Feebeegeebee.

    Hi,
    I didn't get a single response to my appeal, so either no one else has seen this or it wasn't clear what is happening.
    So, here are a couple of screenshots which may help.
    The links used to poup in the correct place in the sub-topic (as shown below).
    Now, in RH8 they pop-up in the wrong place in the sub-topic, despite the fact that nothing has changed (see below).
    The same link as above does the following in Firefox, Safari and Google Chrome, i.e. it launches the popup in the wrong place.
    Any ideas?
    It works fine in IE, but none of our users use Windows, so that's of no use!
    Thanks for any suggestions.
    Regards,
    Feebeegeebee.

  • Issue with popup menubutton

    i am using a popup menu button in my application. the menu is big such
    that i am unable to scroll and cant see the remaining items in the
    dropdown.  please find following image
    is there any way to get the scroll enabled for this? thanks in
    advance.
    gautam

    Here is a possible solution:
    http://dougmccune.com/blog/2007/01/26/even-better-scrollable-menus-for-flex/
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.chikaradev.com
    Adobe Flex Development and Support Services

  • Issue with website Storage Settings panel

    Hi
    I have an issue with the Website Storage Settings panel. I want to increase the storage settings but the bar always resets when I reload the page.
    I only seemed to have this issue after I updated to the latest software. Any help?

    You don't specify your operating system.  On Windows, try deleting the 'Flash Player' folders in %APPDATA%\Adobe and %APDATA%\Macromedia
    No browser window must be active when you do that.

  • Issues with ApexLib after upgrading to Apex4

    After upgrading our application to Apex 4 we have run into some issues that look to be related to ApexLib. We had issues with popup LOV’s and some tabular forms, after upgrading to ApexLib 2.1.2 the popup LOV's seem to be resolved. But we still have some problems when trying to update a tabular form that uses ApexLib validation. When trying to update we get an error that 'field' is needed, but the 'field' has been selected from a select LOV.
    The error shows "Row 1: Health ED is required."
    The code is:
    select
    "PERSON_WP_HLTH_ID",
    "PERSON_WP_HLTH_ID" PERSON_WP_HLTH_ID_DISPLAY,
    "PERSON_ID",
    "PERSON_WP_HLTH_ED_CODE",
    "PERSON_WP_HLTH_OTHER"
    from "#OWNER#"."PERSON_WP_HLTH"
    where person_id = :p58_person_id
    I get this in debug mode.
    ...Process "ApexLib-Before Computation/Validation": PLSQL (ON_SUBMIT_BEFORE_COMPUTATION) BEGIN ApexLib_Item.setBoolDefault; ApexLib_Item.trimItems; ApexLib_TabForm.trimColumns; ApexLib_Lov.clearLovNullValues; ApexLib_Item.validateItems; ApexLib_TabForm.validateColumns; -- ApexLib_Error.showErrorStack; END;
    I'm not convinced this is ApexLib related, but not sure what else might be the issue. Any thoughts or comments welcome.
    Cheers,
    JB
    Edited by: Forward IT Thinking on Sep 10, 2010 12:01 AM

    Peter,
    I'm fairly new to APEX, would love to put a copy up on apex.oracle.com but not sure on the process. I have an account there, but don't have a packaged application yet so how to do that. If it's a simple process and you can point me to the process that would be appreciated.
    In the mean time, I would have no problem setting up a developer and user account account temporarily for you to take a look. You can email me at [email protected] and I'll get you the info.
    Thanks for you prompt response.
    Regards,
    John Bewley
    Edited by: Forward IT Thinking on Sep 10, 2010 4:02 PM

  • Issue with Parameterized Popup

    Hi,
    I have created a parameterized popup which gets opened on click of an image. Opening the popup is working fine but custom close button (not the X icon) is not working. I have added javascript:closeit() as the destination URI of the button but nothing happens when I click the button. I also tried adding a javascript function for closing the window and put a PPR on the button to forward to the current page and execute the java script but no luck :-( Issue with using X button for closing the popup is - the control is still in the popup processformrequest afer I close the wondow using X. Whatever action I perform on the base page is yielding no results/undesired results. That's why I wanted a custom close button so that I can direct the control back to the calling page.
    Please advise.
    My requirement is to have 2 buttons on the popup region (save and close). On click on save, data should be saved and the calling (base) page should get refreshed and close should just close the popup and bring the control back to the base page. I have a standalone region created with desired fields and buttons and this region is added to the region popup.
    Can anyone please help me with this?
    Thanks in advance.
    Shreevatsa

    Thanks Peddi. Any other option of achieving this functionality in parameterized popup?
    Also I saw the below in the dev guide.
    You can handle user interactions for embedded and parameterized pop-ups as follows:
      All-Submit - Configure buttons on an embedded pop-up to submit the pop-up data and the base page data together. The pop-up closes and the base page submits after this event.
      Self-PPR - Define partial page refresh events on the pop-up to refresh the pop-up window alone. The pop-up remains displayed after a self-PPR event.
      Page-PPR - Define partial page refresh events on the pop-up to refresh the base page items. The popup closes after a page-PPR event.
    I didn't understand completely as what are the differences and how we can enable these actions on popup. I am thinking of Page-PPR which might work for my requirement but I am not sure how to enable this. Is this same as enabling a PPR on a item on the popup region.
    Thanks
    Shreevatsa

  • I'm having a lot of issues with firefox and cannot figure out how to get help. It began when I updated to 13. I get all kinds of ad popups, I cannot play one

    I'm having a lot of issues with firefox and cannot figure out how to get help. It began when I updated to 13. I get all kinds of ad popups, I cannot play one game on FaceBook called Farm Town at all, and I keep getting an AVG popup about cookies that I cannot get rid of. These issues are causing me to use Chrome very often even though I like Fox better. I've searched and searched how to get help and cannot find anything. How does one get personal technical help?? These issues do not happen in Chrome at all. Thanks.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Flex Module issue with Panel

    Hello everyone. I have the following problem.
    In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
    Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
    at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
    at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
    Indicates that the main applications have object Panel
    Please help.
    P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
    ADDED: I extendes the Panel class and do something like that:
    override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
                    use namespace mx_internal;
                    if(!(mx_internal::titleBarBackground is TitleBackground)) {
                            mx_internal::titleBarBackground = new TitleBackground();
                    super.layoutChrome(unscaledWidth, unscaledHeight);                     
    But now i had something like that: Before After
    You can see that it loos style declaration.H

    Thanks for the anserw.
    I don't exacly understand all but i found a solution for my problem and it works.
    Could you tell me if this is ok ?
    I Add in my main app
    public function getProductWindow():ProductWindow {
        return new ProductWindow();
    And in the module i change
    From var productWindow:ProductWindow = new ProductWindow();
    To var productWindow:ProductWindow = Application.application.getProductWindow();

  • Issue with IE Security Warning box about Flash Player

    Recently upgraded to Flash Player 11.8 on a Win7 x64 system with IE9. Am now having a IE Security warning box pop up repeatedly saying Flasher Player wants to open Web Content. If I Allow, it is an endless loop with the warning box. If I Don't Allow, it eventually stops popping up after 3-4 times. Need to know if there is an issue with Flash Player or if there may be something else going on in my computer. Any suggestions would be appreciated. Also, I am not a whiz, but manage.

    You can either lower the security settings of Internet Explorer, or - easier - download the executable installer from http://www.adobe.com/products/flashplayer/fp_distribution3.html
    P.S. note that no browser windows must be open when running the installer.

  • I'm having the same registry issues with my CDROM, getting the warning when iTunes starts up.  I've followed the article on how to add the upperFIlter to the registry and it solves the warning message but the DVD/CD writer disappears completely.

    I'm having thet same registry issues with my CD-/DVD as is talked about in one of the fix articles I've found here. I added the UpperFilter entry to the registry since it was not there and restarted.  This fixes the warning message but then there's no CD/DVD device shown at all in windows.  I can put it back to normal and vice versa and get the same results, but I can't get this issue fixed. When I get the registry warning on starting iTunes, I can still rip from CDs and my DVD burner works just fine using other programs.
    Any more ideas?

    This fixes the warning message but then there's no CD/DVD device shown at all in windows.
    That symptom suggests the afs.sys issue ... but there's some other things that might cause it too.
    We'd better check to see if we can find what's going on.
    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

Maybe you are looking for

  • A/R Invoice linked object not working all the time

    I have a LinkedButton that is set to SAPbouiCOM.BoLinkedObject.lf_Invoice. When the selected A/R Invoice has a Document Type of Service the link works. When the selected A/R Invoice has a Document Type of Items the link does not work and I get the fo

  • Bootcamp and windows 8.1

    so i successfully installed windows 8.1 with bootcamp. when i'm in windows there is a flag at the bottom right and i clicked it and it said i needed to download some drivers from apple but i  couldn't find them when i clicked the link. i tried instal

  • How to park the invoice using 'IDOC_INPUT_INVOIC_MRM' ....

    Hi All, I am using FM 'IDOC_INPUT_INVOIC_MRM' for parking the incoming (Idoc) invoices. But FM   IDOC_INPUT_INVOIC_MRM   directly posts the invoices. I think is by default from SAP.(not sure) Can you Pls help me on this issue. Thanks.

  • Role Administration in abap query

    What is mean by role administration  for infoset query

  • Flash CC, export video w/AS & sound

    Hi, I have 2 frames in the Stage. Frame 1 has a movieclip with an animation inside, it loops. Also, I have this code: import flash.media.Sound; import flash.media.SoundChannel; import flash.events.Event; var sound:Sound = new Music(); var soundChanne