Trinidad Dialog Popup Problem

I'm using JDeveloper 11g, EclipseLink JPA and ADF Trinidad...
I'm new to these technologies but doing my best to research them and understand them...
I have tried looking to other forum posts but no solution...
In IE7 when I click the button generated from the following code it does not popup a dialog, rather it navigates from my main page to the dialog page, in the same IE tab. I could try other browsers but I need it to work in IE7.
jspx:
<tr:commandButton text="New"
partialSubmit="true"
useWindow="true"
action="dialog:test2new"/>
faces-config.xml:
<navigation-rule>
<from-view-id>/test2.jspx</from-view-id>
<navigation-case>
<from-outcome>dialog:test2new</from-outcome>
<to-view-id>/test2new.jspx</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/test2new.jspx</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/test2.jspx</to-view-id>
</navigation-case>
</navigation-rule>
Any ideas what I may be doing wrong?

Hi,
Trinidad is not ADF and therefore the right forum for this is the Apache user mailing list for MyFaces Trinidad
http://myfaces.apache.org/trinidad/trinidad-1_2/mail-lists.html
Frank

Similar Messages

  • Dialog popup problem Jdev 10.1.3.1 ADF Faces

    I am having a problem with the behavior of my dialog popups, as follows:
    1. The first time (in the first row) I click the CommandLink, the dialog popup opens and the display occurs. When I hit the close button on the dialog window, the return listener method in a request Scope managed bean fires.
    2. I click on the Command Link in the second row. The dialog opens, again with the correct values being passed. This time, when I hit the Close button, the window closes, but the ReturnListener method does not execute.
    3. Hit the command link in the third row. The link registers a click, but the popup does not appear.
    Here is the Command Link:
    <af:column sortProperty="Nsn" sortable="true"
    headerText="#{bindings.CILOneProjROViewObj.labels.Nsn}">
    <af:commandLink text="#{row.Nsn}" action="dialog:Nsn"
    useWindow="true" windowHeight="200"
    windowWidth="500" partialSubmit="true"
    returnListener="#{project_go.resetProcessScope}"
    immediate="false">
    <af:setActionListener from="#{row.Nsn}"
    to="#{processScope.holdNsn}"/>
    <af:setActionListener from="#{row.Sos}"
    to="#{processScope.holdIcp}"/>
    <af:setActionListener from="#{'dialog:Nsn'}"
    to="#{processScope.holdScreenName}"/>
    </af:commandLink>
    </af:column>
    Here is the Close button on the popup:
    <af:commandButton text="Close">
    <af:returnActionListener/>
    </af:commandButton>
    And here is the bean method fired in the returnListener attribute above:
    public void resetProcessScope(ReturnEvent returnEvent) {
    // Add event code here...
    AdfFacesContext adfctx = AdfFacesContext.getCurrentInstance();
    String screenName = (String)adfctx.getProcessScope().get("holdScreenName");
    System.out.println("screen:"+screenName+":"+adfctx.getProcessScope().get("holdNsn"));
    if (screenName.equalsIgnoreCase("dialog:Nsn")) {
    adfctx.getProcessScope().put("holdNsn",null);
    System.out.println(adfctx.getProcessScope().get("holdNsn"));
    adfctx.getProcessScope().put("holdScreenName",null);
    I am absolutely stuck here. Is there a flag of some kind I'm missing?

    I found an apparent resolution to the problem: I moved the storage of values from processScope to a sessionScope managed bean. Everywhere you see processScope in the code I provided, substitute sessionScope.bean.attribute.
    Speculation: when a dialog window gets launched, it is being treated as a "separate process" with its' own processScope. Therefore, my changes weren't getting where they needed to be. However, that doesn't explain why setting a value in a setActionListener on the commandLink stored a value that the dialog could reference successfully. It also doesn't explain why the returnListener wasn't being fired every time.

  • How can I rename buttons in dialog popup ?

    Hello.
    I want rename buttons "OK", "Cancel" with my names in popups.
    I create new values in domen WDR_POPUP_BUTTON_KIND
    Next enhance interface IF_WD_WINDOW with new attributes:
    CO_BUTTON_CP type WDR_POPUP_BUTTON_KIND
    But i have problem in CL_WDR_INTERNAL_WINDOW->IF_WD_WINDOW~SET_BUTTON_KIND:
      case me->buttons-button_kind.
        when co_buttons_abortretryignore.
          wa_button-button      = co_button_abort.
          wa_button-button_text = cl_wdr_texts=>get_text( '201' ).
          wa_button-tooltip     = cl_wdr_texts=>get_text( '201' ).
          wa_button-is_enabled  = abap_true.
    This code show only predefined type of buttons can use. 
    How can I rename buttons in dialog popup ?

    When you subscribe to button event  you can rename the button
    * Popup
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
        window_name          = 'W_POPUP'
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        button_kind          = if_wd_window=>co_buttons_ok
        message_type         = if_wd_window=>co_msg_type_none
        default_button       = if_wd_window=>co_button_ok
      DATA:  l_api TYPE REF TO if_wd_view_controller.
      l_api = wd_this->wd_get_api( ).
    " subscribe to button event
      lo_window->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_ok
                   BUTTON_TEXT       = u2018Approveu2019 " renaming the button text
                   action_name       = 'ON_OK_POPUP'
                   action_view       = l_api
                   is_default_button = abap_true ).
      lo_window->open( ).
    Radhika

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

  • How do i position a dialog popup box when it opens???

    i'm using the adf faces to follow a navigation link (dialog:addUser) to a new dialog popup page. all is working great; i am able to return the values in the popup as expected.
    what i can't find is how do i position this popup when it opens? i don't want it in the upper left over the calling page...i want to move it over and down so it appears to be more centered. can this be done? there's an attribute for height and one for width but not one for upper left X and Y positions that i can find.
    thanks for any support on this.

    apparently, i'm using the defaults as I don't have any idea as to that attribute. i searched for the showPopupBehavior and it's nowhere in my application. btw: i'm using jDeveloper 10.1.3.4

  • [REPOST]How to force ADF Dialog / POPUP to use POST method ?

    Hi all,
    Is there any way to make ADF Dialog / POPUP to use POST method ?
    I need that approach to implement this post : [SOLVED] Faces - Preventing user from entering URL manually
    But it breaks in my application because ADF Dialog / POPUP is using GET method.
    Thank you very much,
    xtanto

    repost.
    Thank you

  • "Dialog box "PROBLEM WITH SHORTCUT"

    When my T40 p starts up I keep getting the following message, over and over again until I close the system tray IBM Connect bar. 
    "Dialog box “PROBLEM WITH SHORTCUT”
    The drive or network connection that the shortcut IBM Access Support.lnk refers to is unavailable.  Make sure that the disc is properly inserted to the network resource is available, and then try again. "
    Help!

    You'll need to find your iTunes folder. It's usually located on your main hard disk under My Documents/My Music/iTunes. Copy this whole folder to another hard drive (if possible) or burn it on a CD (probably will take more than one--depending upon how large your library is) or DVD. Once you have a good backup of your library, try downloading and reinstalling iTunes.

  • [ADF] Focus not getting set on second level dialog/popup

    Hi,
    While working on a related bug, I've discovered that for every second level dialog/popup(a popup that is invoked from another popup), the focus does not get set to the second level dialog if the first component in that popup is an inputText, unless a user explicitly clicks on it. By focus I mean that on pressing tab, the fields on the previous popup still get selected/highlighted.
    This does not happen if the first UI Component is any other; everything else kept the same. I suspect this is an ADF bug; does anyone know of a workaround?
    Thanks,
    Ravikiran Sastry
    Edited by: 911228 on Jan 30, 2012 11:59 PM

    Hello,
    we are having the same issue using JDeveloper 11.1.1.4 and Internet Explorer 8.
    The code is really simple: just a regular popup with an inputListOfValues component inside. Open the popup, open the inputListOfValue's "Search and Select" popup and if you press the Esc key, the first one will be closed, while the "Search and select" popup will remain there.
    Jordi

  • [ADF] Focus does not get set on a second level dialog/popup

    Hi,
    While working on a related bug, I've discovered that for every second level dialog/popup(a popup that is invoked from another popup), the focus does not get set to the second level dialog if the first component in that popup is an inputText, unless a user explicitly clicks on it. By focus I mean that on pressing tab, the fields on the previous popup still get selected/highlighted.
    This does not happen if the first UI Component is any other; everything else kept the same. I suspect this is an ADF bug; does anyone know of a workaround?
    Thanks,
    Ravikiran Sastry
    Edited by: 911228 on Jan 30, 2012 11:59 PM

    Hello,
    we are having the same issue using JDeveloper 11.1.1.4 and Internet Explorer 8.
    The code is really simple: just a regular popup with an inputListOfValues component inside. Open the popup, open the inputListOfValue's "Search and Select" popup and if you press the Esc key, the first one will be closed, while the "Search and select" popup will remain there.
    Jordi

  • 6.1 Print Templates - auto select items in the print dialog popup

    In the slide deck I have about 6.1 it says the following:
    •Print Templates
    –Print templates can now be used to auto select items in the
    print dialog popup. By default, the out of the box template
    selects the current specification
    Unfortunately I haven't been able to find how to do this in the EP documentation. Could someone point me in the right direction on how to do this?

    Download Extensibility Pack 2.6. It was just released. Take a look at page 11 in the Print Extensibility Guide. It should have the info you need. If not let me know.
    Here is the link for the downloads:
    https://support.oracle.com/CSP/ui/flash.html#tab=PatchHomePage(page=PatchHomePage&id=h1j503ev())

  • Af:dialog cancel problem on new VO row

    Using 11.1.1.4.
    I have an af:popup that contains an af:dialog which itself contains enterable components mapped to VO attributes, the first being an af:selectOneChoice (body-part list). The body-part list draws from an LOV setup on the underlying VO attribute. The LOV RowSet is initialized in the model tier for the row each time the popup is invoked to ensure it contains all the values allowed.
    Everything works fine except when:
    a) user adds a new row to the underlying VO and invokes the popup to initialize the new row values, and
    b) user selects a value out of the body-part list, and
    c) user elects to Cancel the dialog
    The PopupCanceledEvent fires a Delete Operation on the underlying VO in the above case, to remove the new row just added.
    All this works fine, but if the dialog is now invoked either for another new row, or for an existing row, the body-part list shows the value that was selected at b) above and not the value as it is in the Model row (this has been verified). If I add and delete the row using the Delete Operation off an icon above the VO table (outside the dialog), then no issues. The problem doesn't correct itself unless / until user goes in to the dialog again and completes the add row process by hitting the dialog OK button. User can then delete this new row using the icon, and then edit and add operations all work fine again.
    Everything in the model looks fine, the problem just seems to be that the UI components in the dialog aren't initializing properly from the values I know to be in the model WHEN AND ONLY WHEN the dialog has been canceled on the add of a new row (cancel of an edit doesn't cause the problem). I've tried various PPR requests to try and sync the components up with the bound values, but no luck.
    Does anyone have any suggestions as to what might be going on here ?
    Thanks,

    Thanks, again that's fixed it up. Appreciate the support.
    I put a ResetUtils.reset(body-part-list component) in the bean member handling the PopupCanceledEvent and it all works fine now. Don't really understand what's going on here, and why the manual reset is required for this item, but it's working ...
    Thanks again,

  • Dialog Box Problem

    i have created dialog box manually using stage and modility. the problem is when the dialog box executes the code following dialog box
    gets executed before closing the dialog box. i want to use it like confirmation box in swing. i want to stop further execution of code till yes/no button of dialog box clicked.please suggest... please help me....

    Ok, so it doesn't look like there is an easy way to do modality in JFX. I had thought since Swing does and JFX uses the same threading model that it should be do-able, but from what I can tell, Swing does some serious magic under the covers to make modal dialogs work.
    Your best bet probably is to use callbacks instead. Make your own dialog window and instead of doing something like this:
    int choice = MyDialog.show("Are you sure you want to do that?");
    if (choice == MyDialog.OK)
        doTheAction();
    } Do something more like:
    MyDialog dialog = new MyDialog("Are you sure you want to do that?");
    dialog.setOnOk(new EventHandler<ActionEvent>()
        public void handle(ActionEvent actionEvent)
            doTheAction();
    });In fairness, that is probably a bit more 'correct' anyway and inline with the JFX style of doing things (although it is more code).
    Here's some very, very rough code for doing something like what you want. You could obviously customise the class to take an enum of the button options available etc. It could all be improved a lot.
    public class TestApp extends Application
        public static void main(String[] args) throws Exception
            launch(args);
        public void start(final Stage stage) throws Exception
            StackPane rootPane = new StackPane();
            FlowPane contentPane = new FlowPane();
            BorderPane dialogContent = new BorderPane();
            dialogContent.setStyle("-fx-background-color: white");
            dialogContent.setCenter(new Label("This is a dialog"));
            final Dialog dialog = new Dialog(dialogContent);
            dialog.setOnOk(new EventHandler<ActionEvent>()
                public void handle(ActionEvent actionEvent)
                    System.out.println("Ok selected");
            dialog.setOnCancel(new EventHandler<ActionEvent>()
                public void handle(ActionEvent actionEvent)
                    System.out.println("Cancel selected");
            Button showDialogButton = new Button("Show Dialog");
            showDialogButton.setOnAction(new EventHandler<ActionEvent>()
                public void handle(ActionEvent actionEvent)
                    dialog.show(stage);
            contentPane.getChildren().add(showDialogButton);
            rootPane.getChildren().add(contentPane);
            BorderPane glassPane = new BorderPane();
            glassPane.setStyle("-fx-background-color: rgba(200, 200, 200, 0.5)");
            glassPane.visibleProperty().bind(dialog.showingProperty());
            rootPane.getChildren().add(glassPane);
            Scene scene = new Scene(rootPane, 300, 300);
            stage.setScene(scene);
            stage.show();
        private class Dialog extends Popup
            private BorderPane root;
            private EventHandler<ActionEvent> onOk;
            private EventHandler<ActionEvent> onCancel;
            private Button cancelButton;
            private Dialog(Node content)
                root = new BorderPane();
                root.setPrefWidth(200);
                root.setPrefHeight(200);
                root.setStyle("-fx-background-color: white; -fx-border-width: 1; -fx-border-color: gray");
                root.setTop(buildTitleBar());
                root.setCenter(content);
                root.setBottom(buildButtonBar());
                getContent().add(root);
            public void setOnOk(EventHandler<ActionEvent> onOk)
                this.onOk = onOk;
            public void setOnCancel(EventHandler<ActionEvent> onCancel)
                this.onCancel = onCancel;
            public void setContent(Node content)
                root.setCenter(content);
            private Node buildTitleBar()
                BorderPane pane = new BorderPane();
                pane.setStyle("-fx-background-color: #0000aa; -fx-text-fill: white; -fx-padding: 5");
                pane.setOnMouseDragged(new EventHandler<MouseEvent>()
                    public void handle(MouseEvent event)
                        // not sure why getX and getY don't work
                        // double x = getX() + event.getX();
                        // double y = getY() + event.getY();
                        double x = event.getScreenX();
                        double y = event.getScreenY();
                        setX(x);
                        setY(y);
                Label title = new Label("My Dialog");
                pane.setLeft(title);
                Button closeButton = new Button("X");
                closeButton.setOnAction(new EventHandler<ActionEvent>()
                    public void handle(ActionEvent actionEvent)
                        hide();
                pane.setRight(closeButton);
                return pane;
            protected Node buildButtonBar()
                FlowPane pane = new FlowPane(6, 6);
                pane.setAlignment(Pos.CENTER);
                Button okButton = new Button("OK");
                okButton.setOnAction(new EventHandler<ActionEvent>()
                    public void handle(ActionEvent actionEvent)
                        hide();
                        if (onOk != null)
                            onOk.handle(actionEvent);
                pane.getChildren().add(okButton);
                Button cancelButton = new Button("Cancel");
                cancelButton.setOnAction(new EventHandler<ActionEvent>()
                    public void handle(ActionEvent actionEvent)
                        hide();
                        if (onCancel != null)
                            onCancel.handle(actionEvent);
                pane.getChildren().add(cancelButton);
                return pane;
    }

  • Popup Problem ??

    hi all
    i'm Trying to do this code
    public void PopupTest(DialogEvent dialogEvent)
    System.out.println("dialogEvent = " + dialogEvent.getOutcome().toString());
    getIt1().setValue( getIt2().getValue());
    and jspx code
    <af:inputText label="Label 1"
    binding="#{backingBeanScope.backing_page_one.it1}"
    id="it1"
    />
    <af:commandButton text="commandButton 2"
    binding="#{backingBeanScope.backing_page_one.cb2}"
    id="cb2" partialSubmit="true">
    <af:showPopupBehavior popupId="p1" triggerType="click"/>
    </af:commandButton>
    <af:popup binding="#{backingBeanScope.backing_page_one.p1}" id="p1">
    <af:dialog binding="#{backingBeanScope.backing_page_one.d2}" id="d2"
    dialogListener="#{backingBeanScope.backing_page_one.PopupTest}">
    <af:inputText label="ENTER NAME :"
    binding="#{backingBeanScope.backing_page_one.it2}"
    id="it2"/>
    when i click on OK it do the PopupTest and print 'dialogEvent = OK' but it didn't do this line : getIt1().setValue( getIt2().getValue()); the input text stil empty
    so what is the wrong ???
    thanx for ur time

    Have you verified that the code line is not executed? Have you set a breakpoint to the line and stepped over it?
    Split up the line in question to see if you get the correct value from it2
    public void PopupTest(DialogEvent dialogEvent)
      System.out.println("dialogEvent = " + dialogEvent.getOutcome().toString());
      Object o2 =  getIt2().getValue();
      getIt1().setValue( o2);
    }If you see the correct value on o2 then the problem is that have to update it1 to show the new value.
    try after setting the new value
       RequestContext.getCurrentInstance().addPartialTarget(getIt1());Timo

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • Dialog Box  Problem in BDC Program...

    Hi friends,
    I am facing a problem while  creating service entry sheet no  throgh bdc ( Tcode ML81N) . I use 'no disply' mode in call transaction method.
    whenever i regarding in our development client there is no dialog box with the following screen.  But in QAS server it displays the same. I have already include the following code in my bdc program. But the dialog box  been displayed finally. Our user doesn't require this interaction. Kindly give solutions.
    perform bdc_dynpro      using 'SAPLMLSR' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IMKPF-BLDAT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=OK'.
    perform bdc_transaction using 'ML81N'.
    Thanks & Regards,
    SP.Manavalan.

    Hi,
    Thanks for reply.
    I have checked log using SM37, it is not showing any error.
    Log details are as follows...
    Date       Time     Message text                                                                             Message class Message no. Messag
    08.05.2010 11:47:10 Job started                                                                                00           516          S
    08.05.2010 11:47:10 Step 001 started (program ZSDB_J1I5_REG_UPDATE_BDC, variant 1101_1_RMA, user ID STK)      00           550          S
    08.05.2010 11:47:20 Job finished                                                                                00           517          S

Maybe you are looking for