How to call a popup by programming in the region of the adf

Hi all
I have included a workflow as a region in my home.jspx page.
My taskflow contains an active, page jsff where save button click I want to show a popup message programmatically
I mean I want to call showpoup code in my save the action listener.
I had some code snippet, but it works only incase if popup is called from jspx.

*****************

public static invokePopup Sub (String popupId, String line,
String alignId) {}
If (popupId! = null) {}
ExtendedRenderKitService = service
Service.getRenderKitService (FacesContext.getCurrentInstance (),
ExtendedRenderKitService.class);

StringBuffer showPopup = new StringBuffer();
showPopup.append ("var tips = new Object();");
Add hints that if specified - see javadoc for js AdfRichPopup for more information on the behavior and valid values
If (align! = null & & alignId! = null) {}
showPopup.append ("tips [AdfRichPopup.HINT_ALIGN] =" + line +)
";");
showPopup.append ("advice [AdfRichPopup.HINT_ALIGN_ID] ='" +)
alignId + "";");
}
showPopup.append ("var popupObj = AdfPage.PAGE.findComponent (" "+)")
popupId +.
"'); ("If (popupObj) popupObj.show (hints);");
service.addScript (FacesContext.getCurrentInstance (),
showPopup.toString ());
}
}


*************************************************8

Please let me know what changes should I inorder to call popup thid invoke, the jsff method.

Thank you, regards,
Arun.

Hi Arun,

From Oracle JDeveloper 11.1.1.3, instance of af: popup can be opened by using a Java method on the RichPopup object. There is no more need of javascript and the extendedRenderkitService.

To launch a popup to a managed bean, you must first get an instance of rich popup, what you can do by making reference to a binding of JSF component.

To open the context menu call you

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

Popup indicators can be used to set the alignment, the component that the popup is open next door and the alignment type.

To close a popup, simply call

popup.show(hide);

Regards Luke

Tags: Java

Similar Questions

  • How can I make my default program for the Adobe Downloads?

    How can I make my default program for the Adobe Downloads?

    Set up the default program depends on the type of file you download, Ex:-PDF file open in Adobe Reader or Acrobat.

    The downloaded file is opened in the default program set on your computer for this file type.

    The steps may vary for Windows and Mac.

    Windows

    Right click on any file with the file type that you want to change the default program Ex:-Pdf,.

    Select 'open with '.

    and from the list select your application that you want to set default Ex: Acrobat

    Check the option on the bottom, "always choose this application to open this file type.

    Mac

    CTRL + click on any file with the file type

    Go to 'Get Info '.

    Modify the Application in the 'open with '.

    Select 'change everything '.

    Close window 'Get info '.

  • How to call ofa page concurrent programs

    Hi all

    I need call concurrent programs of OPS page.user will select the out put the type of lookup and a button more must be RUN it if he select type and run the report.

    can someone suggest me how should I call from ofa simultaneous program page



    Thanks in advance
    Anthony

    Hello

    He comes to work for the same code:

    The controller code:

    Am3 ForumAMImpl = (ForumAMImpl) pageContext.getApplicationModule (webBean);
    RequestId int = (int) am3.submitrequest ();
    String url = "OA.jsp? akRegionCode = FNDCPREQDETAILSTOPREGION & akRegionApplicationId = 0 & REQUESTID ="+ requestid +"& retainAM = Y & addBreadCrumb = Y;

    pageContext.setForwardURL (url,
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    NULL,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);

    Code of the AOS

    public int submitrequest()
    {

    Try
    {
    OADBTransaction tx = (OADBTransaction) getOADBTransaction ();
    java.sql.Connection pConncection = tx.getJdbcConnection ();
    ConcurrentRequest cr = new ConcurrentRequest (pConncection);
    String applnName = "PA." Application that contains the concurrent program
    String cpName = "SAPE_WITHDRAW_NOMINATION"; The simultaneous program name
    String cpDesc = "auto remove appointments with expired Nomination period; simultaneous description of the program

    Pass Arguments using the vector

    Vector cpArgs = new Vector();

    Call the simultaneous program
    requestId int = cr.submitRequest (applnName, cpName, cpDesc, "", false, cpArgs);
    TX.Commit ();
    System.out.println ("Request ID is" + requestId);
    return requestId;
    }
    catch (RequestSubmissionException e)
    {
    OAException oe = new OAException (e.getMessage ());
    oe.setApplicationModule (this);
    throw oe;
    }
    }

    Thank you
    Gerard

    Published by: Gauravv on November 9, 2009 20:16

  • my Skype closes and I click on a video call with an error: program of the window is closed due to technical problem

    original title: my Skype close as I click on a video call with error window close program because the problom technique

    I was using Skype program for a long time, but the last two days it stop working when I make a video call, it closes immediately give reason which, due to certain techniques problom window close the program

    Make sure your Windows is fully updated and the latest service pack installed.

    Update of Skype or to download the latest version of their Web site.

    Please update your webcam software and the graphics card driver.

    Check Windows problem and Solution Center and see if there is a new solution it.

  • How to call adobe pdf reader to open the PDF files in your application BB10?

    Hi all

    Can anyone please write an example of cascades showing how to call adobe pdf reader to open PDFs inside my BB10 stunts application?

    Thanks,.

    Mohanad

    This is how to do it:

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/AdobeReader.html

  • How can I add an existing program for the boot menu (so that it is initiated when I turn on the computer)

    Long story, but I accidentally deleted the program pad track (DellTPad) to start the ritual.  So now I can not turn the touchpad switch.   How can I get the program in the start menu so that I can control the touchpad again?  I found the DellTPad program on the computer but I don't know how to get it back in the boot process.  I don't have a decent backup to restore.

    Send a shortcut on the desktop. Then, without letting go of taken, drag it to the Start button, all programs, in the startup folder and drop it.
     
  • How can I remove an incorrect program in the list of recommended programs?

    I tried to open a program by 'Open with' a program that turned out not to be compatible with the file typed, I tried to open.  Now every time I try to open this type of file by using the command 'Open with' the wrong (not compatible) program is still listed in the list of recommended programs.  How to remove the wrong program in the list of recommended programs?

    See if this tutorial will help.

    http://www.SevenForums.com/tutorials/96077-open-clean-up-remove-programs.html

  • How to load a popup conditionally loading of the page

    Hello

    I want to load popup on loading the page if:

    1. the user is autheniticated
    2. and popup does not appear.

    I am aware of the new feature in JDeveloper 12.1.2.0.0 release conditionally disabling af:showPopupBehavior

    ADF binary Decompilation: conditionally disabling af:showPopupBehavior

    But I use the 11.1.1.6 version.

    I'd appreciate your help/suggestions.

    Thank you

    Singh

    These are two problems:

    (1) the execution of an action on the page loading

    (2) showing a popup under certain conditions

    1 solution), https://blogs.oracle.com/adf/entry/an_epic_question_how_to

    (Solution 2) each of the 1) use a method somewhere inside this method, you can check your conditions and display the pop-up window of the method. For this 'How to launch a popup programmatically from Java' in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf (Page 6) can be used.

    Timo

  • How to call a value of preference in the XSLT file

    Hi all

    How to call a value preference (which is defined in bpel already) in the XSLT?

    Can someone help me please

    Kind regards

    Villeneuve ch

    Get the value of preference and and check out the post below to pass as a parameter

    http://www.albinsblog.com/2012/07/passing-parameter-to-XSLT-in-SOA-11g.html#.UjfqfMZmiSo

    Concerning

    Albin I

  • question on "How to call a method once when starting the application"

    Hello everyone.

    I'm trying to implement that article "How to call a method once when you start the application" by Frank suggests.
    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_invoke_a_method


    Suppose I want to have a single entry point, so in my login.jpsx I have the below:
    <f:view beforePhase="#{login.onBeforePhase}">
    In the 'onBeforePhase' method, I have to pass the phaseEvent, since the signature is as follows:
    public void onBeforePhase(PhaseEvent phaseEvent)
    But how do I know the phaseEvent during the call to the login.onBeforePhase? How the call should be?

    Thank you very much!


    PS. I use jDev 11.1.2.1.0

    You must not pass something to this method, this method is called before each Phase except view restoration
    Just write logic as Frank suggested to the phase in which you want the code to run. You can get the PhaseId analogues

    PhaseId.RENDER_RESPONSE

    public void onBeforePhase(PhaseEvent phaseEvent) {// from Frank's doc
     //render response is called on an initial page request
      if(phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
    ... etc
    
  • How to call images from a folder to the main scene?

    Hello.

    I am a newbie to Flash. I learn how to create a basic flash image gallery.

    I am trying to find a way to call images from a folder to the main stage and animate the image appears for 1 second and change to the next image in a slide show loop. It is the homepage of the gallery.

    Thank you.

    It depends on which version of Actionscript you are using.  Since there is time involved, and you need to know when the images are responsible for the control of the synchronization, in AS2, you must use the MovieClipLoader class (with a listener for the completion of the load) and in AS3, you use the Loader class (with a listener for the completion of the load).

    For AS2, there is an example in section MovieClipLoader.addListener who watch most part of what you need to load and detect the loading is completed.

    For AS3 you should try Googling using terms like... "Tutorial AS3 Loader COMPLETE."

  • How/where to store more information page in the ADF?

    Hi all

    What is the best way to fill the managedBean during the loading of the page?

    In my application, I have a page fragment that displays the details of the user of Webservice DataControl. I have and drag the data to the pageFragment webservice control. This fragment has mapped in the taskFlow and the annex taskFlow in to JSPX homepage as a region. I need to store such user information in any place (ManagedBean / or any other better place to store) that I can use at my request along, because I won't run again whenever the webservice to get the same information from the user. Also, I want to collect and store this information while I give back to the homepage, not after any action of the user.

    Please advice how & where to store the information in the ADF? Can I create a managedBean? If so, how to trigger this class method on page load?

    Thank you
    KLN

    Hello

    in this case, you configure the managed bean to be within the scope of the session. Then, on the first page, you set a stage for restoration after phase listener (it is a beacon in the f: view element). This is phaselistener refers to the bean managed using EL (important). She can do by using an expression of the method in JSF. For example, if the managed bean had a populateUserInfo method then yu might reference #{beanname.populateUserInfo} and run the expression of the method using Java. In the managed bean, the method would be to access the link layer using the BindingContext class

    http://download.Oracle.com/docs/CD/E15051_01/apirefs.1111/e10653/Oracle/ADF/Model/BindingContext.html

    Call

    . GetCurrent () .getCurrentBindingsEntry () BindingContext to get a handle of instance active BindingContainer.

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    Then on the container of the binding, you call the method to query the Web Service for the modules

    before calling a method on the ADF link layer, make sure that the ADF is binding for the method
    OperationBinding opws (OperationBinding) = bindings.get ("name of the method exposed on the other side");
    If you need pass parameters
    opws.getParamsMap () .put ("name of the argument", value);
    OPWS. Execute();

    You can use similar code to access the information of the user of the iterator method in the ADF to complete managed bean fields. You can access user information from the bean managed through getter and setter methods

    Frank

    PS. : I know that the description is a little rough. I'll see if I can find a sample of blog at a later date

    Published by: Frank Nimphius, 26 January 2010 17:43

  • How to call sequence into LabVIEW, by providing the path of the sequence files.

    Hello

    Please give me a solution for call sequence from the API ActiveX LabVIEW file by entering the path of the LabVIEW user interface sequence.

    Thank you

    Wherry

    Here is a link I gave some pointers on how to run a file opened via Single Pass sequence.

    http://forums.NI.com/T5/NI-TestStand/direct-execution-of-the-sequence-when-UI-launches/m-p/2000819#M...

    How are you going to start this sequence is the user who selects the sequence on the disk?    Is already open in a SequenceViewMgr control?

    An operator interface would be more applicable to your situation?

    Thank you

    PH

  • HOW CAN I DISABLE POPUPS OF BALL FOR THE DASHBOARD OF THE SSD?

    Hello - I am getting popups in taskbar notification bar when I close the dashboard of SSD.  He tells me to click on the SSD to open the dashboard again.  I have to click on the "X" in the ToolTip window to remove the popup and sometimes it will come back several times if I do not open the dashboard.  How is it possible to disable the popup balloon?

    I use a PC with the Windows Vista operating system.

    Thank you

    Hello

    in this case I suggest to close the whole software and not let it run with windows, all the time because it is not necessary. If you can open the software once a week to check the status of the ssd and close it again.

    I don't think there's a way to disable the pop ups

  • How can I set up a program as the default program to send emails?

    Original title: How can I include a program recently moved to alloy to use my email address.

    I just installed a new card by making the program on my computer windows 8, when I tried to

    the card, that it could not send an email.  Advised to no associated messaging program and create default

    program control panel.  Cannot find place to add program.  New program does not appear

    in default list but appears in the list of my programs, cannot find a place to add it?

    THX

    Hello

    I suggest for the link and follow the steps in the article to resolve the problem:

    Choose the programs Windows uses by default

    http://Windows.Microsoft.com/en-in/Windows-8/choose-Programs-Windows-uses-default

    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.

Maybe you are looking for

  • Spotlight privacy and strength of transmission usb eject

    I use an external usb drive, as my Time Machine drive. almost every time that I try to eject it, I get a message that it cannot be ejected and I should use the ejection Force. In the past, I was able to avoid this by turning off Spotlight indexing dr

  • Where the main photos folder (using the Amazon cloud backup)

    I use OS 10.9.5 on an older iMac.  Backup with Amazon Cloud stand to point to the folder containing my thousands of pictures.  Could someone tell me please in the appropriate folder? Thank you!

  • Using the XY Positions of the graphic intensity sliders

    Hey all,. I have an application that displays a graph of the intensity. I have two sliders on the chart that I use to make a box around parts of it to "zoom in". Right now, I manually type in the positions X and Y of two sliders in the areas of digit

  • [Error number: 0 x 80240036] problem with windows update

    Why do I get [error number: 0 x 80240036] when I try to use windows/microsoft update. I have win xp home edition comes to install and I have no wifi and no sound. I thought that the update would solve these problems, but I can't update

  • How to create an association in the Panel Options files

    I try to open an e-mail and it does not allow me to do. It says "this file does not have a program associated with it for performing this action. Create an association in the Folder Options Control Panel. I don't know how to do. I see the article in