ADF:Popup contentDelivery=immediate vs popupFetchListener

Hello everybody
I am having a problem using a popup which can be explained as followed:
When I use contentDelivery=immediate the popupFetchListener is not triggered
When I use contentDelivery=lazy the popupFetchListener is trigger.
Due to the advantage of showing the content when the popup opens, and so displaying the information that I need I have to use contentDelivery=immediate, but I also want to use a popupFetchListener.
Can anybody tell me where is the problem and what can I do to bypass it?
Thank you
Angel

Angel,
There is no problem - the [url http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_popup.html]documentation will tell you that what you describe is the documented behaviour:
The PopupFetchEvent is one of two server-side popup events but doesn't have a corresponding client event. The popup fetch event is invoked during content delivery. This means that the event will only queue for popups that have a contentDelivery type of lazy or lazyUncached. Another caveat is that the event will only work when the launch id is set. This is automatically handled by the af:showPopupBehavior but must be provided as a popup hint if programmatically shown.Since the PopupFetchEvent is specifically defined as an event that is fired during content delivery, it's not going to fire if there is no deferred content delivery.
John

Similar Messages

  • Cancel button on ADF popup does not work with AutoSubmit Fields

    Hello,
    I currently have a very simple form inside of and ADF popup. I the form contains one SelectManyListbox. Here's my issue.
    Lets say my form contains option A, B, and C.
    Okay I open the popup for the first time, and a select, A and B, and I click cancel. When I open the form again, I would expect no options to be selected. HOwever, that is not the case, the last options I selected, prior to hitting Cancel are still selected.
    I was able to fix this issue by setting contentDelivery to "lazyUncached".. However, as soon as I set autoSubmit to "true", the behavior goes back to keeping the selections I made, even if I hit cancel.
    Question :
    How can tell the popup to deselect the items that were selected in the SelectManyListbox during the canceled operation of the popup, when autoSubmit is enabled? IN other words, if A and B were selected, and I hit cancel, when I open the popup again, I should see zero items selected in the list.
    Regards,,.

    Here, is a sample that i have in my project.
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1"
    binding="#{backing_dev_rma_cart_Details.showCartDetails}"
    contentDelivery="lazyUncached">
    <af:dialog id="d2" type="none"
    title="#{userinterfaceBundle.MODIFY_CART_DETAILS}"
    inlineStyle="font-size:small;" closeIconVisible="false">
    <f:facet name="buttonBar"/>
    <af:panelGroupLayout id="pgl33" layout="vertical">
    <af:panelFormLayout id="pfl2" rows="4" maxColumns="1">
    <af:panelLabelAndMessage label="#{userinterfaceBundle.SERIAL}"
    id="plam1">
    <af:outputText value="#{bindings.SerialNumber.inputValue}"
    id="ot9"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{userinterfaceBundle.PART}"
    id="plam2">
    <af:outputText value="#{bindings.ItemNumber.inputValue}"
    id="ot10"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Description.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.Description.inputValue}"
    id="ot12"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage id="plam12"
    label="#{bindings.CustomerPo1.hints.label}"
    rendered="#{pageFlowScope.RmaAttributesBean.categoryId == 'RET ONLY' ? false : true}">
    <af:inputText value="#{bindings.CustomerPo1.inputValue}"
    label="#{bindings.CustomerPo1.hints.label}"
    columns="30" maximumLength="25"
    shortDesc="#{bindings.CustomerPo1.hints.tooltip}"
    id="it11" simple="true"
    required="#{sessionScope.GlobalInfo.rmaPOreq == true ? true : false}"
    rendered="#{pageFlowScope.RmaAttributesBean.categoryId == 'RET ONLY' ? false : true}">
    <f:validator binding="#{bindings.CustomerPo1.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.TrailerNo1.hints.label}"
    id="plam5">
    <af:inputText value="#{bindings.TrailerNo1.inputValue}"
    label="#{bindings.TrailerNo1.hints.label}"
    required="#{bindings.TrailerNo1.hints.mandatory}"
    columns="30" maximumLength="15"
    shortDesc="#{bindings.TrailerNo1.hints.tooltip}"
    id="it8" simple="true">
    <f:validator binding="#{bindings.TrailerNo1.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage id="plam11"
    label="#{userinterfaceBundle.REASON_FOR_RETURN_0}">
    <af:selectOneChoice id="soc5" autoSubmit="true"
    unselectedLabel="#{'--'} #{userinterfaceBundle.REASON_FOR_RETURN_0} #{'--'}"
    valueChangeListener="#{backing_dev_rma_cart_Details.reasonForReturnValueChange}"
    simple="true"
    value="#{bindings.ProblemTypeId.inputValue}">
    <af:forEach items="#{bindings.RmaProblemCodes.rangeSet}"
    var="item">
    <af:selectItem id="si4" value="#{item.Meaning}"
    label="#{item.LookupCode}"/>
    </af:forEach>
    </af:selectOneChoice>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.CompanyNotes1.label}"
    id="plam4"
    showRequired="#{bindings.ProblemTypeId.inputValue eq 'OT'}"
    partialTriggers="soc5">
    <af:inputText value="#{bindings.CompanyNotes1.inputValue}"
    label="#{bindings.CompanyNotes1.label}"
    required="#{bindings.CompanyNotes1.hints.mandatory}"
    columns="60" maximumLength="150"
    shortDesc="#{bindings.CompanyNotes1.hints.tooltip}"
    id="it9" simple="true" partialTriggers="soc5"
    rows="2">
    <f:validator binding="#{bindings.CompanyNotes1.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName1}"
    id="plam6"
    showRequired="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired1 == 'Y' ? true : false}"
    rendered="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName1 != null}">
    <af:inputText value="#{bindings.Attribute1.inputValue}"
    label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName1}"
    columns="60" maximumLength="150" rows="2"
    shortDesc="#{bindings.Attribute1.hints.tooltip}"
    required="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired1 == 'Y' ? true : false}"
    id="it14" simple="true">
    <f:validator binding="#{bindings.Attribute1.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName2}"
    showRequired="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired2 == 'Y' ? true : false}"
    rendered="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName2 != null}"
    id="plam7">
    <af:inputText value="#{bindings.Attribute2.inputValue}"
    label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName2}"
    columns="60" maximumLength="150" rows="2"
    required="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired2 == 'Y' ? true : false}"
    shortDesc="#{bindings.Attribute2.hints.tooltip}"
    simple="true" id="it15">
    <f:validator binding="#{bindings.Attribute2.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName3}"
    showRequired="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired3 == 'Y' ? true : false}"
    rendered="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName3 != null}"
    id="plam8">
    <af:inputText value="#{bindings.Attribute3.inputValue}"
    label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName3}"
    columns="60" maximumLength="150" rows="2"
    shortDesc="#{bindings.Attribute3.hints.tooltip}"
    required="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired3 == 'Y' ? true : false}"
    simple="true" id="it16">
    <f:validator binding="#{bindings.Attribute3.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName4}"
    showRequired="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired4 == 'Y' ? true : false}"
    rendered="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName4 != null}"
    id="plam9">
    <af:inputText value="#{bindings.Attribute4.inputValue}"
    label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName4}"
    columns="60" maximumLength="150" rows="2"
    shortDesc="#{bindings.Attribute4.hints.tooltip}"
    required="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired4 == 'Y' ? true : false}"
    simple="true" id="it17">
    <f:validator binding="#{bindings.Attribute4.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName5}"
    showRequired="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired5 == 'Y' ? true : false}"
    rendered="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName5 != null}"
    id="plam10">
    <af:inputText value="#{bindings.Attribute5.inputValue}"
    label="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customName5}"
    columns="60" maximumLength="150" rows="2"
    shortDesc="#{bindings.Attribute5.hints.tooltip}"
    required="#{pageFlowScope.RmaAttributesBean.rmaReturnType.customRequired5 == 'Y' ? true : false}"
    simple="true" id="it18">
    <f:validator binding="#{bindings.Attribute5.validator}"/>
    </af:inputText>
    </af:panelLabelAndMessage>
    <f:facet name="footer"/>
    </af:panelFormLayout>
    <af:spacer width="10" height="10" id="s19"/>
    <af:panelGroupLayout id="pgl40" layout="horizontal"
    styleClass="AFStretchWidth">
    <af:panelGroupLayout id="pgl41" layout="horizontal"
    styleClass="AFStretchWidth">
    *<af:commandButton text="#{userinterfaceBundle.CANCEL}"*
    styleClass="Button2" id="cb8" immediate="true"
    *actionListener="#{backing_dev_rma_cart_Details.showDetailsPopupCancel}">*
    *<af:resetActionListener/>*
    *</af:commandButton>*
    </af:panelGroupLayout>
    <af:panelGroupLayout id="pgl42" layout="horizontal" halign="end"
    styleClass="AFStretchWidth">
    <af:commandButton text="#{userinterfaceBundle.OK}" id="cb10"
    partialSubmit="true"
    actionListener="#{backing_dev_rma_cart_Details.okAction}"
    icon="/iq/skin/images/CommandButtonIcon.png"
    iconPosition="trailing"/>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    <af:spacer height="-25px" id="s20"/>
    </af:dialog>
    </af:popup>

  • Adf popup not closing

    Hi ,
    i am working on Oracle Jdeveloper 11g Release 1.
    I have included a popup jspx in side my parent page using:
    <jsp:include page="/core/gccompliance/library/packages/complianceStandards/AddStandardToPackage.jspx"/>The 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 ok button the action listener {pageFlowScope.packages_libraryBean.handleAddStandardToPackage} is called which executes some bussiness logic and then invokes folderBtnListener() java script method in thee jspx.
    The code for action listener 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 executed fine but the popup does not get closed. I have to click cancel button to close it.
    Can someone suggest what am i missing in my code?

    Hi,
    Did you try with autoCancel property of popup
    See
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_popup.htmlOr you have to bind popup to Bean then use
    RichPopup.hide();
    See
    how to close a popup

  • Adf popup reappears after refreshing the portlet..

    Hii all..
    i am working on a portal application in which i have a portlet added on a page.
    In this portlet i have a button, on click of which i am displaying a pop up programatically using following code -
    public void showPopupActionListener(ActionEvent event) {
    UIComponent source = (UIComponent) event.getSource();
    RichPopup popup = getPropertiesPopUp();
    RichPopup.PopupHints hints = new RichPopup.PopupHints();
    hints.add(RichPopup.PopupHints.HintTypes.HINT_ALIGN_ID, source)
    .add(RichPopup.PopupHints.HintTypes.HINT_LAUNCH_ID, source)
    .add(RichPopup.PopupHints.HintTypes.HINT_ALIGN,
    RichPopup.PopupHints.AlignTypes.ALIGN_AFTER_END);
    popup.show(hints);
    it works fine..but when i close the pop up and refreshes the portlet, the pop up appears on the front...
    i have tried changing the attributes for the pop up but the situation remains the same..
    Any help on this.!!
    Thank You.
    JDeveloper Version - 11.1.1.6.0.

    Thank you Yannick For replying..
    I did as you have suggested as follows -
    <af:popup id="propertiesPopUp" binding="#{EditProperties.propertiesPopUp}" autoCancel="disabled"
    eventContext="launcher" contentDelivery="immediate" childCreation="immediate"
    popupFetchListener="#{EditProperties.popupFetch}">
    but it dosen't call the method assigned to popFetchListener.
    Thanks

  • Javascript error on ADF Popup

    Hi,
    I have a very strange problem.I am using ADF Popup ,action on one of the button in the Popup opens another Popup on top of it(Using popup.show(hints) JS to open this popup).
    When i try to close the second Popup (Using popup.hide()) it throws Javascript error Error:Object Required in IE7,Same code works fine in FireFox.Any suggestions ,please?

    We are using JDEV 11.1.1.0.0.
    Code to Open/Close popup.
    public void ShowPopup(String clientId,String Id){
    FacesContext context = FacesContext.getCurrentInstance();
    String popupId = clientId;
    String alignId =Id; //inputText290.getClientId(FacesContext.getCurrentInstance());
    StringBuilder script = new StringBuilder();
    script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ").
    append("if (!popup.isPopupVisible()) { ").
    append("var hints = {}; ").
    append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ").
    append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_END; ").
    append("popup.show(hints);}");
    ExtendedRenderKitService erks =
    Service.getService(context.getRenderKit(),
    ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    public void closePopup(String popupId){
    StringBuilder script = new StringBuilder();
    FacesContext context = FacesContext.getCurrentInstance();
    script.append("var popup = AdfPage.PAGE.findComponent('").append(popupId).append("'); ")
    .append("if (popup.isPopupVisible()) { ")
    .append("popup.hide();}");
    ExtendedRenderKitService erks =
    Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    Command Button action for the Button on the popup
    public String commandButton50_action() {
    // Add event code here...
    closePopup(popup13.getClientId(FacesContext.getCurrentInstance()));
    return null;
    JSPX Code:
    <af:popup binding="#{backingBeanScope.backing_MbrMemberReview.popup8}"
    id="popup8" contentDelivery="lazyUncached"
    popupFetchListener="#{backingBeanScope.backing_MbrMemberReview.popup8_popupFetchListener}">
    <af:panelWindow binding="#{backingBeanScope.backing_MbrMemberReview.panelWindow8}"
    id="panelWindow8"
    title="Search for Member to Combine"
    inlineStyle="width:600px; height:400px;"
    modal="true">
    <af:commandButton text="OK"
    binding="#{backingBeanScope.backing_MbrMemberReview.commandButton50}"
    id="commandButton50"
    inlineStyle="width:80px; height:15px; text-align:center;"
    action="#{backingBeanScope.backing_MbrMemberReview.commandButton50_action}"
    partialSubmit="true"/>
    </af:panelWindow>
    </af:popup>

  • ADF Popup problem

    Hi,
    I am working on ADF popups. I have created a simple popup as shown below:
    <af:popup id="test" contentDelivery="lazyUncached" >
    <af:panelWindow modal="true" title="Update Sample Type" closeIconVisible="true">
    <af:inputText value="test"/>
    </af:panelWindow>
    </af:popup>
    When I launch this popup and try to input value in input text, it does not display the cursor inside input text box.
    Does anybody know how to make it display the cursor?
    Thanks.
    Regards,
    Umesh

    Hi,
    I am working on ADF popups. I have created a simple popup as shown below:
    <af:popup id="test" contentDelivery="lazyUncached" >
    <af:panelWindow modal="true" title="Update Sample Type" closeIconVisible="true">
    <af:inputText value="test"/>
    </af:panelWindow>
    </af:popup>
    When I launch this popup and try to input value in input text, it does not display the cursor inside input text box.
    Does anybody know how to make it display the cursor?
    Thanks.
    Regards,
    Umesh

  • How to refresh Adf  table from Adf popup

    Hi all,
    i have and adf query panel with table. On this table for each record, there is a button to perform some operations. When i click this button i am launching an adf popup. Inside this popup i have used a adf dialog of type yes/no. i am using this as a confirmation. (ex- Are you sure you want to change (ex- deactivate) this record?) If yes is clicked i change only one field. Suppose the record belongs to a client. On click of yes, i change the status to some value. ex- deactivate. so with the dialog's button click, i change the table data. but it is not reflected unless i made a query. i want to automatically refresh this table on click of dialog button's yes. I hope i made my self clear. Can this be done with Jdev. Im using Jdev 11.1.1.0.1. Pls help me with this.
    Thanks in advance,
    Nad

    Hi Maxi, Timo, i tried the solutions by both of you. Thanks alot for replying. But i get an error. This is what i did. for Deactivate btn in the table, i have added the below return listerner code.
    public void onReturnFromDialog(ReturnEvent returnEvent) {
    if (returnEvent.getReturnValue() != null) {
    refreshCurrentPage();
    protected void refreshCurrentPage() {
    FacesContext context = FacesContext.getCurrentInstance();
    String currentView = context.getViewRoot().getViewId();
    ViewHandler vh = context.getApplication().getViewHandler();
    UIViewRoot x = vh.createView(context, currentView);
    x.setViewId(currentView);
    context.setViewRoot(x);
    but i noticed that both these methods are not invoked. So i added the below dialoglistener code to the af:dialog that is inside my popup. This popup is shown when the deactivate btn is clicked.
    public void DialogListenAction(DialogEvent dialogEvent) {
    if(dialogEvent.getOutcome().toString().equals("yes"))
    DCIteratorBinding iter = ADFUtils.getIterator("MembersVO3");
    String des = (String) iter.getCurrentRow().getAttribute("MemberCode");
    service.deactivateMember(des); //This is where i update the record and set the attribute value to des
    System.out.println("suspect1");
    RequestContext.getCurrentInstance().returnFromDialog(des,null);
    //AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    //afContext.getCurrentInstance().returnFromDialog(des, null);
    System.out.println("suspect2");
    //ifCancel Do nothing
    when i add 'RequestContext.getCurrentInstance().returnFromDialog(des,null);'
    OR
    'AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getCurrentInstance().returnFromDialog(des, null);'
    i get the error - java.lang.IllegalStateException: popView(): No view has been pushed.
    i cant figure out what is the wrong here. Can some one pls suggest how to resolve this?
    Thanks alot.

  • Taskflow context not maintained with ADF popups

    JDev build: JDEVADF_11.1.1.4.0_GENERIC_101212.1926.5912
    A coworker also reproduced this using JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    This is a simple WebCenter custom app created using JDev. I'm seeing exceptions when canceling a popup that contains a taskflow (the DocViewer taskflow). The popup was launched from another taskflow called Content Presenter. Upon canceling the popup (i.e., clicking the 'x' in the upper right corner), I see this error message in a javascript alert:
    "Target Unreachable, 'presenterNavigationBean' returned null
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1"
    In the server console, I see these exceptions (abbreviated to keep this post a bit smaller, but I can provide the entire stack trace if necessary):
    java.lang.IllegalStateException: The expression "#{bindings.rbxzy5vg6jr1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "oc_4478173184region1") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.rbxzy5vg6jr1}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "portal_cpPageDef". Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:450)
         at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:682)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:498)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:692)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:632)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:300)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    javax.el.PropertyNotFoundException: Target Unreachable, 'presenterNavigationBean' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.setValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:656)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.access$000(LifecycleImpl.java:71)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$1.call(LifecycleImpl.java:697)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$1.call(LifecycleImpl.java:693)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:503)
    (basically the same thing as above repeats a few times) presenterNavigationBean is the bean for the Content Presenter taskflow which launched the popup.
    The steps I'm taking to see this problem are:
    1. Launch JDev and create a WebCenter app, accepting all defaults. This requires the WebCenter extension, i.e., oracle.webcenter.framework_bundle.zip
    2. Create a content repository connection to an Oracle Content Repository
    3. Create a jspx in Web Content/oracle/webcenter/portalapp/pages using the global page template (select that checkbox). I typically call it cp.jspx, thus the references to "portal_cpPageDef" in the exceptions above.
    4. Open the jspx in source view, place the cursor after the pageTemplate tag, and add a "page customizable" component from the Oracle Composer group in the Component Palette. Save the page.
    5. Open Web Content/oracle/webcenter/portalapp/pagehierarchy/pages.xml and drag your jspx to the root of the hierarchy. Save all pages.
    6. Run the Web Content/index.html page.
    7. Login using weblogic/weblogic1
    8. Click on the page you created in the toolbar
    9. Click "shift + ctrl + E" to put the page in edit mode.
    10. click the "Add Content" button (it launches a popup)
    11. In the popup, click on "Content Management"
    12. Click on "Add" next to the Content Presenter taskflow and close the popup
    13. Now select an HTML document from the content repository by using the Content Presenter wizard (click on the first wrench icon in the chrome). If you don't have one, you'll have to add it to the repository.
    14. In the Content Presenter wizard, select the "Preview" page
    15. click the "Open in Document Viewer" button. This launches the DocViewer taskflow in an ADF popup.
    16. Click the cancel button in the upper right corner.
    17. This is when the javascript alert will show the errors mentioned above. The server console in JDev will show the stack traces.
    Please let me know if this is a configuration issue on my end or a bug within ADF. I'll monitor this thread closely today to provide any information that could be helpful asap. Thank you.

    It's the bean that the Content Presenter taskflow uses. All I did was create a page using the global page template and added the Page Customizable component to it, then customized the page to have an instance of the Content Presenter taskflow. I can use Content Presenter normally until I attempt to edit an HTML doc (which launches the DocViewer taskflow in an ADF popup). At that point I start seeing binding errors, like the taskflow context is lost.

  • Opening pdf in ADF popup menu

    Hi All,
    I have big issue in opening a pdf file under ADF popup menu. currently, the popup menu is working fine and but i dun know how to load the pdf once the popup menu is loaded. I tried to put javascript code in <body> with "onLoad=...", however, i dun know how to load pdf from javascript.
    Any one has a good idea to get around this problem???
    Cheers,
    -T

    Hi!
    I would like to insert a pdf file into the database and then display it. Actually I do not know how to insert the file into the db nor how to extract it. I use a library (jpedal) to show the pdf and am able to represent a byte stream, but how do I get it?
    regards,
    Mario Udina

  • Close ADF Popup Dialog with html button in Inline Frame

    hi,
    I'm using jdev 11.1.1.2,
    I have a adf popup dialog which contains an Inline Frame(source is a jsp file).I want to close the dialog with a html submit button in the frame page. when the submit button is clicked, auto close the dialog.
    can anyone help in this.
    Thanks

    Try to close the popup from Javascript using a sciptlet similar to the following one:
    var popup = AdfPage.PAGE.findComponent('<yourPopupClientId>');
    if (popup.isPopupVisible()) {
      popup.hide();
    }where <tt><yourPopupClientId></tt> should be replaced with the popup's client ID. The client ID is composed of the popup's ID from the <af:popup> tag preceded with IDs of the eventual parent naming containers where the popup has been declared.
    For example, if the tag is <tt><af:popup id="myPopup"></tt>, then the clientId might be:
    <tt>  myPopup
      container1:myPopup
      container1:container2:myPopup</tt>
    ... and so on, depending on where you have defined the popup in your JSF page (i.e. within which naming containers), you should determine it first.

  • Jdev 10.1.3.3 + ADF popup window

    Hello,
    We are using the adf popup window to show some of the application data. But when session times out we are facing the issue in redirecting the page. Currently when session times out popup window is getting redirected to login page,but parent window is not closing.We want to close the popup window,parent window and redirect to login page.Any idea or thoughts around how to handle session time out in case of popup windows??
    Thanks
    Edited by: user645222 on Nov 10, 2009 9:48 AM

    Hi,
    its a while ago that I looked into this and the only thing that worked for me is to use a JavaScript timer you set to fire before the session expires to close the window.
    Frank

  • ADF Popup for adding a new Row in  table

    Hi All,
    I have VO which is rendering as table on my jsff.I created a button of createInsert to add a new row and after commit it saves the values in Table in DB.
    Works abst fine.
    Now i want to change this feature to that when a New Row should be Added, a pop up should appear in the format of a form, and at the click of OK it should save the data and on Cancel go back to Page.
    What i did was i added a pop up, in the pop up body i again dropped my VO as a form and added a dialoglistener to the pop up which commits on click of OK and Rollback on click of Cancel.
    I am not getting any exception but The Db is not modified with my entries.
    So its simple that i am commiting but nothing is changed till that time.
    How can i get the Task done?????
    Regards
    User

    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf
    insert operation using popup
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
    Edited by: Erp on Oct 20, 2011 6:47 AM

  • Displaying PDF file in ADF popup

    Hi,
    I am using JDevloper 11.1.2.0.0, browser IE8, Adobe reader 10.1.4
    I am using servlet to stream the pdf to the inlineframe inside the popup. using the approach given in the following URL
    http://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/
    I am facing following problem
    1. On closing the pop-up the parent page turned to blank, sometimes the pop-up also blank.
    2. When I use IE9, Google chrome, I observe that service method of servlet executed more than three times.
    I don't have any clue why it is happening.
    Can anyone help me to solve this issue?
    Thanks

    Hi,
    do you have a reproducible test case? If so, zip it up, rename the zip extension to "unzip" and send it to the mail account you find in my OTN profile. Please reference this thread
    Frank

  • ADF - POPUP resize issue

    Hi,
    I have a POP-UP with few controls like toolbar and trees, Resize option is enabled in the popup.
    While resizing the controls are not resized to fit the layout.
    Please let me know the ADF functionally to resize the controls in POP-UP
    Thanks,
    Prabhu.

    John,
    I'm using <af:popup> only, and the ADF version is 11.1.1.59.
    Please fine my code sample.
    <af:popup ...>
    <af:dialog resize="on" ...>
    <af:panelStretchLayout id="ms_psl1" inlineStyle="height:400px; width:600px;">
    <f:facet name="center">
    <af:panelGroupLayout>
    <af:inputText contentStyle="width:100px; height:14px"/>
    <af:tree var="node" inlineStyle="width:200px; height:100px;"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </af:dialog>
    </af:popup>
    Is it posible to resize the controls when popup gets resized?
    I tried using "%" in the width, but height is not taking "%".
    Please let me know the solution.
    Thanks,
    Prabhu.

  • ADF popup is not showing - Intermittent issue

    Guys,
              Once in a while popups inside the adf application are not showing up. have anybody faced this issue?
    Though its rare, i would like to know the reasons behind this intermittent issue.
    Any pointers/thoughts will be appreciated... Thanks

    Popup if very problematic item in ADF.
    There are 2 ways to invoke the popup correctly
    1. Make sure that you don't have a combination of viewScope and backingbean scope in everything related to your popup
    2. Or (and this is the best one) - don't use popup. Create a bounded task flow and call it from your task flow. You have an option to call it as inline popup.

Maybe you are looking for

  • Incorrectly coloured text when saving to .PDF using Photoshop CS4

    I am using Photoshop CS4 on Windows 7, and have designed my own business card. When saving to .PDF to send to printers I am finding that a small section of text is saving with a white section to it, for example out of the 3 lines of text on the card

  • Installing php, mysql and apache

    Hey guys, Basically Im at university and doing a web development project and i need to use mysql and php, and someone told me leopard already comes with it? Does anyone know how i can get it to work correctly? any steps from the beginning? - am new t

  • Runtime Page editing not working using Oracle Composer(Pagecustomizable)

    Hi, I am using JDeveloper 11.1.1.6.0 We have used content presenter to display static pages from content server. If we use Oracle composer component (<pe:pageCustomizable>) we should be able to edit the page at runtime. However in our case when we pr

  • Migrating 2003 certificate services to 2012

    What is the best way to migrate from a 2003 certificate services to a 2012 version? We have run into the issue with not being able to produce a SHA256 template in 2003.  Is there a way to bring a 2012 subordinate into the infrastructure to issue the

  • Headache with threads and concurrency

    I am trying to get my head round multithreaded concurrency in java and I am hitting some problems with a Log class I am working on. The idea is that the log has methods that write a line to a Notes document. A second thread should then save the docum