Problem by opening a popup programmatically

Hello
I am facing a problem when opening a popup programmatically. I use the following code piece to achieve: -.

RichPopup.PopupHints ph = new RichPopup.PopupHints ();
testPopUp.show (ph);

Now copy the following code works fine except when I try to open the "testPopup" of the inside of an another pop-up window popup. Is there anything else I need to specify in order to open a popup inside an another popup programmatically? Another thing I noticed is that if I write this code in the DialogListener method, it works very well. But it does not work if I present a custom inside my dialog box button and write this code inside the listener to the button action. Any help is appreciated.

Thank you
Rahul

Rahul,

Without version number of your part, I'll assume JDev 11.1.2.1.

It works for me.

JSF page:




  
    
      
      
        
        
      
      
        
        
      
    
  

Managed bean:

package view;

import javax.faces.event.ActionEvent;

import oracle.adf.view.rich.component.rich.RichPopup;

public class b
{
  private RichPopup p1;
  private RichPopup p2;

  public b()
  {
  }

  public void setP1(RichPopup p1)
  {
    this.p1 = p1;
  }

  public RichPopup getP1()
  {
    return p1;
  }

  public void setP2(RichPopup p2)
  {
    this.p2 = p2;
  }

  public RichPopup getP2()
  {
    return p2;
  }

  public void a1(ActionEvent actionEvent)
  {
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    p1.show(ph);
  }

  public void a2(ActionEvent actionEvent)
  {
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    p2.show(ph);
  }
}

John

Tags: Java

Similar Questions

  • Problem with opening an af:popup

    Hello

    I create a simple project that does something like this:

    < af:form >

    < af:inputText id = "1" / >
    < af:inputText id = "Number2" / >
    < af:commandButton action = "#{mybean.makeSum}" / >

    < af:popup id = "popupResullt" >
    < af:outputText value = "is the sum: #{mybean.result}" / >
    < / af:popup >

    < / af:form >


    # In my backBean:
    public void makeSum() {}
    This.Result = this.number1 + this.number2;
    }


    Problem: How to open the context menu and run my method "makeSum.

    I tried to do this:

    Attempt 1:
    < af:commandButton action = "#{bean.makeSum}" >
    < af:showPopupBehavior popupId = "popupResult" >
    < / af:commandButton >

    Problem here: the popup is open, but the makeSum method is not called.

    Attempt 2:
    < af:commandButton action = "#{bean.makeSum}" >
    < / af:commandButton >

    Here I I invoke the popup to my grain of support with this code:

    # In my backBean:
    public void makeSum() {}
    This.Result = this.number1 + this.number2;
    ExtendedRenderKitService erks is Service.getRenderKitService (FacesContext.getCurrentInstance (), ExtendedRenderKitService.class);.
    StringBuilder strb = new StringBuilder("AdfPage.PAGE.findComponent(\"popupResult\").show ();");
    erks.addScript (FacesContext.getCurrentInstance (), strb.toString ());
    }


    Problem here: the popup is not open, but the 'makeSum' method is called.

    My Question: How to the best way to call my method and open the popup of too.

    Thank you.
    Victor Jabur.

    Hello

    If you're on JDeveloper 11.1.1.3 then you can open the pop-up window of Java. To do this, you create a binding component to a bean managed the "binding" of the af:popup component property. This creates a getter/setter for RichPopup. The RichPopup exposes a method to open and close a pop-up dialog box

    Frank

  • Refresh the popup programmatically

    Hello

    I use Jdev 11.1.1.6

    I have a FA: table in a popup that is to pick up a few lines... I added a link delete next to each line through links.

    When I click on the link delete for a particular line... the line is removed and the window closes automatically.

    To avoid this, I put the part delivery of property = true for the link delete...

    Now when you click on remove link line gets deleted but context does not close which is very good...

    Now the problem is... the other buttons on the pop-up window are not working as record, etc...

    I like to write code for the link delete where by program I will delete the line and I want to update the popup as well.

    Can someone let me know what is the code to update the popup programmatically?

    Thank you

    Rajesh.

    User, things to check:

    is the autoCancel property for the popup?

    If so, set it to false and try to delete a line without defining the partial submission button.

    Timo

  • iOS 10.0.2 problem cannot open notes

    iOS 10.0.2 problem cannot open notes

    Since the update to ios 10.0.2 week last on my 5s just notes iPhone keep crashing. Anyone got a fix?

  • Compaq 15 laptop: I have problem to open windows 8 I do not remember the email from Microsoft outlook

    I have problem to open windows 8... I don't remember the email from Outlook... and I can't open the windows... the computer is Compaq 15 Notebook pc

    Hello @djgenti,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums, I would like to draw your attention to the HP Forums Guide first time here? Learn how to publish and more.

    I came across your post about the question of password and he wanted to help!

    First of all, please consult the following document and let me know how it goes:

    HP computers - what to do when you forgot your connection password (Windows 8)

    Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution' , this will help others easily find the information they seek.  In addition, by clicking on the Thumbs up below is a great way to say thank you!

    Have a great day!

  • Problem to open a single file

    Hello

    Im having problem to open a file, I used the component Open/create/replace file.vi to try to create a folder, but does not work. When I put the path as C:\Registros way, where looking does not exist, the component create a .dat with this name (Registros.dat) =...

    Can someone help me with this?

    THX =)

    Hi not know wha...

    the function "create a folder" must exist in LV6.0. See this link:

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=52455&requireLogin=false

    If the folder 'reg...' does not exist, then you create everything first. You don't need to open a file, you only need to use a path to select the folder where you want to create a folder or a file, but all records of the path must exist.

    Mike

  • I never had problems to open attachments on my account Windows Live Hotmail, but now all of a sudden Im as locked, impossible to view attachments.

    I have never had problems to open attachments on my hotmail account, but now all of a sudden Im as locked, can't display all the attachments. I think the problem may be unique to my account that I have conveyed the same message to someone else and they can download and watch. Please guide me step by step as to what I can do to view them.

    Hello sharankaur,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • How to stop the open a popup when I click on an icon. I want the icon to do its job.

    How to stop the open a popup when I click on an icon. I want just the icon to do its job and open the file. However, I get the crazy popup indicating to choose the program you want to open the file.
    When we first got it it has always opened when a user has clicked on an icon. Then he started doing this several months ago, and I don't know why.
    Please help if you know how to beat this computer.
    Windows Vista Home Edition
    CEH

    Hello

    There are MANY varieties of the latter with a lot of names, but all can be removed with the
    same methods:

    Vista Antispyware 2010, XP Internet Security 2010, Antivirus 2010 Vista and Win 7 Antispyware 2010
    are rogue antivirus, scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • Problem to open the Firefox browser

    I have Win7 Pro 64 bit OS. I installed firefox updated version browser on my system.when I click the icon of Firefox, is having problem to open, but when I open the Task Manager it is show firefox is running, but my problem is why my firefox does not.

    Hello

    You should check with the Support of FireFox and their forums.

    Support for Firefox
    http://support.Mozilla.com/en-us/KB/

    Firefox - community and live Chat
    http://support.Mozilla.com/en-us/KB/ask

    Firefox - Forums
    http://support.Mozilla.com/en-us/questions

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Problem with opening programs of text and photos after the upgrade of computer for Windows 8

    Original title: Photos open in Notepad

    Hello

    Laptop with win 8.

    Recently upgraded XP to win8 with purchased MS DVD.

    All text programs open graphics (pictures) in Irfanview & if I send them WORD show as hieroglyphics jeeperish.

    And all the photos to open Notepad in hieroglyphs jeeperish but if I open them with "Sendto" Irfanview or MS photo editor pictures appear.

    Seems the association went haywire. How can I fix this please?

    8 win in my PC is not that.      .. thanx... .Nick

    Hi Nick,

    Please contact Microsoft Community. I understand that you have a problem with opening the programs of text and pictures after the computer upgrade to Windows 8. I appreciate your efforts to solve this problem, I'll probably help you solve this problem.

    This problem could occur if the default applications are not set correctly.

    I suggest you read the article that will help define the default applications that Windows automatically uses when you open a particular type of file, such as a song, film, photo or Web page.

    Choose the apps Windows uses by default
    http://Windows.Microsoft.com/en-us/Windows-8/choose-Programs-Windows-uses-default

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • Problem with opening Windows store after upgrade to 8.1 Windows

    Original title: cant access window 8 app store

    I had a 8.1 window update to my laptop.but 8 window whenever I try to open appstore, I gives me error that cannot cannot to the authentintion, due to errors, .i tried to open AppStore 3 g, wifi and broadband connection.but I still get the same error.

    Help, please.

    Hello

    Please contact Microsoft Community. I understand that you have a problem with opening Windows store after the upgrade to Windows 8.1. I appreciate your efforts to solve this problem. I've surely you will help solve this problem.

    To better understand the issue, I would need more information on your side.

    1. are you able to open other Apps of metro?
    2. What is the full error message?

    This problem might have occurred because of these reasons:

    1. Corrupt the App Store.
    2. Incorrect settings App.
    3. Corrupt system files.

    Try the steps listed here and see if it helps:

    Method 1:
    I suggest to try the procedure described in the article to reregister the App Store and check if that helps.

    http://blogs.msdn.com/b/notime/archive/2013/10/21/10458031.aspx

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information on how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.

    Method 2:
    If the problem persists, I suggest you perform the Scan SFC (System File Checker) and check if it helps. SFC scan will search the system files corrupted on the computer and replace them.

    Use the System File Checker tool to repair missing or corrupted system files
    http://support.Microsoft.com/kb/929833/en-us

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • 30 days after the program Window 7 6 Lightroom does not, open a popup that says error 16. What should I do?

    30 days after the program Window 7 6 Lightroom does not, open a popup that says error 16. What should I do?

    Try reinstalling AAM.

    https://www.Adobe.com/support/downloads/detail.jsp?ftpID=4773

  • Closing popup programmatically.

    Hi all

    I use Jdeveloper 12.1.2.0.0. I need to close the popup programmatically.

    The popup is inside a page fragment that is included in another fragment of page.

    I use viewscope bean, so I can't link the popup directly. So I am using the following code.

    ExtendedRenderKitService extRenderKitSrvc = Service.getRenderKitService(fc, ExtendedRenderKitService.class);
            extRenderKitSrvc.addScript(fc, "AdfPage.PAGE.findComponentByAbsoluteId('" + "p1" + "').hide();");
    

    P1 is the id of the pop-up window.

    It does not work. Why does this work?

    Thanks in advance,

    Vignesh S.

    Hello

    his does not work because the popup on the client ID is not p1, but also contains containers of naming as regions. So most likely the popup is r1:r2:p1 if it is contained in a nested page fragment. However, you can close the popup using Java

    ComponentUtils (Apache MyFaces Trinidad API 2.0.2 - SNAPSHOT API)

    The ComponentUtils class has a findRelativeComponent method that performs a search. So, if the point of invocation the popup is located in region 1 region 2--> then the 'from' is r1:r2 looking for. The p1 component, you get in return is of type RichPopup and exposes a method to hide the dialog box

    Frank

  • Hello! I'm having a problem to open a session on creative cloud. I can log on to the page on the site, but when I try to download a product, the e-mail message that is broadcast, it is an email from my ex-boyfriend, and I just can't change it! So I'm not

    Hello! I'm having a problem to open a session on creative cloud. I can log on to the page on the site, but when I try to download a product, the e-mail message that is broadcast, it is an email from my ex-boyfriend, and I just can't change it! I'm not able to buy a product! Could you help me, please?

    Quit Adobe Creative Cloud app.

    (1) right-click on the icon in the Finder, then select 'Go - To' folder.
    (2) you will get a text box, type in the following command and then press the 'return '. (" Do not miss ~ symbol" "')

    ~/Library

    It will open the folder of the user's library.

    (3) then navigate to Application Support > Adobe > OOBE. Open the OOBE folder and Opm.db bin file.

    Once you had trashed Opm.db file, restart the Adobe Creative Cloud app and check.

  • Problem to open the Picts in photoshop from lightroom

    Hello. Excuse my bad English. I already have Photoshop CS3 on my computer and it was never a problem to open photos from Lightroom in Photoshop CS3 before. But since I installed Photoshop Elements also Photoshop CS3 Don t com up as a choice in Lightroom more. I tried to remove elements but it helps won´t.

    Have you tried to configure CS3 under additional editor? Reach:

    Edit > preferences > external edit (tab)

    Lightroom > preferences > external edit (tab) on Mac OX

    Click on the button select and access the CS3 application and select it.

Maybe you are looking for

  • Plugin page keeps being open when Firefox starts

    I installed a Firefox plugin and the associated plugin page continues to open in a new tab, whenever I start Firefox. How can I stop this from happening? This also happens if I go to the window modules and disable/re-enable the plugin, a new tab open

  • Have a Nokia 6700 (Firefox is my browser) can I use Firefox on it.

    In addition above my network is O2 I'd be able to add firefox to the section of yahoo email Bt it or from the section of the Web site.

  • Satellite Pro A200-CH7 - flickering on external monitor

    I have a Satellite Pro A200-CH7 and have the same problem with my external monitor. It's a Viewsonic VX2262WM of 22 "and I see flashing on the screen. I tried the monitor on another laptop and it worked fine.The question is the graphics of cards my T

  • Connect the second VGA monitor to Pavilion HPE

    Hello I have a Pavilion HPE h8-1114 PC, that has a DVI and HDMI monitor port. I have a VGA monitor connected to the DVI port with an adapter. I have a second VGA monitor, I want to connect, but I understand that it cannot be connected to the HDMI por

  • Satellite A665-149 - why the wireless speed is limited to 72MBps?

    Hello My A665 with broadcom wireless means 72MBps is connection speed, with a Cisco Linksys WAG-120N (150MBps). Other older customers with N-material displays the speed of 135/150MBps.OS: Windows 7 Home Premium 64-bit. All upgraded to the latest vers