BUG!!! in dialog framework

Dialog within a dialog return listener on the originating page not triggered after opening the second dialog window more that 4 times. Return listener on the originating page is triggered if the second dialog window is opened less than 4 times... try it out!!!
Scenario:
1. page 1 calls a dialog using:
public String popUp(){
return "dialog:page2";
code of command button on page 1:
<af:commandButton text="..." action="#{backing_bean.popUp}"
returnListener="#{backing_bean.handleReturn}"
useWindow="true" id="popUp" partialSubmit="true"
windowHeight="300" windowWidth="500"
launchListener="#{backing_bean.launchListener}"
binding="#{backing_bean.button1}">
</af:commandButton>
2. page2: contains multiple command buttons which also calls another dialog page 3
code of command button on page 2:
<af:commandButton action="#{backing_bean2.popUp}"
launchListener="#{backing_bean2.handleLaunch}"
returnListener="#{backing_bean2.handleReturn}"
text="..." partialSubmit="true" useWindow="true"
windowHeight="400" windowWidth="500"
immediate="false" id="segBtn1">
<af:setActionListener from="#{bindings.text1.inputValue}"
to="#{processScope.text1}"/>
<af:setActionListener from="#{\'1\'}"
to="#{processScope.inputNum}"/>
</af:commandButton>
public String popUp(){
return "dialog:page3";
3. page 3 basically is an LOV page (filtered based of parameters set in processScope) which returns a value which populates certain fields in page 2.
to close page 3:
afContext.returnFromDialog(row, null);
I didn't encounter any problem with the return value from page 3 to page 2. But
when I open page 3 more than 4 times (at this time only page 1 and page 2 are open), when I close page 2 using:
afContext.returnFromDialog(row, null);
The returnListener set in the command button in page 1 is not triggered. (No error is returned)
code in backingBean1:
public void handleReturn(ReturnEvent returnEvent) {
System.out.println("handleReturn Triggered");
However the thing that is really odd is that when I open page3 less than 5 times, the returnListener on page1 is being called upon calling the returnFromDialog(...) from page2. Can somebody explain to me why the returnListener is not being triggered after calling page 3 more than 4 times?
Message was edited by:
user514269

I finally accepted that the eratic behavior of the return listener is definitely a bug!
so I decided to find a work-around insted.
THE WORK-AROUND:
1. I threw away the returnHandler of the originating page.
2. All the manipulation for the view object of the originating page I placed in the return action of the 1st pop-up window.
3. I removed the afContext.returnFromDialog(obj, null) from the actionMethod of the 1st dialog. Then set a processScope variable to true afContext.getProcessScope().put("closeWindow",true);
4. I remove the afContext.returnFromDialog(row, null) so that this dialog window will just reload instead of closing.
5. I placed this pc of code in the header of my dialog page
<afh:script text='var closeWindow="#{processScope.closeWindow}"' />
function closeAndReloadParentWindow(closeWindow){   
if(closeWindow){
window.parent.opener.location.reload();
self.parent.close();
and in the body tag I placed this onload function:
<afh:body onload="closeAndReloadParentWindow(closeWindow);">
This will reload the parent/originating page and close the dialog.

Similar Messages

  • ADF Dialog Framework Cancel Button

    Hi all,
    We're experiencing, in multiple applications, a problem with a Cancel button (immediate="true") on a page launched by the dialog framework. While the value does not change in the model layer (saving to the database confirms this), it does seem to appear in the application UI, even after clicking the cancel button, until you post data.
    Details follow:
    This code is all JHS-generated, but we've spoken to Steven Davelaar, and he's pretty sure it's not a JHS problem. I certainly can't see anything obviously wrong with the code.
    Here's the component that launches the dialog, minus attributes like "rows" and "columns":
    <af:panelLabelAndMessage label="MIS Notes: "
        id="RpReportDocHeaderVwMisNotesLabel">
        <af:inputText id="SomeAttr" value="#{bindings.SomeAttr.inputValue}"
            required="#{bindings.SomeAttr.mandatory}"
            simple="true" partialTriggers="SomeAttrEditorLink"
            binding="#{SomeAttrEditorItem.editorItem}">
        </af:inputText> 
        <f:facet name="end">
            <af:commandLink id="SomeAttrEditorLink"
                action="dialog:editor" immediate="true" useWindow="true"                           
                partialSubmit="true" windowHeight="320" windowWidth="670"
                returnListener="#{SomeAttrEditorItem.returnedFromEditor}"
                launchListener="#{SomeAttrEditorItem.launchEditor}">
                <af:objectImage source="/jheadstart/images/editor.gif"/>
            </af:commandLink>
        </f:facet>
    </af:panelLabelAndMessage />The editor window, minus layout, form, etc. elements, is as follows:
    <af:inputText rows="10" columns="100"
        value="#{processScope.editorValue}"
        maximumLength=
            "#{processScope.editorMaxLength==0 ? null : processScope.editorMaxLength}" />
    <af:panelButtonBar>
        <af:commandButton text="Cancel" immediate="true">
            <af:returnActionListener/>
        </af:commandButton>
        <af:commandButton text="OK">
            <af:returnActionListener value="#{processScope.editorValue}"/>
        </af:commandButton>
    </af:panelButtonBar>Now, SomeAttrEditorItem is a managed bean of type oracle.jheadstart.controller.jsf.bean.EditorItemBean, so it's JHS code, but nothing about it should really matter if the returnActionListener for the Cancel button doesn't contain a value and is immediate, should it?
    Any help much appreciated. Thanks much,
    Avrom

    Thanks, Frank. This looks like a JHS bug (albeit one we can work around by writing our own template)--JHS should probably not be generating code that leaves cancelled changes in place. I'll notify them on their forum.
    [Edit:] Actually, there's something I don't understand about the instructions. In a case like this, I really only want to undo changes to a particular attribute--whatever attribute the dialog changed. And ideally, I don't want to refresh to the last pre-commit point; I want to just discard the changes that were made by this particular dialog. So I don't really think Row.refresh() is going to work here.
    Now, I could do something like this: In the launch listener, store the relevant attribute in some transient location, and on return, refresh it. But that seems overly complicated; isn't there a way to just not submit a dialog's values upon returning to the original form, or, at least, to prevent them from updating the model?
    Message was edited by:
    Avrom
    [Further edit:] Wait, no, there's something even stranger going on here. Note that the text input in the dialog isn't bound to "#{bindings.SomeAttr.inputValue}"; it's bound to "#{processScope.editorValue}". And the cancel button doesn't even have a returnActionListener! So how is the value getting passed back to the original form?
    Message was edited by:
    Avrom

  • ADF dialog framework problem

    I am using the "old" dialog framework in ADF 11G.
    I create two pages. One page "pops" the other with dialog:page2 and usewindow.
    This works fine when i create a simple web project.
    But when i create the same code in a ADF ViewController project the second window opens in the same window as the first one.
    Is this a bug?
    Johnny

    Hi Frank,
    This will show you my problem:
    1. create new application
    2. choice fusion web application
    3. press finish
    4. created JSF page main:
    <?xml version='1.0' encoding='windows-1252'?>
    <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:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:commandButton useWindow="true" action="dialog:popup" text="commandButton 1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    5. created JSF page popup:
    <?xml version='1.0' encoding='windows-1252'?>
    <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:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="outputText1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    6. create Faces navigation rule:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <navigation-rule>
    <navigation-case>
    <from-outcome>dialog:popup</from-outcome>
    <to-view-id>/popup.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    7. run the main page
    8. using ie 7 the main page shows
    9. push the button: no pupup, instead the "popup-page opens in same window as my main page
    Can I mail you the project, somehow?

  • ADF Faces: PPR and Dialog framework

    Hi All,
    I know that there have been some navigation-related issues reported with 10.1.3 and the dialog framework, so if this is a bug.....
    Anyway, I have an ADF Faces page that displays some data (from ADF View Object) in an af:Table. I have an "Edit Record" button and a "Create Record" button in the appropriate facets of the table. The 2 buttons use a dialog: navigation case (useWindow=true) to open a pop-up window with a record displayed for editing. Each of the buttons also has partialSubmit=true with an appropriate ID set on the button.
    Now, I am trying to get the table to refresh upon return from the dialog. After much experimentation, I have found that setting the partialTriggers property on the af:OutputText components that are inside the af:Table->af:Column will cause an existing row to refresh upon return from the edit button. However, I cannot get a new row to show up inside of the table upon return from the create button. I have tried setting partial triggers on the af:OutputText, af:Column, af:Table, etc all the way up to the top-level af:Page to no avail. I have also tried refreshing the iterator binding in the dialog return, to no avail. If I completely refresh the page (see sample code below), the record does show up, but it does cause other undesirable side effects (screen scrolls to the top, af:showDetailHeader's re-set their state, etc).
    Any pointers are appreciated...
    Here is the code behind my create button:
      public String performCreateCheck()
        DCBindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateNewCheck");
        Object result = operationBinding.execute();
        // Stuff snipped - the CreateNewCheck binding does a "CreateInsert" on my VO
        return "dialog:EditCheck";
      }Here is the code that refreshes the page (causes the new row to appear):
      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);
      }Kind regards,
    John

    Found this: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#81
    on Steve M's blog. His example uses exactly the same method that I do. However, It would be nice to get this working "properly" with PPR instead of refreshing the whole page. Here are what I see as the drawbacks to the "refresh the whole page" method:
    1). The page will scroll up to the top. If the page is bigger than a screenful, this is an annoyance.
    2). Any af:showDetailHeader's will have their disclosed property reset (unless you implement some method of saving their state). This is an issue for me, as the af:Table is inside of a normally un-disclosed af:showDetailHeader
    3). If any component anywhere puts something into the faces messages (e.g. "Record saved"), it will be lost when the page is refreshed.
    Any ideas on how to get this working with PPR?
    Regards,
    John

  • Dialog framework and commandButton doesn't display in new window

    I'm using a af:commandButton to launch a dialog in a new windows with no luck
    I'm using EA1 and ADF EA 19, my command button is
    <af:commandButton text="dialogo"
    launchListener="#{controladorLink.launch}"
    useWindow="true"
    returnListener="#{controladorLink.regreso}"
    partialSubmit="true"
    action="#{controladorLink.accion}"
    actionListener="#{controladorLink.actionListener}"
    windowHeight="200" windowWidth="300">
    Am I doing something wrong? According to the Dialog Framework documentation you need to set an "useDialog" attribute, but it doesn't exists in commandButton, do I need to use commandLink necessarily?
    Thanks

    Did you take care of these requirements?
    The value bound to the action should return a string of the form "dialog:.....".
    Eg: <af:commandButton text="Show More Information"
    action="dialog:showDetail"/>
    And there is a navigation-case that needs to be added to the faces-config.
    <navigation-rule>
    <from-view-id>/*</from-view-id>
    <navigation-case>
    <from-outcome>dialog:showDetail</from-outcome>
    <to-view-id>/showDetail.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    Hope this helps.
    Thanks,
    Balaji

  • 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

  • Programmatically change size of dialog framework

    Hi All,
    + I'm using JDev 11.1.2.3
    + Currently, i show popup by using "dialog:" as prefix of CommandButton action string
    So, Can anybody tell me how i can modify size of dialog framework programmatically?
    P/s: I use dialog framework, I do NOT use <af:popup />
    Thank you very much,

    approach 1:
    private RichCommandButton btnSave;
    public void setBtnSave(RichCommandButton btnSave) {
    this.btnSave = btnSave;
    public RichCommandButton getBtnSave() {
    return btnSave;
    public void clickButton(ActionEvent) {
    btnSave.setInlineStyle("input your style");//how you can change inline style in your bean
    <af:commandButton id="navigateButton" action="dialog:openWindow" useWindow="true" windowEmbedStyle="inlineDocument"
    binding="#{testbean.btnSave}"/>
    approach 2 :
    private String inStyle;
    public void setInStyle(String inStyle)
    this.inStyle=inStyle;
    public String getInStyle()
    return Style;
    <af:commandButton id="navigateButton" action="dialog:openWindow" useWindow="true" windowEmbedStyle="#{testbean.inStyle}"
    />
    Edited by: vikasadf on Apr 1, 2013 7:11 AM

  • 11g: NavigationHandler.handleNavigation() and dialog framework

    Hi,
    Is it possible to use handeNavigation() method from NavigationHandler to perform navigation which uses dialog framework to show another taskflow as inline popup?
    FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(), null, "myDialogAction");When I do this, I get Error 404--Not Found in the browser (the URL is changed to the task flow which should be displayed as inline popup).
    Thanks,
    Pedja

    Yes, I've added
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_MAX_TOKENS</param-name>
    <param-value>100</param-value>
    </context-param>
    but had no luck. There are a couple things I can add since my last post:
    1) Other folks reported int he forum that their problem was that after opening a dialog several times, the returnListener method wasn't getting fired. This is not the issue for me. My returnListener method gets fired every time I close the dialog.
    2) I had another developer run the same 10.1.3.4 version of the app on her machine in both IE 6 and 7, and we could not recreate this error. For right now, it seems that this is only happening on my machine.
    So... until this comes up on someone else's machine or in our production environment (once these changes are deployed), I'll assume there is something hosed up in my environment that's causing this. What I find weird is that when I run this code in 11g, it works fine even on my machine, which makes me think that this is more of a framework thing than a browser thing. But, if that's the case, why wouldn't it behave the same way on someone else's machine? I'll consider this issue closed for now... But, if you have any thoughts/ideas, I'd be interested in hearing them. Thanks for the help.

  • Override renderKit to customize the dialog framework behavior

    Hi all,
    We're using JDeveloper 11.1.1.5.
    Our requirement is to hide the browser's tool bar of the window opened by the dialog framework.
    The below post says that the dialog framework only cares for height and width and ignores all other parameters.
    How to Make dialog as full screen
    And the below Java Doc says that the list of window property names that are supported by DialogRenderKitService.launchDialog() depend on the RenderKit.
    http://www.jarvana.com/jarvana/view/org/apache/myfaces/trinidad/trinidad-api/1.2.7/trinidad-api-1.2.7-javadoc.jar!/org/apache/myfaces/trinidad/render/DialogRenderKitService.html#launchDialog%28javax.faces.context.FacesContext,%20javax.faces.component.UIViewRoot,%20javax.faces.component.UIComponent,%20java.util.Map,%20boolean,%20java.util.Map%29
    Therefore it is likely that we can accomplish our requirement if we implement our own renderKit and set it as default.
    Is it possible to override default renderKit (oracle.adf.rich) to customize the dialog framework behavior?
    Regards,
    Kenji

    Thanks for your response.
    However I think that overriding renderer is not the way to go but overriding render kit is.
    It seems to me that dialog launching in the dialog framework is executed by launchDialog() method of DialogRenderKitService which is obtained as follows.
    RenderKit rk = FacesContext.getCurrentInstance().getRenderKit();
    DialogRenderKitService service = Service.getService(rk, DialogRenderKitService.class);Thus the solution should be, I think, something like this:
    1. Override launchDialog() of DialogRenderKitService of the dialog framework so as to launch a dialog without the browser's toolbar.
    2. Extend the default render kit (oracle.adf.rich) so as to return the extended DialogRenderKitService when Service.getService(rk, DialogRenderKitService.class) is called.
    3. Set the extended render kit as default in faces-config.xml.
    However, this is not easy (or I should not do this) as both the default DialogRenderKitService and render kit are in internal packages.
    There may be another solution that is applicable.
    Any idea?
    Regards,
    Kenji

  • Acrobat Reader DC - Bug with Dialog Boxes Containing Images?

    Hi all -
    Been testing Reader DC.  Only took a couple of minutes to adjust to the new interface; pretty slick and intuitive.
    Noticed a potential issue that I wanted to warn/share/prob solve with the community.
    I was putting Reader DC through it's paces with a XFA PDF that has some dialog boxes, some of which even had images in them.  (Thanks again to BR001.)
    The dialog boxes with images look great on Acrobat & Reader 9/10/11 (WIN & MAC) - images are clear; no pixelation.
    Reader DC on MAC appears to be fine - resolution looks the same.
    But Reader DC on WIN - the images are now pixelated. Especially around the edges, characters/numbers, etc.  You can tell something is "off" with the image.
    A few simple side-by-side tests can be seen at links below.  Reader DC is on left; Acrobat 9 (9.5.5) is on right.
    Green smiley face: Dropbox - icon differences.PNG (83 x 83)
    Lightroom image: Dropbox - Lightroom Image - Comparison Test.PNG (225 x 132)
    Reader DC banner image: Dropbox - Reader DC Banner--- Comparison test.PNG  *MOST VISIBLE ON THIS EXAMPLE (ironically) (422 x 45)
    Simple banner with words image: Dropbox - Simple Banner - comparison test.PNG (342 x 100)
    PDF containing the 4 buttons that triggered these dialog boxes: Dropbox - Dialog Boxes with Images - PDF - LC community.pdf
    Bug in Reader DC for Windows? Not sure what else the cause could be...
    Anyone having their dialog boxes with images open in Reader DC for Windows WITHOUT the pixelation?
    FYI/thoughts/ideas/suggestions/confirmations?  Hmmm.....
    Brian

    Little easier; picture's worth a thousand; etc.
    Shortcuts to zoom in/out further for most web browsers: ("ctrl" & "+") or ("ctrl" & "-");

  • Region in a Dialog Framework - Error or FacesMessage z-index

    JDeveloper 11.1.1.4.0
    Use case:
    - Taskflow dynamic region rendered in an ADF Popup + PanelWindow (or Dialog).
    - Fetch listeners are configured to ensure the handling of the dynamic region id - controls the activation and de-activation of the taskflow.
    I noticed, that prior to rendering the first fragment in the popup's region, any exceptions or FacesMessage is rendered behind the popup. I know it's a problem in the z-index position and it seems to be a common use case to have business methods being called prior to rendering the initial fragment so I'm wondering if there is a way to get around this?
    -Marvin

    I think this might be an ADF bug. This seems to happen whenever you make a call to show any errors, or warnings, info or any sort of message that is rendered as a popup prior to the landing in the fragment(e.g. your entry activity is not the fragment itself but some method call which does the display message call).

  • Bug in Entity Framework: No rows returned with criteria.

    Bug: Oracle fails to return rows with lambda criteria on string field from varchar2 column in view.
    Steps to reproduce:
    Create view:
    CREATE OR REPLACE VIEW "PHILIP_TEST" ("ROWNUMBER", "DRIVER") AS
    SELECT
         ROWNUMBER,
         DECODE(DRIVER,CHR(2),NULL,DRIVER) DRIVER
    FROM FLIGHT
    WHERE SCHEDULEDDATE = TRUNC(SYSDATE);
    Rownumber is unique key (number), Driver is varchar2(7).
    Create C# console application in VS2010
    Add Entities Model and add view.
    Add this code to Main()
    var context = new Entities();
    // Test code start
    var allrows = context.PHILIP_TEST.Where(x => x.DRIVER != null).ToArray();
    Console.WriteLine(allrows.Count());
    // Select first driver as criteria
    var driver = allrows[0].DRIVER;
    Console.WriteLine(driver);
    // Test code end
    // This line fails to return any rows
    var result = context.PHILIP_TEST.Where(x => x.DRIVER == driver).ToArray();
    Console.WriteLine(result.Count());
    Console.ReadLine();
    Add some test data to flight.
    Run it!
    The expression with criteria x.DRIVER == driver should return at least 1 row. It doesnt.
    Running the following from SQL Developer returns records: Conclution the view is fine.
    SELECT * FROM PHILIP_TEST WHERE DRIVER = 'MJA'
    If definition of DRIVER column in view is changed from: "DECODE(DRIVER,CHR(2),NULL,DRIVER) DRIVER" to just "DRIVER", then code returns rows as expected.

    are you sure your two select statements can't be combined to one query with outer join?
    if the outer join is possible, after creating the query, it will have one group with all the fields/columns you selected.
    drag the columns you selected in the personal info, outside the group.
    this should enable you to have one query with two groups, a master (personal info) and a detail (monetary calculations).
    your first frame will have the master group as source, while for the second the detail. now, the "Value if Null" should work.
    if the outer join is not possible,
    create one query with only the personal info. in the group, create column formula to get the monetary columns (you may need to create place holders if selecting multiple columns)
    drag the columns you selected in the personal info, outside the group.
    this should enable you to have one query with two groups, a master (personal info) and a detail (monetary calculations, you CF_ and CP_ columns).
    your first frame will have the master group as source, while for the second the detail. now, the "Value if Null" should work in your CF_ and CP_ columns

  • ADF Faces JDev 10g Dialog framework and session timeouts

    Hi,
    using ADF Faces & BC 10.1.3.4 for a web application with a main page that opens a dialog where the uses fill out stuff and click next until complete. Occasionally they will leave the application open and the session times out and when they go to use it they get the login page inside the dialog. They login but as expected the whole state of their session is lost resulting in no or the wrong record being displayed. Additionally of they go back to the parent window the row keys are all stuffed, they get the first record in the dialog even though the record from the previous session was still shown on the screen.
    Any web developer would know to close the dialog and login properly, but this for end users of any experience level.
    Is there anyway to prevent the login screen appearing in the dialog or at least direct them to properly re-establishing the session?
    Brenden

    Hi,
    the question is how you identify that the page is loaded in a dialog window. Because if you know this then the redirect would be to a html page that has an onLoad event defined that calls window.close();. Next problem then however is that the calling parent page too is timed out.
    Frank

  • How is the getReturnParam Map set in the dialog framework?

    Hi All,
    I'm trying to pass around some values from my main window, to a dialog window, and then use those values in a call to a business method when the user presses "Approve" on the dialog. I want to call the business method in the returnListener method, but I can't find any information on how to manipulate the Map that is returned by:
    event.getReturnParameters();
    Does somebody have an example of setting and using this Map?
    Thanks,
    Matt

    I found a solution for this problem. Here is the new code for the launchListener:
      public void approveMessageForSend(ActionEvent e) {
        final AdfFacesContext adfi = AdfFacesContext.getCurrentInstance();
        adfi.returnFromDialog(new String("approvedToSend"), adfi.getProcessScope());
        adfi.getProcessScope().clear();
        logger.info("RETURN FROM approveMessageForSend");
      }note the second argument in returnFromDialog. I am accessing the process scope, which returns a Map of all the values I placed in processScope using the launchListener.
    Thus I am able to access that map in the returnListener with the following code:
      public void sendApprovedMessage(ReturnEvent event)
        Map m = event.getReturnParameters();
        ... rest of method ...Thanks for your help. I wouldn't have thought of using the returnFromDialog method for this.
    -Matt
    Message was edited by:
    mattedelman

Maybe you are looking for

  • ITunes broke. Read this if you want a troubleshooting challenge.

    First iTunes edited my track numbers on random songs. For example, track 1 of 12. iTunes edited it to be 1 out of "blank". Not 1 of 12. Next iTunes would not play a few albums. So I removed the unplayable albums and tried to re-add them. Well iTunes

  • Charge Account not generated for item in iProcurement

    Hi All, I'm stuck with an issue in iProcurement. While creating a requistion in iProcurement for a particular item, Charge account is not generated. This is happening only for the Canada Operating unit, where as from the US responsibility I'm able to

  • Should I deinterlace video for a powerPoint presentation

    Hello: So while we are getting the bugs out of my agony render issue I have another question. I have to make Windows Media Files from FCP/Quicktime movies for insertion into PowerPoint. Should I deinterlace the Windows Media Files for playback in Pow

  • MM Pricing for normal PO?

    hii Explain me below trail pricing with detailed steps with more clear explanation with any links . I wanted to do normal procurement with conditons basic price ,discount %  and frieght value. For above conditions,what are the below setting has to be

  • LONG column Manipulation

    Hi, I want to put a message at a paricular position in a long column like LONG Value Part1 ||message || LONG Value Part2. As every body knows i can't use SUBSTR for the same since the Data Type is long and at the same time i can't change the dataType