How do the branch of ok/Cancel dialog to another page

Hello
I use the component of management Jdevloper 11 g ADF
I need to display a confirmation message before the cancellation of the user access to its evolution. I implement this by creating a popup and Add dialog (ok/cancel) then put a showpopuupbehavior on my restore button component as explained in the book of 13-1 (Guide of Fusion Middleware User Interface developer for Oracle Application Development Framework Web) example.
and I used this code:
{} public void continueFromDialog (DialogEvent dialogEvent)
Add the code in the event here...

If (dialogEvent.getOutcome () is DialogEvent.Outcome.ok)
{
roll back
}
on the other
{
do nothing
}

}

but I need to create a branch to another page after the user roll back, how can I do this (i.e. If the user click on the ok button on the dialog box I need to create a branch to the next page)

any help please

If you have defined a case of your current page navigation to another page say 'dismantling', that shows information on the restoration.

{} public void continueFromDialog (DialogEvent dialogEvent)
If (dialogEvent.getOutcome () is DialogEvent.Outcome.ok)
{
Code to navigate to the information Page for Rollback
FacesContext context = FacesContext.getCurrentInstance ();
context.getApplication () .getNavigationHandler () .handleNavigation (null, "rollback", context);
}
on the other
{
}
}

Thank you
Nini

Tags: Java

Similar Questions

  • How to generate the primary key element and move to another page?

    How to make the primary key value to another page in a table?

    Form on T_ITEMS 2.png

    Hello

    I am a beginner in the apex,

    Please, now I want to add the primary key to page 1 for item id in page 2...

    Notice:

    Before, I created (process of pl/sql in the rendering of page @ after the header section) to get the id of secuance.

    BEGIN
    :P17_ID := seq_t_items_id.NEXTVAL;
    END;
    
    
    

    primary key is generated for the element ID of page 1... BUT When I update 'page 1' I see error and solved when shut down my browser and open it again...

    Please help me to...

    1. Generate a primary key (article id @ page 1)... without refresh error. ?
    2. Pass him (item_id) on page 2

    Thank you all for...

    Sorry I'm beginner in apex,

    I don't know how Pass value of the item_id TO page 1 page 2 "in the form ID", turn to the first PHOTO... .
    Help me..

    Thank you

  • Make the button submit, and then redirect to another page

    Hello!
    I have a button of the region, when you press on "should" launch the Multi_row_update, then redirect to another page. I can't make it work well.

    I have the button BUTTON_1, I have the "after-submit' process that performs the MRU after this button is pressed.» I then created the conditional branch that is supposed to redirect. But it does not work. The page is not redirected. I tried to change the button to a redirect button, but then sending does not. How can I do both?

    Thank you!
    Jodie

    What is the sequence number of the one who is unconditional?
    I think that your unconditional branch on the same page may be taking over your conditional branch on page 55.

    -Chris

  • How does the 'branched out in a new discussion?

    At the beginning of the Apple Discussions pages I see "Phaca to a new discussion.  How does this work?  What is this for?

    The reason I ask, it is a discussion that I launched five years in the community of Snow Leopard is underway and El Capitan along with all other versions of OS X since 10.5.  This discussion of Snow Leopard should be branched to a discussion of El Capitan to keep up-to-date?

    This means that a divided host part of the thread in another; It is usually, but not always, because this part broke the Council decides.

    (142094)

  • How to set an af:popup / af:dialog in separate page?

    Hello

    Like jsp: include the tag, we can separate the dialogues on different pages? Because I do create/edit/delete jobs Records with windows pop-up/dialogues, and my codes source look crowded.
    Will this affect the dialog box launchers or other components?

    Thank you.

    Hi Onur,

    You can use this way:

    (1) create your popup page as I have here for my action of disconnection (LogoutPopUp.jspx) note: without using any component f: view

    
    
      
    
        
          
            
              
                
                  
                    
                    
                    
                    
                      
                        
                        
                        
                      
                    
                  
                
                
                  
                
              
            
            
              
                
              
            
          
        
      
    

    (2) in your actual JSPX page to show popup to add are:

              
                
              
    

    (3) add showPopupBehavior to your action button like this:

                         
                          
                        
    

    (4) it is, if you have several popup for the action of the single button that you can use EL for dynamic Popup Id for the showPopupBehavior popupId property.
    Hope that you have found, what I'm trying to say.

    as you mention that you need to change then you need to use all the databinding in definition of the pages of your popup as usual page page. and your action button just press the line current present viewObject in the Popup.

    Hope that this idea will help you. I've set up this much time for other purposes in my Application. This works. :)

    FIZZZ...

    Published by: Fizzz October 3, 2009 12:16

  • How can I select the area I want to bound, to another page?

    Hello

    I've been creating multiple stand alone PDF files with links to various documents in a given PDF file.  Until yesterday that I would choose the button Link, move my cursor to the top left corner of the area to be selected, press the button and drag a box over the area that I selected.  It was working fine.  Then, BOOM, all of a sudden when I do that now it doesn't let me select the area I want, it will show a fixed which seems to be broken-line formatting above or below the box I want.  Is there a setting somewhere which might have changed?

    Davey

    Make sure that you don't have the snap to the grid selected option.

    In Acrobat 8, it's under the view menu.

  • How to make a button to link me to another page

    Hi guys,.

    Can someone tell me what Im doing wrong,

    I created a new folio and created in a 3-page document,

    Page 1 'PAGE ONE' written on it using the text tool, and I did similar pages two and three

    I selected the text "PAGE ONE" and transformed into a bookmark

    On page 3, I drew a red rectangle, converted to a button, assigned to the navigation option "go to destination" and took the 'ONE PAGE' bookmark as a destination.

    Is there an extra step that I am missing as long as when I run the preview and press the red button, nothing happens

    I use indesign on a MAcbbok Pro and the Preview on an ipad, the software is Indesign CC

    Its obviously me, but I can not work what do I do

    Bookmarks are not supported in DPS. Use a button url reach with a navto:

    action.

  • How to point a popup from a url of another page link column values.

    I have URL in the link column # javascript:myFunc(#MACHINE_NAME#);
    In Java Script, I have:

    function myFunc (Pmachinename) {}
    var MachineName = Pmachinename;
    Window.Open ("f? p = & APP_ID.:53: & SESSION. : & DEBUG. (": 53:P53_MACHINE_NAME:" + machinename + ":","LoanMachine","State = 1, scrollbars = 1, resizable = yes, width = 550, height = 450");
    }


    I don't get a popup, is there any problem with my code?

    Thanks in advance

    function myFunc (Pmachinename) {}
    var MachineName = Pmachinename;
    Window.Open("f?p=&APP_ID.:53:&session.::&Debug.:53:P53_MACHINE_NAME:"+MachineName+":","LoanMachine","status=1,ScrollBars=1,Resizable=Yes,Width=550,Height=450");
    }

    Provide a single quote around the column name as javascript:myFunc('#MACHINE_NAME#');
    If #MACHINE_NAME # is not a number

    Published by: manon on May 31, 2012 12:30

  • Change the confirmation form use case dialog box

    Hi all
    I need to implement the following features for an ADF application in Jdeveloper 11.1.1.4.


    I have two pages (pages of the edition and research). In the edition, page user can change the values of the fields and save in the database. It also has a button 'Cancel', which is nothing else than restoration. When the user clicks on the "Cancel" a popup just warn the user that any unsaved work will be lost. The popup is ok Cancel dialog.

    So far, I am able to implement the above, I am faced with the below
    (1) if the user chooses Ok cancellation occurs and is redirected to the search page. Currently what is happening is the user by clicking on the "Cancel" button, the restoration begins without waiting for confirmation to the user and does not redirected.
    (2) if the user clicks Cancel, the cancellation does not happens and the user stays on the same page with the same values of fields as before. Currently restoration has already launched without waiting for user popup input.

    Thank you

    user,

    sound like
    by default. ADF provide some data behaviors cease. for a page.

    go to drag just component pallate and drop the behoiur into the page.

    here.
    http://lucbors.blogspot.com/2011/01/ADF-11g-PS3-check-uncommitted-data.html
    http://www.Oracle.com/technetwork/developer-tools/ADF/unsaveddatawarning-100139.html
    http://Navaneeth-on-technology.blogspot.com/2011/02/adfjdeveloper-11g-PS3-check-uncommitted.html
    http://www.javaoracleblog.com/Java/New_client_behavior_tag__afcheckUncommittedDataBehavior.JSF
    http://article.feedznow.com/ADF-11g-PS3-check/1721830762.aspx

    Published by: Les on October 2, 2011 22:57

  • Go to the State of the OSM, which is on another page

    Hello

    It is possible to navigate the State of particulat DCL, located on another page?

    N °

  • How to refresh the current page after the return of a contextual dialog box?

    Hello

    In jdev 11.2.3,

    In a jsff page, I have a commandbutton control to start a dialog popup and actionListener like this:

    < af:commandButton text = "Select Bills" id = "cb1" actionListener = "#{newReceiptBean.refreshBillPending}" >

    < af:showPopupBehavior popupId = "p1" / >

    < / af:commandButton >

    or

    < af:commandButton text = "Select Bills" id = "cb1" actionListener = "#{newReceiptBean.refreshBillPending} '"

    action = "#{newReceiptBean.refreshBillPending}" >

    < af:showPopupBehavior popupId = "p1" / >

    But the 'newReceiptBean.refreshBillPending' method can be run even if it can be executed by another button like this:

    < af:commandButton text = "ExecuteWithParams."

    Disabled = "#{!}" bindings. ExecuteWithParams.enabled}"id ="cb3 ".

    action = "#{newReceiptBean.refreshBillPending}" / >

    How to run a bean method, after the return of a pupup dialog box?

    Thank you!

    Post edited by: BAO. SZ It seems after setting showPopupBehvior for the button, 'action', and "actionListener" cannot be performed more. Can someone give any help? Thank you.

    I'm not sure that clearly understand your requirment. But have you all ok or cancel button in your popup?

    Well, you can use diaglogListener in your popup if you use dialog.in your dialoglistener runs your bean method.

    see this example

    Handling Ok and the button cancel in af:dialog to context-sensitive help in Oracle ADF by dialogListener | Techartifact

  • How can I open the "Convert to indexed colors" dialog box with custom presets?

    Hello

    I need to automatically open the "Convert to indexed colors" dialog box in Photoshop. Before and after that I have a few scripts that are running, so it is not possible to open the dialog manually. Also, I want to put some custom presets (like the number of colors, etc.).

    Find something similar to what I want for the color range selection (opens the dialog with the presets you put in that):

    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
      };
    

    How can I get the same thing for the indexed color conversion dialog box? Apart from doing a lot of guessing about the stringIDs.

    Is there some kind of "table of choice" for char and string ID?

    Guys thank you very much in advance! This forum has been a great help on several occasions.

    OK never mind I got it, stupid me.

    He has recorded with Listener Script and changed the "DialogMode" parameter of the function of executeAction "DialogModes.No" at "DialogModes.All".

    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL
    
  • How to set point without the use of fields values in the block of the branch action?

    Well, I'll try to say this in an easy way, isn't weird.

    I created a button, RECORD, which is a branch of the type of management: management of the function return A Page. This is my code for the branch:

    If: P2008_NAP_SUPPORTING_MATERIALS = "Yes" then
    return "2092";
    on the other
    return '2040';
    end if;

    The code for this type of service is stored in the block the ACTION of the direction of the page. The ACTION block for a branch of the type of direction: direction to the function return A Page is different from that of the ACTION block for a branch of type branch: branch Page or URL.

    I need to set some values of point with specific values, which I can do with a type of branch: branch Page or URL. This is not possible with the type of direction: direction of the function return A Page. The ACTION block is totally different.

    How can I set certain values on Page 2040 of 2008 Page say without using field block action of the branch?

    Thank you in advance,
    Maggie

    You must change the Source used to "only,...". "If you want the value passed to use instead of the value of the extraction of the line. However, in case you go to the page and look for the value of line-extraction used, you must pass in a flag of some sort, the presence or the absence of which can report a process header before or calculation to set the item null, allowing the extraction line value to use.

    Scott

  • How calculated the code coverage in unit test infrastructure

    I'm looking for documentation on how the unit test framework calculates code coverage.

    I just recently installed the unit test framework and I had mixed results with the code coverage feature.  I manually calculated all the branch points in my vi, but the framework calculates more that I can think of, which gives a value of code coverage less than stellar (51%).  Is there documentation for how it is calculated?  I'm either missing something fundamental, or there is a bug with the framework.

    My vi consists of a loop (with shift registers) uninitialized which runs once.  On the inside of the loop is a business T/F structure that leads to a listed case structure possible two cases (one of which is the default value)... pretty basic.  Inside one of the structures is a loop and the other is cross.  For some reason, the unit test framework calculates 7 "flags chart run.  I use the method of "external" test harness to call all my test cases for the vi under test, b/c frankly it was easier to use than the UI provided.  I don't know if this is the cause, b/c I saw the other oddities when using it, which I'll save for another thread of discussion.

    Code coverage is calculated by dividing the number of diagrams, code that was executed by the number of diagrams in your VI altogether. Each VI has at least 1 schema (schema-block real). Loops have a single diagram each, case structures and sequences have a single diagram by image and so forth (=> from your description, your VI has at least 7 diagrams). You can double-click the patterns that were not executed in the Unit Test Framework results dialog box to be displayed.

    This approach does not reflect the amount or complexity of the code that contains each diagram. We looked at various ways of counting nodes, terminals, controls, son and other, that would give you a number that reflects your code with more precision. Unfortunately, neither of these approaches gives values that can easily be understood without some knowledge about the inner workings of LabVIEW. We chose to go with a solution that is completely transparent to end users.

    Thank you

    Herbert

  • How to open a pdf file in adobe instead of evernote (basically, how change the open download settings)

    Would like an answer to the question above.

    There is a setting on the preferences page. This article should help you the right dialog box: How to disable the built-in PDF Viewer and use another Viewer. Looking for an option use the Adobe Reader application, which should be separated using the Adobe Acrobat plugin in Firefox.

    Does it work?

Maybe you are looking for

  • External mouse and keyboard do not function correctly on the Satellite Pro C650

    I have problem with my external mouse and an external keyboard. All started about 3 weeks ago. They freeze, jump or a stop, the most annoying is the mouse, I need to plug it back usually. This will work well about 1-5 minutes and once again. Touch Pa

  • B50 30 unknown device driver

    I want to know where I can get a driver for the unknown device on my Lenovo G50 30. He appears in as Device Manager with no driver loaded at all, but I can't seem to find a driver on the net for this device. Anyone else had this problem or knows wher

  • M127-128: my

    I had to reset my laptop after that that it froze during an update.  Once all the apps installed from a disc had been removed.  This includes the driver for my all-in-one M127-128.  I tried to install the driver twice. Both times after receiving inst

  • Impossible scanner with mac os lion with office jet 4500 g510-m

    I am able to install the printer (connected via the network), but I don't get to see the scan tab, as mentioned in many forums or faq on the hp Web site. I've also updated the driver at 2.8 using the apple software update function.

  • BlackBerry smartphones can't keep not fresh and other problems...

    Hello I'm having some trouble with my berry. First, it will not keep its charge.  The battery lasts only 8 hours or more. Second, I can send and receive texts.  Apparently, my ankles have been sent, but I don't much get pins, e-mails, facebook things