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

Tags: Java

Similar Questions

  • 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

  • ADF popup does not work on server

    I created a page popup using the ADF workflow task.
    Basically, the action of a button triggers the pop-up window.
    It works fine locally, but when I deploy to server and clicked the button, it just refreshes the page and pop-up window is not displayed.

    Thanks for your help.

    When you run the page on the server, using the right URL? If you see a "jspx" on the end of your URL, you're probably not. You must run view taskflow activity and not the page itself. Another common way to confirm if you hurt: If clicking the button works the second time, and then you do wrong :)

  • Phocus 2.7 and 4.3 LR shows not the same GPS coordinates

    Hello

    I have a different value to read out of the GPS for Hasseblad LR in Phocus unit

    When the FFF or DNG format Hasselblad Phocus 2.7 I have the following coordinates:

    -43 ° 19'43 "N 5 ° 4'37" E

    In LR 4.3 wheather im using the Phocus generated files, or the files of the Adobe's DNG Converter I have the following coordinates:

    -43 ° 19'44 ' N-5 ° 4'38 '' E

    Maybe it's not a very big difference, but I'm worried if there are other situations where the error is greater than that?

    Any idea?

    / Mikael

    Hello

    the two systems around the coordintates GPS, but differently. It's just for a nice display and does not affect your image and workflow data.

    I do not expect that LR is changing the GPS information. (Unless you change the modules of card). If you export your DNG in jpg and look at the exif data, you should see the complete information of GPS, not the LR round once.

  • IR + jQuery + effect of waiting - not showing not the region setting

    Hi all:

    I have two problems 1) implementation of a hint of Martin Giffy D'Souza does not feature with IR + jQuery work and showing an effect of waiting prevent users to run the IR again. I add the parameter of a region to pass variables to the IR.

    Effect of waiting shows when you tap the GO (the IR region), but does not not when press the button SUBMIT (parameter region).

    (2) on the other side when I run (SUBMIT or RESET) the application in my workspace OTN gives me that error (http://apex.oracle.com/pls/otn/wwv_flow.accept) in my environment (pc) works very well.


    http://Apex.Oracle.com/pls/OTN/f?p=12819:1

    Developer: http://apex.oracle.com/pls/otn/f?p=4550:1

    Request = 12819

    workspace: RPUTELLI
    user: TESTER
    Pass: Tester

    Thank you

    Rolando

    There are several ways to do so, but an easy one would be to add an onClick event on your submit button that uses the same code

    onClick = "goModal ('apexir_LOADER', {position:['30%',]});}).

    Martin

    -----
    [http://apex-smb.blogspot.com/]

  • Why "Bulk Mail" foder not shows not the number of unread messages unless I click on the folder (via IMAP Yahoo mail)?

    'Spam' of the Yahoo e-mail account folder (as seen through the web interface 'Yahoo mail') is displayed in Thunderbird as 'Bulk Mail' (IMAP). Looking at the account in Thunderbird foders, I see the number of unread messages in each folder. "Bulk Mail" always seems to be empty. If I click on the "Bulk Mail" folder, then magically messages appear in the message list and the number of unread messages is displayed next to the name of the folder, as in all other folders for this account.

    Why I need to touch the "Bulk Mail" folder to see the number of messages inside?

    Yahoo deletes the messages in this folder during certain periods. I'm in danger of losing messages unless I remember to touch all of the mail files in bulk from my account Yahoo in Thunderbird.

    How do I get the "Bulk Mail" folder to display the number of unread messages as do all other folders of the same account?

    Thunderbird 24.6.0, Windows 7 Enterprise Edition (Sp1)

    Pekka

    I do not use IMAP in Thunderbird, so I can't provide instructions step by step, however, other e-mail programs have settings synchronize each individual file on a calendar or using push IMAP (vs when you click it) or not. If Thunderbird has these parameters, I would expect that they appear in the properties of the folder or the account settings. This might be useful, but I don't know if you already have a few dig like that or not.

    FYI, a quick search brought me to this page:
    https://support.Mozilla.org/en-us/KB/configuration-options-folders

    An item listed on this page is the following:

    Configure the IMAP folders, connections, and namespaces

    Location of the menu: tools | Accounts settings | < account name >. Server settings | Advanced

    It might be a good starting point because it does not mention connections to IMAP folder, but the folder properties could still be somewhere easier to read first, just in case. To do this, the site lists this:

    Configure the properties of the folder (IMAP folders only)

    Menu card: Edit | Folder properties. General information

    However, I think that you could right-click on the "Bulk Mail" folder and click Properties on the shortcut menu.

  • Stor.E TV only shows not the menu - can't access files

    The new M unit does not display the menu at startup.
    So I can't access my files

    nmck

    Hello

    You are able to set the TV Stor.E by default (factory) settings?
    Choose:
    By default, Setup-> General Setup->

    But if you do not see yet this point, then I guess this store TV is not unbootable and this may be due to a hardware malfunction :(

  • In Windows XP system configuration utility only shows not the size RAM full

    Original title: msconfig boot.ini points MAXMEM 2048 (when it is installed 2560 MB)

    Hello.. a noob here,

    system: DELL Dimension 4600, P4 3 GHz, Windows XP 32 SP3
    2560 MB RAM is correctly installed
    (2.56 GB of RAM reported by 'System')
    (2.62 GB of RAM by TaskMgr)

    but, when I SPEAR
      "msconfig" ... then click on: BOOT. INI' tab...
    then... Then click on 'Advanced Options'.
    check/uncheck...  " / maxmem Maxmem "
        2048 is displayed and CANNOT BE INCREASED (?)

    How can I have this option / 'right' have the value
    physical memory (RAM) of real system (installed / Total).

    Note: System runs great, it's just a gene... (I think?)

    thnx

    T O

    just for fun... I edited the BOOT. INI and included: /maxmem = 2560 switch:

    • [update BOOT. INI]
      [boot loader]
      timeout = 30
      default = multi (0) disk (0) rdisk (0) partition (1) \WINDOWS
      [operating systems]
      "multi (0) disk (0) rdisk (0) partition (1) \WINDOWS="Microsoft Windows XP Edition family "/ maxmem = 2560/fastdetect / noexecute = OptIn

    Although this change does NOT effect my symptoms, it has hurt anything either...

    Apparently, this switch works widely different from that
    This is the strategy in WINDOWS 7 Professional 64-bit

  • Windows Vista Basic, showing not the taskbar previews

    Hello

    I have Vista Basic package, I used to get previews of the Windows I had open and are reduced to a minimum, but it doesn't happen again. I have not changed the settings that would disable it and in the task bar options, the option is clicked on (thumbnail) previews display the window. How can I get that back?

    Windows Vista Home Basic Edition does not have Aero. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Not sure on the pug-in version, why he showed not "the right version"... and some photos models are not in my version of Photoshop...

    After that I consult with Photoshop Online Chat a few days ago, on the problem of legal code, then it works. but then I use it, according to some teaching books, I discovered that there are some 'photos of model' missing, not as much as books.

    What could I do? Renew the plug-in?

    It depends on what version of photoshop is using the book, but you can find templates more if you click the menu drop-down and click on Preset Manager.

    Then in the Preset Manager, select models, click on the dropdown menu, select game and press done.

    In the Model dialog box click on the bullet of gradient and click on model chip to get the updated models.

    With other things like editing > complete. layer styles and model fill adjustment layer, you just need to use the drop-down list of templates.

    I have no why with the shape tools, model sets are not on the list of the menu drop down.

  • ADF: LOV SHOWS NOT ALL VALUES.

    Hello world

    I have lov on my page. My request for lov shows 700 values when I run the query into a toad.
    But when I run the LOV page shows only 25 values.
    How can I increase the size of LOV to show all values?
    Is it possible?
    Am I missing something?

    Thanks in advance...

    Kind regards
    Raja.

    The size of the beach for your iterator LOV is probably set to 25 (default) in the page links. Set it to-1 to retrieve all the rows at once.

  • How can I get the toolbar to show just the icons, not the full name of the site

    in the toolbar, I want just the icons of my favorites to show, not the full name, so I can add more toolbar...

    Hello
    It seems that this problem should have a simple solution. All what you need to do is...

    1. Right-click a bookmark
    2. Click change
    3. Change the name of the site "" (simply press the space bar)
    4. Repeat steps.

    This will display the name as a SPACEBAR, eliminating the name entirely.

    Please contact the support!

  • Presentation of the form of the ADF - navigation by jumping the next record.

    I have a hard time trying to implement a feature using ADF. Please see my below use case and advise.
    Use case:
    To view the questions and capture responses (yes/no).

    I use a formatting for data (questions to show) collections and adding the Yes buttons, not to enter the answers. The part I'm having trouble is: based on the answer to a particular question, there may be questions void to the question of the mother who may or may not be displayed according to a business logic. All questions and sub-questions are in the same table. The subquestions should not be displayed, should I remove them from the collection of data, so that when I click on the button 'Next' to go to the next question of parent. How to hide or show not the few recordings following, in a collection of data with navigation controls and put in shape.
    Thank you.

    Your previous post has a possible answer. If you update an attribute on the records of the Sub, then when the user clicks the next button you can browse the lines and the value of the current row to the next question with the correct value of the attribute.

    You have an attribute - 'IsDisplayed. Answer to question 2 and press Next.

    (1) if the condition is met - set the IsDisplayed to 'False' flag on the issues 3 & 4.
    (2) crosses the lines until you find the record following IsDisplayed flag = "Y". In this case, it would record 5.
    (3) select this row as the current row in the collection.
    (4) at this stage, the form should display the current line (form 5)

  • How to stop &gt; showing in a response

    Hello

    Just migrated from emClient and I was wondering how I can stop the > showing on the response in quotes - I don't mind the dash (but it would be nice to be able to turn on or off) but I just can't stand the >

    Any ideas gratefully received.

    Thank you very much

    Jamie

    Try this mirror to get the add-on:

    https://freeshell.de/~kaosmos/quoteandcomposemanager-en.html

    The "untrusted" error in no case focuses on the integrity of the author or the modules provided.

  • Stripped to show the behavior of the popup does not work on IE 9

    Hello
    I have logic to display popup windows pragmatically, this does not work on IE 9, IE the popup is ever launched in ie - 9. It works fine on all other browsers. (ie8, ie7, Firefox).

    Here's the code to render the popup:
    {} public static void showPopup (RichPopup popup, boolean visible)
    try {}
    FacesContext context = FacesContext.getCurrentInstance ();
    If (context! = null & & popup! = null) {}
    String popupId = popup.getClientId (context);
    If (popupId! = null) {}
    Script of StringBuilder = new StringBuilder();
    script. Append ("var popup = AdfPage.PAGE.findComponent('").append (popupId).append("') ;");
    If {(visible)
    script. Append ("if (! popup.isPopupVisible ()) {" "}"). Append ("Popup.Show ()}}") ;
    } else {}
    script. Append ("if (popup.isPopupVisible ()) {" "}"). Append ("Popup.Hide ()}}") ;
    }
    Erks = ExtendedRenderKitService
    Service.getService (context.getRenderKit (),
    ExtendedRenderKitService.class);
    erks.addScript (context, script.toString ());
    }
    }
    } catch (Exception e) {}
    throw new RuntimeException (e);
    }}


    Please help, I think that the erks.addScript has some problem with ie9.

    Hello.

    I tested the code of nini and it works in 11.1.1.6 and IE9

    but you must add a partialsubmit in the button

Maybe you are looking for