ADF popup without closing the

Hello
I'm working on Oracle Jdeveloper 11 g Release 1.

I've included a popup beside my page jspx parent for help:
<jsp:include page="/core/gccompliance/library/packages/complianceStandards/AddStandardToPackage.jspx"/>
Jspx code is as below:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <c:set var="coregccomplianceuiBundle"
         value="#{adfBundle['oracle.sysman.core.gccompliance.view.CoreGccomplianceUiMsg']}"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <af:resource type="javascript">
    /** * Shows the popup dialog **/
    function showAddCSDialog()
    {
        var popup = AdfPage.PAGE.findComponent("addCsDialog");
        popup.show();
    }

    function folderBtnListener()
    {
        var popup = AdfPage.PAGE.findComponent("addCsDialog");
        popup.hide();
    }
  </af:resource>
  <af:popup id="addCsDialog" contentDelivery="lazyUncached">
    <af:dialog modal="true"
               title="#{coregccomplianceuiBundle.INCLUDE_COMPLIANCE_STANDARD}"
               id="addCS1" closeIconVisible="false" styleClass="AFStretchWidth"
               dialogListener="#{pageFlowScope.packages_libraryBean.handleAddStandardToPackage}"
               contentWidth="900" contentHeight="350" type="cancel">
      <af:panelGroupLayout id="includeCS2" layout="vertical">
          <af:query id="addcss"
                      headerText="#{coregccomplianceuiBundle.COMPLIANCE_SEARCH}"
                      value="#{bindings.CSSelectorForPackageVOCriteriaQuery.queryDescriptor}"
                      model="#{bindings.CSSelectorForPackageVOCriteriaQuery.queryModel}"
                      queryListener="#{bindings.CSSelectorForPackageVOCriteriaQuery.processQuery}"
                      queryOperationListener="#{bindings.CSSelectorForPackageVOCriteriaQuery.processQueryOperation}"
                      resultComponentId="::cst1" rows="3" maxColumns="2"
                      saveQueryMode="hidden" disclosed="false"/>
          <af:table value="#{bindings.CSSelectorForPackage1.collectionModel}"
                    var="row" rows="#{bindings.CSSelectorForPackage1.rangeSize}"
                    emptyText="#{bindings.CSSelectorForPackage1.viewable ? coregccomplianceuiBundle.MSG_NO_DATA_DISPLAY : coregccomplianceuiBundle.MSG_ACCESS_DENIED}"
                    fetchSize="#{bindings.CSSelectorForPackage1.rangeSize}"
                    styleClass="AFStretchWidth"
                    binding="#{pageFlowScope.packages_libraryBean.includeCsTable}"
                    selectionListener="#{bindings.CSSelectorForPackage1.collectionModel.makeCurrent}"
                    rowBandingInterval="0"
                    rowSelection="multiple" id="cst1"
                    columnStretching="column:resId1c2"
                    summary="#{coregccomplianceuiBundle.PACKAGE_INCLUDE_CS_SUMMARY}"
                    contentDelivery="immediate">
            <af:column id="csSelehdr" width="10" rowHeader="true"/>
            <af:column sortProperty="CsDname" sortable="false"
                       headerText="#{bindings.CSSelectorForPackage1.hints.CsDname.label}"
                       id="resId1c1" rowHeader="true" align="left">
              <af:outputText value="#{row.CsDname}" id="ot1"/>
            </af:column>
            <af:column sortProperty="Description" sortable="false"
                       headerText="#{bindings.CSSelectorForPackage1.hints.Description.label}"
                       id="resId1c2">
              <af:outputText value="#{row.Description}" id="ot6"/>
            </af:column>
            <af:column sortProperty="TargetType" sortable="false"
                       headerText="#{bindings.CSSelectorForPackage1.hints.TargetType.label}"
                       id="resId1c3">
              <af:outputText value="#{row.TargetType}" id="ot5"/>
            </af:column>
            <af:column sortProperty="LifecycleStatus" sortable="false"
                       headerText="#{bindings.CSSelectorForPackage1.hints.LifecycleStatus.label}"
                       id="resId1c4">
              <af:outputText value="#{row.LifecycleStatus}" id="ot4">
                <af:convertNumber groupingUsed="false"
                                  pattern="#{bindings.CSSelectorForPackage1.hints.LifecycleStatus.format}"/>
              </af:outputText>
            </af:column>
            <af:column sortProperty="Author" sortable="false"
                       headerText="#{bindings.CSSelectorForPackage1.hints.Author.label}"
                       id="resId1c5">
              <af:outputText value="#{row.Author}" id="ot3"/>
            </af:column>
            <af:column sortProperty="CsType" sortable="false"
                       headerText="#{bindings.CSSelectorForPackage1.hints.CsType.label}"
                       id="resId1c6">
              <af:outputText value="#{row.CsType}" id="ot2">
                <af:convertNumber groupingUsed="false"
                                  pattern="#{bindings.CSSelectorForPackage1.hints.CsType.format}"/>
              </af:outputText>
            </af:column>
          </af:table>
        </af:panelGroupLayout>
      <f:facet name="buttonBar">
        <af:group id="g15b">
          <af:commandButton text="#{coregccomplianceuiBundle.OK}" id="addcsokb"
                            partialTriggers="cst1"
                            actionListener="#{pageFlowScope.packages_libraryBean.handleAddStandardToPackage}"
                            partialSubmit="true"/>
        </af:group>
      </f:facet>
    </af:dialog>
  </af:popup>
</jsp:root>
When I click on the ok button the listener action {pageFlowScope.packages_libraryBean.handleAddStandardToPackage} is called running a bussiness logic and then call the script method java folderBtnListener() you jspx.
The action listener code is:
    public void handleAddStandardToPackage(ActionEvent ae)
    {
        handleAddStandardToPackage();
        addScript("folderBtnListener();");
    }

    public void addScript(String script)
    {
        FacesContext fcxt = FacesContext.getCurrentInstance();
        Service.getRenderKitService(fcxt,
                                    ExtendedRenderKitService.class).addScript(fcxt,
                                                                              script);
    }
But when I click on ok the bussiness logic is well executed but the popup does not get closed. I have to click the Cancel button to close.

Can anyone suggest what Miss me in my code?

Hello
Have you tried with autoCancel property of popup
See

http://docs.Oracle.com/CD/E23943_01/apirefs.1111/e12419/tagdoc/af_popup.html

Or you must link the popup to Bean and then use
RichPopup.hide ();
See

How to close a popup

Tags: Java

Similar Questions

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • Close the last tab without closing the application firefox

    Greetings!

    1.i would like to close the last tab without closing the application. The behavior I expect is the application to open a new empty tab when I close the last tab currently I can't close the last tab which already has some open site in it.

    2. when I open a new tab, I have to enter a Web site address. I expect the app to just open a new empty tab and let him to enter an address or not for me.

    Thank you for your support. I love firefox for Android.

    It is being developed and will be changed to allow the closure of the last tab in Firefox 18 or 19.

  • How come back initially on an editing session without closing the entire program and start again?

    How come back initially on an editing session without closing the entire program and start again?

    Hello

    There are two answers to this. If you have not saved the image since the opening, you can restore the file Menu-Revert or F12 and that will bring back you at the beginning. A more elegant solution is the historical Panel.

    Photoshop has a history panel (Windows Menu-history) that keeps track of everything you do on an image and allows you to go back in the flow of work and in effect then go ahead if you change your mind. The original image is always registered as a snapshot and then subsequent action recording. So you can come back not only the original image, but any previous change after opening. You can even take your own snapshots which is a useful feature.

    Hope that helps

    Terri

  • How to create a child window without closing the parent window

    Hi all

    I have a requirement to create a child window without closing the parent window. I have to click on an element in the parent window, then is expected to open a child window. The parent window must not be closed before you close the child window.

    Kindly help me in this.

    Thank you and best regards,

    Myvizhi

    Hi all

    I found the solution for this. I created a new page. Then I created an article in the style of link in the parent element, and I put the following properties in the link element:

    Destination URI: OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S

    Target framework: _blank

    This opens the new child window without closing the parent window.

    Thank you and best regards,

    Myvizhi

  • Is it possible to install weblogic 12 c with ADF runtime without using the utility schema RCU?

    Hello

    I am currently developing 'Fusion ADF Web Application' in JDev 12.1.3 and I want to install standalone WLS 12.1.3 to run this application.

    The installer asked me to configure RCU when I select Oracle JRF. Is it possible to install WLS 12.1.3 with Oracle JRF/ADF Runtime without repository?

    -Arni Thor

    Duncan Mills bloged zbout how to install a stand-alone wls without running rcu here https://blogs.oracle.com/groundside/entry/setting_up_a_standalone_weblogic

    Timo

  • ADF Popup showing not the responsibility of fragment

    Hello

    I am calling a bean method in the accessor Get of CommandLink to the load in the binder to a command link defined in the bean, so when this fragment is called from another fragment then

    in this method I m did some checking and based on a specific condition, I have popup.show but it does not show the popup code does not any exception.

    public RichCommandLink getC1() {}

    PopulateData();

    return to c1;

    }

    Now, in populatedata, I popup shown for some disorders but when fragment is called for the first time it does not show the popup, but same populatedata is called the fragment button

    so when I click the button, the popup is displayed correctly.

    So if I understand correctly the first time getC1 is returned when the fragment load, so how this popup appears in this...

    Public Sub populatedata()

    {

    If...

    {

    System.out.println ("popup display");

    RichPopup.PopupHints p2 = new RichPopup.PopupHints ();

    P1. Show (P2);

    System.out.println ("after the popup display");

    }

    }

    In the newspapers, I see the two system messages, you guys can suggest me how to get this popup appears when the fragment of loading for the first time and the get accessor for the c1 is going to get fired.

    JDeveloper version: 11.1.2.3.0

    Kind regards

    Hello

    you have debugged the method call to prove that it is called at all? Instead of a binding component as a trigger, you can try a value property, for example on a hidden output text element?

    Since you're on JDeveloper 11 g R2, the use of the events of the JSF 2 system becomes also possible. The event system would be added to a component on the fragment (for example the fragment root layout container) and then listen to the phase of rendering pre-rendered.

    See: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf

    Frank

  • case without closing the

    I just replaced the battery in an ipod video 5th generation when I closed the case on one side of the case closes properly, theres a small gap, can I do?

    That's because something inside interferes with the power to shut down the case completely?  If Yes, open to the top one make sure that everything is in its place.  Compare the old battery to the new.  If the new battery is substantially thicker compared to the old battery, it is defective or not properly designed for a 5th generation iPod.

  • How to send a file without closing the socket?

    I wrote a program to transfer a file by using the tcp connection, where I closed the socket because the receiver must detect the end-file.  But now I would extend it to several files for which I shouldn't close the socket until all files are sent. I can't find a way to do this. So please help to solve.

    Such a long thread, so many errors.

    > Send an end of file marker after each file

    Eventually, which cannot work unless the EOF marker can occur in the file, which is unknowable, or there is a convention of escape agreed where it occurs in the file. In which case, you must also apply the convention to escape to escape Convention. For example, you can terminate with ETX and escape with ESC, but this means that the ETX and ESC must be escaped in the data file, and which in turn means that you need to escape out of ETX and ESC ESC ESC when you receive.

    > In the link, they said the error to happen is because of the header

    No, in the link, they said that the error is caused by using a BufferedReader and then read directly the data stream. Jet disappears in a BufferedReader, err, buffering.

    > BufferedReader has a read (byte [] buffer) method

    No, BufferedReader doesn't have a read (byte [] buffer) method.

    Follows a proven response, unspeculative with code.

    1 use the sender DataOutputStream and DataInputStream to the receiver.

    2 send the file name with writeUTF() and read with readUTF().

    3. send the length of file with writeLong() and read it with readLong().

    4. send and receive exactly that number of bytes, as follows:

    length = din.readLong (); in the receiver, or File.length (to sender)

    total length = 0;

    int count;

    ubyte [] buffer = new byte [8192]; or what you want, any size > zero

    While (total < length="" &&="" (count="din.read(buffer," 0,="" (int)math.min(buffer.length,="" length-total)))=""> 0)

    {

    dout. Write (buffer, 0, count);

    Total += count;

    }

    Errors and omissions excepted. You can use this code on both ends.

  • Menu accordion without closing the point selection (Mobile site)

    Hi, I am building a site with an accordion menu for scroll a page navigation. The menu works very well because it is closed at the start and goes down on the press to reveal navigation, however once the user selects the item they wish to naviagte to the menu still expanded. Preview of Muse, it's working properly, the accordion of closing, once an item is selected, but in-situ (the site is hosted on BusinessCatalyst), it does not work. I tested on Android and Iphone using the chrome and standard browsers, none of them work as expected. The site is here: www.cordellhouse.com

    Any help gratefully received!

    Sorry for that! My bad...

    I just watched your mobile version, and I could see that it does not close after you make a selection. You can also test it with this link, without using a mobile device:

    http://cordellhouse.BusinessCatalyst.com/phone/

    I'm afraid it's an incompatibility between an extract of the Muse and the 'real world'. The menu accordion is not destined to become a menu collapse, with the obvious behavior of allowing users to select and navigate. As a matter of fact, in a situation where users would read major texts in an accordion, they wouldn't be happy to close automatically when you navigate to the page. Only refreshing or revisit the page requires the accordion to close itself.

    The only workaround I can think of, is to make it clearer to the user to manually close the menu. (Use an 'x' or something.)

  • How to use a button in a dialog box without closing the dialog box

    I defined a button located in a dialog box. I want this button to refresh an outputText but when clicked, the managed bean method is called as expected and the dialog box is closed that I don't want.

    <af:popup id="dataFilterPopup">
      <af:dialog id="d5" contentHeight="500" contentWidth="600" stretchChildren="first">
      <af:panelGroupLayout layout="vertical">
      <af:commandButton text="Count" id="cb1" action="#{pageFlowScope.ReportDataFilterBean.count}" partialSubmit="true" partialTriggers="countText"/>
      <af:outputText id="countText" clientComponent="true" value="Number: #{pageFlowScope.ReporDataFilterBean.countValue}"/>
      </af:panelGroupLayout>
      </af:dialog>
    </af:popup>
    

    The managed bean counting method sets the value of the countValue.

    public void count() {
     countValue = 10;
    }
    
    public int getCountValue() {
      return countValue;
    } 
    

    I see two errors:

    1. you may use the 'action' of attribute because it causes the navigation there is no transition rule such that the current page is just refreshed, so your dialog box is closed. Use 'actionListener' rather;

    2. in order to refresh the component, you must set the 'partialTriggers' attribute but not the attribute 'partialTriggers' the command button:

    Dimitar

  • service of Firefox without closing the

    I use CCCleaner at the end of each session of my PC. Since the FF5 update, I frequently get a message of CC saying he can't clean up because FF is still ongoing. It was after I closed FF. I look in the Manager of tasks, Apps and FF is not there. However, in the process, there is an entry for FF. When I stop it, all right.
    How can I make sure that when I close FF, the process is interrupted too?

    TKS

    Do a clean install (re)-:

    -> To download a new copy of Firefox and save the file to the desktop.

    -> Uninstall your current version of Firefox and delete the folder Program Files of Firefox before installing this copy of the Firefox installer.

    • Do not remove the data of a personal nature if you uninstall the current version.
    • It is important to remove the Firefox Program Files folder to delete all the files and make sure that there is no problem with the files that were leftovers after uninstall.

    Check and tell if its working.

  • How to add the resource catalogue Popup without invoking the editable layout

    Hello

    I have a requirement of the catalogue of resources. At the click of a button, I want to load the catalog of resources pop up without the EDITING page (unrelated CHANGE or ctrl + shf + E and then "add content" of the Oracle composer).
    The Action element, we want to implement are
    1.A the page with the ADD"" button.
    2. the button a pop up with 2 files (Taskflows and Portlets).
    3. This shud folder contain Portlets and the Taskflows custom in our application.
    4. on the selection of anyone of this taskflow or the portlet, it should load on the bottom of the button.

    Thank you
    Vishnu

    Published by: user10885777 on March 13, 2013 02:35

    Hello.

    Your requeriments combat the composer :). Why not use OOTB Oracle composer.?

    If you need to do without going to 'Edit Mode' my recommendation is to decompile the WebCenter/composer libraries and try to do the same thing because you have to save the changes to the MDS, manage simultaneous page editing, configure the components that are customizable etc... It is not a trivial job.

    If you find an easier way, please share it with the community :). At the moment I can't recommend decompile you and learn a little how works OOTB.

    Kind regards.

  • Add logfile group without closing the first? (10g R2)

    Can I add a group of log file without the first stop of the Forum? I don't see any clear statement on this issue in my book of Admin Alapati 10 g or any docs of Oracle 10g R2. Popular quotes. Maybe it's one of those things "too obvious to publish." My guess is that Oracle 10 g R2 is smart enough to know not not to write to the new log file group members until it is entirely created and available for use.

    Thank you.

    Yes it can be done online: by default most of the statements can be performed online with data in open mode.

  • Popup without closing on click

    Hi all

    In one of my page jsf when a click on a link to order a popup opens and shows the data

    < tr:commandLink text = "#{viewtrinidadBundle ['user.search.partnerlocation']}" "
    action = "dialogue: SelectedPartnerLocation ' useWindow = 'true '.
    partialSubmit = 'true' immediate = "true".
    windowHeight = "600" windowWidth = "550" / >

    in this window, I have a commnd close button. When I click on this is should it close iam using the Window.Close (); but do not close the pop-up window.

    all entries...


    Rgds,
    Ravi

    Published by: RKadiyala on July 1st, 2009 23:20

    place this code in the CommandButton backingbean

    FacesContext facesContext = FacesContext.getCurrentInstance ();
    ExtendedRenderKitService = service
    Service.getRenderKitService (facesContext,
    ExtendedRenderKitService.class);
    service.addScript (facesContext, "(AdfPage.PAGE.findComponent ('popupid')) () .hide;");

Maybe you are looking for