ADF popups

Hi All,
I have a af:table (say main page) with list of rows of which some of the columns are editable and others are readonly.
I also have a button on each row. When clicked, it opens up a popup.
The popup in turn has a af:table(say popup) with list of rows with the checkbox on each row.
So far it works great.
When the checkbox is clicked in the popup, I want to copy one of the column(af:inputtext) on the current row from main page
to the column(af:inputtext) on the popup so that when the commit button the popup is clicked, that copied get
saved in the db.
I have a managed bean on the checkbox that checks to see whether the checkbox is checked or not.
In that managed bean how do I copy the value from main page to popup as explained above.
Any sample code please...
Thanks

Hi,
I developed this popup screen using below link only.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/35-passing-values-to-popup-169177.pdf
That is where I face the below problem I posted in original question.
In the popup, I have a managed bean on the checkbox that checks to see whether the checkbox is checked or not.
In that managed bean I trying to read the viewscope value using the below code.
AdfFacesContext context = AdfFacesContext.getCurrentInstance();
Map vScope = context.getViewScope();
vScope.get("paramName");
But it returns null. To confirm, I have the viewscope value on the outputtextbox in the popup, it shows correctly. Meaning the value is available.
Any thoughts on this please?
------------

Similar Messages

  • 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

  • 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 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

  • 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

  • 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 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.

  • ADF Popup not showing at fragment load

    Hi,
    I am calling a bean method in getter of command link at the load by binding it to a command link defined in bean, so when this fragment is called from other fragment then
    in this method i m doing some checks ,and based on particular condition i have popup.show but it doesnt show the popup and code is not raising any exception.
        public RichCommandLink getC1() {
            populatedata();
            return c1;
      Now in populatedata ,I have popup shown for some conditions but when fragment is getting called for first time it doesnt show the popup ,but same populatedata is called from button on the fragment 
      so when i click on button ,this popup is shown properly.
    So as I understand first time getC1 gets fired when fragment was getting loaded ,so how to make sure popup is displayed during that ..
    public void populatedata()
    if ....
                        System.out.println("showing popup");                   
                       RichPopup.PopupHints p2 = new RichPopup.PopupHints();                   
                         p1.show(p2);
                        System.out.println("after showing popup");
    In logs i see both system out messages , can you guys suggest me how to get this popup displayed when fragment loading for first time and getter for c1 is getting fired.
    Jdeveloper version :11.1.2.3.0
    Regards,

    Hi,
    have you debugged the method call to prove that it is called at all? Instead of a component binding as a trigger, can you try a value property e.g. on a hidden output text component?
    Since you are on JDeveloper 11g R2, the use of JSF 2 system events also becomes possible. The system event would be added to a component on the fragment (e.g. the fragment root layout container) and then listen for the render pre-render phase.
    see: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf
    Frank

  • How to load jspx page in a ADF popup componenet

    Hi,
    I am using the jdeveloper11g ,Oracle ADF component's .I met with a problem while i am trying to load the page In ADFPOPUP component. .while i am able to load the component's in the ADFPOPUP why can't i Load jspx page in ADFPopup and have my application running in ADFPOPUP.If anybody able to give me the solution for my problem i will be more pleased and thankful to them
    from
    satyatheja kunchey Employer prapansol

    Hi,
    you can load a JSPX file in a dialog, not a popup. A popup shows content from the same JSPX file (you may want to use subviews to add external content, but this is not quite the same as you are asking for)
    Frank

Maybe you are looking for