ADF Faces - Dialog from code

Hi everyone,
I need to open a dialog window which is not actually in any .jsp file, but it's being coded at the backed bean.
any ideas how to do it?
thanks in advance

I'm working over a jsp page which represent a master entity. there is a table, to represent the detail, on this file, where the columns are loaded dinamically. so far it works...
at the footer of this table there are action buttons to insert, update or delete a detail. the fields in the popup, to insert a new detail for instance, are to be built dinamically.
I have setup a jsp for the detail using the same backedbean then for the master. the form has a binding, and so does a panelGrid where i want to add the new fields
I have a method where i'm creating the new fields, which is called at the getForm method, but when i try to get the childre's reference from the panelGrid i get a null pointer exception
any ideas how to solve this?

Similar Messages

  • ADF Faces Dialog problem.

    Hi,
    I am using JDeveloper IDE- 10.1.3.3.
    I have a ADF Faces Dialog (launch Dialog) with a form and several input text components binded to a Backing Bean.
    When Dialog is opened for the second time, the values of the text components loaded with previous values which I have enterd for the first time.
    Scope of the Backing Bean is Request.
    All the launch Dialogs are working in the same way.
    The problem exists when I run the application from Application server(10.1.2.0).
    It works fine from the JDeveloper.
    How to do this ? please help!
    Its very urgent.
    Note: I have different application with similar launch dialog and functionality which works fine on the same Server and JDeveloper.
    Thanks in advance.
    Supravat

    Supravat,
    A sample of the pertinent code from a dialog that persists values would be helpful here.
    -Michael

  • ADF Faces: dialog framework calls  twice prepareModel and prepareRender

    Hi ,
    does anybody know why ADF Faces dialog framework calls twice prepareModel and prepareRender lifecycle methods . That's a really problem for me because i'm calling db procedures through backing beans methods which are attached on components properties.
    I cannot allow myself to cal the procedures more than once.
    Can somebody help me?
    Krasi

    Okay, although the servlet doesn't require to be run inside the JSF context, I added "/faces" to the URL simply because this would allow me to query the "postback" flag. In other words, I changed the invocation URL from "/jrrun" to "/faces/jrrun".
    In the servlet's "service()" method I put:
    logger.debug(">>>>>> isPostBack? " + AdfFacesContext.getCurrentInstance().isPostback());
    I also attached a JSF PhaseListener to the whole thing.
    Then I opened the parent page, I clicked on the button and the dialog appeared. The console output follows:
    07/01/19 21:37:05 ------------- start of phase RESTORE_VIEW 1
    07/01/19 21:37:05 ------------- end of phase RESTORE_VIEW 1
    07/01/19 21:37:05 ------------- start of phase RENDER_RESPONSE 6
    2007-01-19 21:37:05,156 - DEBUG - >>>>>> RunJasperReport: beginning
    2007-01-19 21:37:05,156 - DEBUG - >>>>>> isPostBack? false
    2007-01-19 21:37:05,156 - DEBUG - >>>>>> RunJasperReport: repPath=/reports/newRegByBusType_Report.jasper
    2007-01-19 21:37:07,047 - DEBUG - >>>>>> RunJasperReport: report output (PDF) was generated successfully. Its total size is 59596 bytes.
    2007-01-19 21:37:07,047 - DEBUG - >>>>>> RunJasperReport: done
    07/01/19 21:37:07 ------------- end of phase RENDER_RESPONSE 6
    07/01/19 21:37:09 ------------- start of phase RESTORE_VIEW 1
    07/01/19 21:37:09 ------------- end of phase RESTORE_VIEW 1
    07/01/19 21:37:09 ------------- start of phase RENDER_RESPONSE 6
    2007-01-19 21:37:09,625 - DEBUG - >>>>>> RunJasperReport: beginning
    2007-01-19 21:37:09,625 - DEBUG - >>>>>> isPostBack? false
    2007-01-19 21:37:09,625 - DEBUG - >>>>>> RunJasperReport: repPath=/reports/newRegByBusType_Report.jasper
    2007-01-19 21:37:09,672 - DEBUG - >>>>>> RunJasperReport: report output (PDF) was generated successfully. Its total size is 59596 bytes.
    2007-01-19 21:37:09,688 - DEBUG - >>>>>> RunJasperReport: done
    07/01/19 21:37:09 ------------- end of phase RENDER_RESPONSE 6
    By the way, partialSubmit="true" has the same effect as partialSubmit="false".
    I'm not sure I understand you correctly. Or perhaps you don't understand me correctly.
    I haven't got a problem with the parent page. I have a problem with the dialog page. It's executed twice. The RENDER_RESPONSE phase (as well as the RESTORE_VIEW phase) is executed twice.
    I want it to be executed only once. I don't want the servlet to be executed twice.
    Let me point out again that in the Embedded OC4J (inside JDeveloper) everything is okay. The servlet is executed only once. However, the same thing on OAS 10.1.3.1 runs twice.

  • Can ADF Faces Dialog Framework be used in a Bounded Task Flow ?

    Jdev. 11.1.1.4
    I have read chapter "19 Using Dialogs in Your Application" in the Jdev documentation.
    There explains that there are mainly two methods to open dialogs in ADF:
    The first (point 19.2) is calling a bounded task flow from a view activity (for example). This system can only open modal windows.
    The other is using the ADF Faces Dialog Framework and it seems to be more general. In point "19.3.1 How to Define a JSF Navigation Rule for Opening a Dialog" it is explainied the way to achieve this but the explanation begins with "In the adfc-config.xml file, create a page flow for".
    does this mean that I can not use this technology inside a Bounded task flow ?
    I have tried and it seems that it doesn't work.
    Currently we are using af:showpopupbehaviour to open popups, but this doesn't work with task flows and I don't like this.

    does this mean that I can not use this technology inside a Bounded task flow ?ADF Faces Dialog Framework can be used in both unbounded and bounded taskflows.
    I have tried and it seems that it doesn't work.The command commponent outcome must begin with "dialog:" and the command component tag must have useWindow="true", for example:
    <tt><af:commandButton action="dialog:toEdit" useWindow="true" .../></tt>
    Currently we are using af:showpopupbehaviour to open popups<af:showPopupBehaviour> can be used to open inline popups, but it has nothing to do with the Dialog Framework. Inline popups and the dialogs of the Dialog Framework are two different things.
    Dimitar
    Edited by: Dimitar Dimitrov on Jul 27, 2012 3:33 PM

  • ADF-Faces Migration from EA11 to EA13

    I tried to migrate my ADF-Faces application from version EA11 to EA13. Change taglib definition in *.jspx and some changes at tag level (e.g. showOneTabs). Recompile everything and deployed it to an OC4J 10.1.3. Deployment OK, but if I try to contact my application I got following error:
    javax.servlet.jsp.JspException: oracle.adf.view.faces.context.AdfFacesContext.getAgent()Loracle/adf/view/faces/context/Agent;
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:117)
         at index2e_jspx._jspService(_index_2e_jspx.java:49)
         [SRC:/index.jspx:8]
    Please tell me what's wrong!
    Thanks, Peter

    I got it!
    The reason was, in directory ../public_html/WEB-INF/lib there was still a jar (adf-faces-api-ea11.jar) from the old EA11 (only this one - funny), and this jar was also included in deployed WAR. I removed this old jar, deploy my application again and the error no more occures.
    Thanks!

  • How to generate ADF Faces Tree from table ?

    Hi,
    i want to create menu for my application using ADF Faces af:tree component.i have one table containing : menu_id and parent_id , which use for describing relationship between menu ( parent/child ).
    Fact : i've already know how to create adf faces af:tree component from master/detail relationship tables.
    The question : how to create adf faces af:tree component from recursive master/detail relationship in one table ?
    to clearer understand my question,this is my MENU_DATA table script :
    CREATE TABLE MENU_DATA
    MENU_ID VARCHAR2(5 BYTE),
    DESCRIPTION VARCHAR2(50 BYTE),
    OPENLINK VARCHAR2(200 BYTE),
    PARENT_ID VARCHAR2(5 BYTE)
    this is what i mean recursive master/detail relationship ...
    ALTER TABLE MENU_DATA ADD (
    CONSTRAINT FK_PARENT_MENU_ID
    FOREIGN KEY (PARENT_ID)
    REFERENCES MENU_DATA (MENU_ID));
    Thanks a lot for help gurus...
    Ricky HP

    I have the same question on my mind...
    Without creating n (same number of level depth) VO, how can I build a recursive ADF Faces Tree ???

  • ADF Faces Dialog position and status bar

    Hi,
    I would like to set the status ="no" for the popup and set the position before it is launched..
    Is there a way to do this with a selectInputText custom renderer or something else?? using the JSF navigation rules "dialog:"
    Thanks
    JO

    Yes you can. Try to lauch the dialog manually.
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot root = context.getApplication().getViewHandler().createView(context, "/faces/test.jspx");
    HashMap properties = new HashMap();
    properties.put("width", new Integer(200));
    properties.put("height", new Integer(200));
    properties.put("status","no");
    properties.put("left", new Integer(80));
    properties.put("top",new Integer(80));
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    Map dialogParameters = new HashMap();
    dialogParameters.put("message", "This is a test.");
    afContext.launchDialog(root, dialogParameters, null, true, properties);
    Regards,
    Luis R.

  • ADF Faces Dialog features

    Hello.
    Is there any way to:
    - prohibit resize dialog
    - set window location
    - set first day of week to monday in selectInputDate component (calendar)
    Maciek.

    Hi,
    - prohibit resize dialog
    No.
    - set window location
    No. Its listed as an enhancement request
    Frank

  • ADF Faces dialog

    Hello,
    Is there any way to launch dialog on defined screen position, eg screen center?

    Check out:
    http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/moveto.asp
    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_screen.asp
    You can put the move script in the dialog body onLoad javascript event. The screen object can help you get the screen resolution to help you calculate how to "center" your dialog.
    Brian
    Message was edited by:
    Brian Lunardini

  • What is the best way to submit an ADF Faces form from a backing bean?

    I would like to submit a JSF form at the end of a backing bean method (actually a ReturnEvent), and wonder if someone could supply an example of the "best practices" approach.
    Thanks!!
    Jeffrey

    Thanks for the reply Frank!
    Actually, what I want would be the equivalent of a resetActionListener.
    After performing "bindings.getOperationBinding("DeleteTrip").execute()" I would like the page to redraw itself with empty controls.
    I have included a resetActionListener in my commandLink, but the page is not redrawn after the operation.
    If I hit the reload button on my browser (after the operation has completed), I get the desired behavior.
    I've just added this comment to someone else's question you replied to on the following thread:
    Re: How to programatically resetAction after rollback?
    Thanks again!!
    Jeffrey

  • JDeveloper ADF Faces Problem: Expression language

    Error(): Expression Language not supported in compile time attribute test
    I have followed an ADF Faces example from the Oracle Website. Concerning a database + ADF Faces
    http://www.oracle.com/technology/pub/articles/cioroianu_jsfadf_v4.html
    I followed the tutorial correct but everytime i try to run it. I get following error:
    Error(): Expression Language not supported in compile time attribute test
    It has something to do with following line of code
    <c:if test="${subscriber == null || !subscriber.loggedIn}">
    The error appears on every page where "<c:" appears.
    I have imported the right class library
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    Does anybody have any idea what i can do?

    Dear Tim,
    What a chance!!! I've got the same problem as you?!
    I've tried almost everything, but still haven't succeeded to solve it!
    Hopefully someone can help us.
    Greetings

  • ADF Faces and MapViewer

    Hello,
    i'm investigating the possibility to write an ADF Faces MapViewer Client. I'm especially thinking of some Google Maps style navigation, e.g. panning by dragging the map.
    I'd like to use AJAX to prevent full page reloads, so if i drag the map only the map image is reloaded.
    Now the question are:
    1. How do i extend the ADF Faces Components with AJAX Scripts without breaking the ADF Faces PPR concept?
    2. Is it possible to trigger the reload of an ADF Faces component from my javascript?
    3. Is it possibe to extend the java classes for the components or the renderer with my own code?
    4. Has anyone already created an example that uses ADF Faces and MapViewer?
    Thanks for help,
    Dirk

    Hi,
    I just talk with our admin. The problem was server port 8080. Some of internet providers (also one of the biggest Polish) blocks this port. It's a reason - when I change internet connection to other everythig works OK. I thing it would be nice to change server port to default 80, if you want to make this application accessile for all.
    Kuba

  • ADF Faces not found at Component Palette..

    I am a Tertiary Student currently doing a project using Jdeveloper 11G version 11.1.1.3.0 . I am currently doing a project on Login.jspx. I am unable to select the ADF Faces page from the Component Palette and unable to Locate the Panel Header component in the Layout layer of the Component Palette. May I know is there any other way to be able to locate the ADF Faces Page or the panel header?
    Thanks.

    Make sure you have the 'ADF Faces' and ADF Page Flow' technologies selected to your project.
    Open the ViewController project properties and select the last node in the tree ('Technology Scope'). The two mentioned scopes should be on the selected side to see the stuff you are looking for in the component palette.
    Timo

  • ADF faces jar files needed (urgent)

    Hi,
    I have downloaded one sample adf faces application from oracle site, but it does not have the jar files. They are saying that you can download the neccassary jar files from the Oracle Technology Network (OTN) Web site as a .zip archive that contains the tag libraries, documentation, and a Web application example.
    But i was not able to locate the specified zip file in OTN web site. If someone knows please tell me from where should i download the specfied jar file.
    I have downloaded the sample appl from the following link..
    http://www.oracle.com/technology/pub/articles/cioroianu_jsfadf_v4.html
    Thanks in advance..
    Regards,
    Saravanam

    Hi,
    This is a very old how-to that was released during JDeveloper preview. If you go to otn.oracle.com/proucts/jdev --> JSF then you can find the download reference.
    The newer - production class - ADF Faces jar files are not for download separately but are part of Oracle JDeveloper and available in its jlib directory. So you could go download JDeveloper and get adf-faces.jar
    Frank

  • No registered window of ADF FACES

    I had to upgrade jdeveloper11g R1 to R2 ,then appear a issue of application runtime,as follows:
    oracle.adfinternal.view.faces.activedata.SessionDataUpdateManager __getPageDataUpdateManager
    严重: 窗口没有名称时无法注册活动数据 (no registered active data when the window does not have a name)
    Who can help me to solve this problem?

    Thank you for your reply!
    I just put the class library of the ADF FACES runtime from R1 to replace the R2 of JAR file, but won't appear the problem In the R1.
    used libraries in the R1,as follows:
    adf-controller.jar
    adf-controller-api.jar
    adf-controller-rt-common.jar
    adfdt_common.jar
    adflibfilter.jar
    adflogginghandler.jar
    adfm.jar
    adfmweb.jar
    adf-pageflow-dtrt.jar
    adf-pageflow-fwk.jar
    adf-pageflow-impl.jar
    adf-pageflow-rc.jar
    adf-richclient-api-11.jar
    adf-richclient-impl-11.jar
    trinidad-api.jar
    trinidad-impl.jar
    adf-share-base.jar
    adf-share-ca.jar
    adf-share-support.jar
    antlr-2.7.6.jar
    cache.jar
    cglib-2.2.0.jar
    dms.jar
    mdsrt.jar
    ojdl.jar
    share.jar
    xmlef.jar
    xmlparserv2.jar
    jrf-api.jar
    dom4j-1.6.1.jar
    glassfish.jsf_1.2.9.0.jar
    javax.jsf_1.0.0.0_1-2.jar
    glassfish.jstl_1.2.0.1.jar
    commons-beanutils-1.8.3.jar
    commons-collections-3.2.jar
    commons-logging-1.1.1.jar
    javassist-3.12.0.GA.jar
    javatools-nodeps.jar
    jta-1.1.jar
    Whether in the R2 needs to be added some other class library?

Maybe you are looking for

  • How to turn off the dialog box in the Write to Spreedshee​t File

    I am saving data in a loop using "Write to Spreedsheet File". When I gave a constant path to this Vi, it was fine. However, when I gave a path defined by a global variable, it consistantly popup dialog box and asked for my choice. How can I turn off

  • Re: Issue with Proximity Sensor during calls

    Im sure if it is a hardware issue, all Apple would have to do is change the software. Im sure they can add something to the software that allows you to lock the buttons when on a call, or make the sleep button on top of the phone disable the proximit

  • Can I connect iPhone to iPad for direct backup and download?

    I am a Windows 7/64 user. I have an iPhone 4 and am thinking of buying an iPad, cheaper than a whole new Mac. I regarded the iPad as a small computer, and thought that one might use it to make backups of the iPhone and download eg films or other stuf

  • Set Credit control status in user Exit LVKMPFZ1

    Dear all we like to set the credit control status in the above mentioned user exit. Is there a better way than *VBUK-CMGST = 'B'. MODIFY *VBUK. Is there a FM, Bapi or something that can be used? Thank you Herbert

  • Backlight issue after Ram upgrade on Hp Folio 13

    Hi guys I just changed the RAM in my HP folio 13 from 4Gb to 8GB, everything was ok except one thing: when I turned back the pc on,  I don't have anymore the little lights on some keys of the keyboard, I mean for example the caps lock light, the mute