question on the example of ADF Code corner: 007-how to cancel an edit form

Hi all
I'm testing the example * 007.How to cancel a modification form, cancelling the changes with ADFm recording points * in the oracle ADF code corner. I downloaded * 07-application manualtaskflowsavepoints *.
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html
everything goes well. But in my case I need the user to stay on the same page after he Cancel button clicks. then in the file config.xml adfc I changed only the case of control flow
<control-flow-case>
 <from-outcome>return</from-outcome>
 <to-activity-id>Browse</to-activity-id>
</control-flow-case>
This one
     
<control-flow-case>
 <from-outcome>return</from-outcome>
 <to-activity-id>Edit</to-activity-id>
</control-flow-case>
However. When I run the application and click on the edit button, I have changed a few fields on the Edit page, then press the Cancel button, nothing happen and undo changes is not performed.
Why restorePoint does not work as it is supposed to be if we do not have navigate to another page?

Hello

This is because the button cancel a immediate = "true" game, which bypasses the update model phase. To see the changes, you will need to re-run the iterator of the form explicitly and then refresh it partially. You don't need to do this, when you navigate to the page of the browser, because when the page loads, the lifecycle ADF will ensure that the iterator is updated. A test, you can set immediately = 'false', in which case the redirect must display the changed data.

Frank

Tags: Java

Similar Questions

  • Broken link - ADF Code corner

    Virtually all of the links on this page redirects you to the homepage of jDeveloper.

    Thank you
    Michelle

    You will notice that the content is not quite the same, but as it was on the old page. I'm still being the complete ADF Code corner documents migrated to a new format of PDF.

    ...
    >
    and

    My current plan is to make the new searchable document by time formats OQ the middle of September.

    ...>

    So I guess you'll have to wait :-(

    Timo

  • Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    AdobeTomFaith

    If your program is Photoshop Elements, then you have posted in the wrong forum. Some how your son got posted in the Forum Adobe Premiere elements (video editing). Please re-post your thread in the Adobe Photoshop elements Forum.

    Photoshop Elements

    Wherever your son is, please include Adobe Photoshop Elements version and operating system and the description of the installation problem (error messages, stage of failure, etc.)

    Support Adobe seems to be limited to Adobe cat and is classically limited to the current version which is 13. Then, you the best avenue to success is likely to be through the Adobe Photoshop elements Forum. But that shouldn't stop you trying to determine what kind of support you can get from Adobe cat on your question.

    I would offer this link that is specific for Adobe Chat download and installation

    Contact the customer service (this is not the same destination as shown in a previous post in your thread)

    This link is specifically designed for

    Photoshop Elements

    Download, installation, setting up

    Download and installation

    Panel discussion

    (18:00 - Friday 7 pm Sunday)

    Thank you.

    RTA

  • Questions regarding the installation of key code

    I was helping a friend with his computer. She bought a computer to measure with Widows XP installed on it, a store of the local computer, about three months ago. She got big virus on his computer. If she needs to format and reinstall Windows XP.
    She did not have a sticker with a code on his computer from the store of the local computer. She won't pay hundreds of dollars just to get xp installed.

    Question #1: Must the machine store provide stickers key code when window selling?

    Question # 2, she had the sticker with a code, it could install it with a normal drive in Widows XP Home Edition using his key code?

    I was helping a friend with his computer. She bought a computer to measure with Widows XP installed on it, a store of the local computer, about three months ago. She got big virus on his computer. If she needs to format and reinstall Windows XP.
    She did not have a sticker with a code on his computer from the store of the local computer. She won't pay hundreds of dollars just to get xp installed.

    Question #1: Must the machine store provide stickers key code when window selling?

    Question # 2, she had the sticker with a code, it could install it with a normal drive in Widows XP Home Edition using his key code?

    I'd be very suspicious of any Windows installation where the seller has NOT provided a product key.
    There are utilities that will tell you what the product key is a copy installed Windows.
    This is what I use:
    http://www.Belarc.com/free_download.html
    You must go back to the store and query why there was no product key...

  • ADF Code corner 64 - select several shuttles. Help, please

    Hi all.

    I have exactly the same case as described in the Code corner 64.
    The only difference is the name of VO and iterators.

    The value of the arrived of the shuttle piece of code below:
        public Integer[] getSelectedIndxs() {
            selectedIndxs = null;
            selectedIndxList = new ArrayList<Integer>();
            
            //get all enterprise role for the current selected user role
            DCIteratorBinding aclDciter = ADFUtils.findIterator("ACLvo1Iterator");
            RowSetIterator rsi = aclDciter.getRowSetIterator();
           
            //get access to the "EnterpriseRolesVOIterator"
            DCIteratorBinding enterpriseRolesIter = ADFUtils.findIterator("EnterpriseRolesVOIterator");
            
            while(rsi.hasNext()){
    
                //Get the key of enterprise role of the ACL
                Row rw = rsi.next();
                Key key = new Key(new Object[] { (String)rw.getAttribute("EnterpriseRolesId") });
                
                enterpriseRolesIter.setCurrentRowWithKey(key.toStringFormat(true));
    
                int indx = enterpriseRolesIter.getCurrentRowIndexInRange();
                selectedIndxList.add(indx);
            }
    
            selectedIndxs = selectedIndxList.toArray(new Integer[selectedIndxList.size()]);
            return selectedIndxs;
        }
    The value of "indx" looks good in the debugger.
    I also print a list of all of the table at the end and looks very good.

    The problem is that I get:
    * < SimpleSelectManyRenderer > < _getSelectedItems > found no value: 12 type: java.lang.Integer among the list of the SelectItems
    * < SimpleSelectManyRenderer > < _getSelectedItems > found no value: 13 type: java.lang.Integer among the list of the SelectItems
    * < SimpleSelectManyRenderer > < _getSelectedItems > found no value: 10 type: java.lang.Integer among the list of the SelectItems
    * < SimpleSelectManyRenderer > < _getSelectedItems > found no value: 11 type: java.lang.Integer among the list of the SelectItems
    etc...

    If anyone has AN idea please let me know. I'm going nuts with this...

    Thank you very much! I really appreciate

    Published by: apostolosk on March 15, 2012 12:06

    Finally, the error was the return index. I should had returned the values - not the index.

            ArrayList selectedValues = new ArrayList();
    
            //get all enterprise role for the current selected user role              //DCIteratorBinding aclDciter = (DCIteratorBinding)bindings.get("ACLvo1Iterator");
            DCIteratorBinding aclDciter = ADFUtils.findIterator("ACLvo1Iterator");
            aclDciter.executeQuery();
            RowSetIterator rsi = aclDciter.getRowSetIterator();
    
            Row[] rw1 = rsi.getAllRowsInRange();
            for (Row rowa : rw1){
            System.out.println("display row" + rowa.getAttribute("EnterpriseRolesId"));
                selectedValues.add((String)rowa.getAttribute("EnterpriseRolesId"));
            }
    
            return selectedValues.toArray(new String[selectedValues.size()]);
    

    Thank you very much.

  • Stupid question for the example of ColorfulCircles work

    I don't know that I missed something stupid, but hell if I can find it. I'm trying to learn a bit about the use of JavaFX 2.0, because I intend to use it heavily in a project in the coming months. I develop in Eclipse, and when I try the example of ColorfulCircles on the Oracle website, I get an error, the statement that Stage.setVisable is not defined. I added the external jfxrt.jar, and all other lines of code using classes and methods of JavaFX 2.0 compiles correctly. He suggested that even other methods of scene I could try (even if they are not good suggestions). Am I missing something obvious, or is the outdated tutorial example? Thank you!
    -Jean
    stage.setVisible(true) 
    

    is replaced by

     stage.show() 
    

    http://blogs.Oracle.com/thejavatutorials/entry/changes_in_build_42_that

  • ADF Code corner #50 - tree selection listener Table do not save the State of the

    Hello world

    With the help of JDev Studio Edition Version 11.1.1.3.0

    I have a table of tree using the earphone generic selection based on the excellent article by Frank Nimphius during synchronization of forms for entries of tree node edit. http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/50-synchromize-form-TreeSelection-169192.PDF

    My problem:

    My selectedNodeRowKey and selectedNodeRowIterator variables are turning to null out the listener.

    Process and code:

    I select a node. It called the selection event of onTreeSelect, which in turn saves the node key and the iterator in the same support bean backingBeanScope value.
          DCIteratorBinding _treeIteratorBinding = null;
          _treeIteratorBinding = treeBinding.getDCIteratorBinding();
    //Frank's code above ...
    
          this.selectedNodeRowKey = nodeBinding.getRowKey();
          for (Object opaqueFacesKey: treeTable.getSelectedRowKeys())
          {
            treeTable.setRowKey(opaqueFacesKey);
            this.selectedNodeRowIterator =
                ((JUCtrlHierNodeBinding) treeTable.getRowData()).getRowIterator();
          }
    
          System.out.println();
          System.out.println("Update Key: " + this.selectedNodeRowKey);
          System.out.println("Update Ite: " + this.selectedNodeRowIterator);
    
    //Frank's code resumes ...
          Row[] found =
            this.selectedNodeRowIterator.findByKey(this.selectedNodeRowKey, 1);
    Then, I click on a button that calls an actionListener in the same bean support.
      public void onButtonRemove(ActionEvent actionEvent)
      {
        System.out.println("Remove button pressed.");
    
        BindingContainer bindings = getBindings();
    
        System.out.println(this.selectedNodeRowKey);
        System.out.println(this.selectedNodeRowIterator);
    
        OperationBinding operationBinding =
          bindings.getOperationBinding("deleteChildren");
        operationBinding.execute();
        System.out.println("Remove complete");
      }
    This gives me the result
    Update Key: oracle.jbo.Key[112 ]
    Update Ite: oracle.jbo.server.ViewRowSetImpl@aa641d
    bos.model.queries.TbomView
    
    Remove button pressed.
    null
    null
    Remove complete
    What happened to my values and node iterator? I guess it has something to do with a scope or something similar to C++ through reference instead of the value. The strange thing is, the default MakeCurrent onSelection the auditor's work, but use this generic listener and values change.

    Published by: LovettWB on December 21, 2010 14:51

    Hello

    You can try setting the bean to the session scope? I guess it works, which brings me to my main point. If the managed bean is used in a stubborn workflow (which I assume you are referring to the use of fragments of page jsff), make sure that it is also defined in the workflow definition and not adfc-config. Personally, I like to feel it is best to set the bean managed in the metadata scopes, in which it is used. So could already solve the problem

    Frank

  • A question on the example of RIM splashSreen

    I noticed that thatUiApplication.getUIApplication () is passed to the SplashScreen() constructor.

    Public SplashScreen (UiApplication ui, the next screen) { }

    now, as the SplashScreen object is part of the same application, and there is only a single user interface by app, why it is passed in the constructor rather than simply having the GET SplashScreen() with the static method as follows:

    protected static UiApplication applications = UiApplication.getUiApplication ();

    within the SplashScreen class?  Does not seem necessary to pass, and he created and additional variable.  I have coded this way and know it works both ways, but I wonder why that was the sign chosen decision.

    Is interesting, if I 'chain' splash screens derived an abstract SplashScreen that uses approach 'get it internally', the first in the chain works, but the second call of the first winds with a UiApplication that has the value zero, and this results in an exception.  This makes me believe that I do not understand the underlying infrastructure.

    Patrick

    UiApplication.getUiApplication returns an instance of the current application in the foreground.  If it is called when the application is in the background, it will not receive the appropriate UiApplication and sample might fail.  Having a developer put it in to ensure that the value is valid.

  • Questions regarding the process of implementing container/control. How "parent of filling" and how to get the actual size of the control?

    I'm writing some UI component custom waterfalls. I went if the document several times and still have two questions:

    1. is it possible to adjust the width of the control to fill the container parent without specifying the number hardcoded in pixel? I see many example of code uses '768' as hardcoded width.

    2. I understand that the 'preferred size' could be ignored in some cases. Is it possible that I can get the actual size of the control on the screen programmatically?

    3. is there any signal was issued when a control container/finish covering all of its child nodes? How do I know what size of a control is finally decided?

    Thank you

    mdodd wrote:

    (1) you can use (QML)

    horizontalAlignment: HorizontalAlignment.Fill
    

    or (C++)

    myControl->setHorizontalAlignment(HorizontalAlignment::Fill);
    

    This will cause control occupy the entire width available to its parent. However, keep in mind you may have to use this property on all containers of parent to the node root to get the width of the full screen.

    As far as I KNOW simon_hain is located on the other two issues.

    ((2) & (3) I just dug around and you find LayoutUpdateHandler would do the job:

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__layoutupdatehandler.html

    mdodd answer on question 1) is correct.

    I can't believe they made a separate category for such a common task. Framework of stunts have had some serious consistency problems, that's what I feel.

    Thanks to all who have contributed to

  • my computer windows vista cannot install Mcafee because of the Java script error, code 0x80004005. How to solve this problem?

    When I install Mcafee, the error come out, can not install... Make sure you only if your PC has JAVA script. error code: 0x80004005, HOW t ofix it?

    Which version of Java should I download for my system to Windows 64-bit operating?
    http://www.Java.com/en/download/FAQ/java_win64bit.XML

    Installation of Java
    http://Java.com/en/download/help/index_installing.XML?user_os=Windows%207

    If you are using:

    * 32 - bit Internet Explore (IE), you need to download Java 32 bits (check the browser)
    * 64 - bit IE, you need to download Java 64 bit (check the browser)
    * 32-bit and 64-bit, IE you have to download 32-bit and 64-bit Java respectively

    64-bit operating system Windows comes with browsers Internet Explorer (IE) 32-bit and 64-bit. 32-bit IE comes by default. There are different versions of Java software available for download depending on whether you are using THE 32-bit or 64-bit browsers.

    Please note that the 64-bit Java is presented as a download option automatically for users of Internet Explorer 64-bit, as this is the only officially available for Windows 64-bit browser.

    Note: Java is updated on a frequent basis, you can expect to see a Java update notification in the bar from time to time.

    J W Stuart: http://www.pagestart.com

  • [ADF, JDev12.1.3] ReadOnly af:table via edit form: why it is not refresh after insert/change?

    Hallo,

    in a tab, I have an af:table readonly manipulated by a form (as long as they are created from the same distance VO).

    The shape is a btf used as dialog box.

    The problem is that when the dialog box is closed the display: table isn't refresh.

    To see the update I need for example to change tab and re - enter the tab.

    In a previous thread Timo told me that maybe I need to update the iterator of FY: table.

    I opened this new topic because I'd like to understand who is safe and recommended to make way.

    The code handles the bean home dialog box 'appeal' is...

      public void onEditEmplFormReturn(ReturnEvent returnEvent) {
        Object confirmOrCancel = returnEvent.getReturnValue();
        if (((String) confirmOrCancel).equals("cancel")) {
          BindingsUtils.restoreAdfmSavePoint("EmployeesSavePoint");
        }
        else {
          // Code to refresh the table/iterator
        }
      }
    

    How can I fill it?

    Thank you

    Federico

    You can link your bean table or get it from ViewRoot by id, and then use: AdfFacesContext.getCurrentInstance () .addPartialTarget (yourTableComponent);

    Dario

  • Facing the question with the operation of CreateWithParams

    Hello

    I use Jdeveloper 11 g (11.1.2.1.0). My requirement is duplicated a few column values of the above line.

    I created ADF Table and used the CreateWithParams of the operation. It works. But the question is, always, is to copy the values from the first row of the table and it is to insert the new record at the beginning of the Table of the ADF.

    I want to duplicate the value of the current record position and insert the folder just below.

    I spoke * [ADF Code corner 013. How to declaratively create new rows in the table based on the existing line content | http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/13-create-with-params-169140.PDF] * steps. All of the suggestions.


    Concerning
    Surendra

    Hello

    + 1. As soon as the new record is created, the validation is going to get fired. He started the error message saying DeparmentID value is required. How to stop this. +

    If the attribute is required, then it must be provided. You cannot create a folder without providing the required attributes. He would miss at least when persistent change in the database

    + 2. The new line is be created above the currently selected line. How do I create the line below the currently selected line. +

    To insert the line at a specific position have a peek here, which adds the row to the end

    http://adfbugs.blogspot.de/2010/04/inserting-new-rows-as-last-row-of-table.html

    In your case - you use CreateWithParams, you need get the current line, then create your new line, remove the new line (as it is inserted in the wrong place) and then add back a rank after the current. Indeed, it is easier to achieve if you manually created the line. However, its possible

    Frank

  • ADF Code Corder 42: by using a &lt; af:poll &gt; with an Application Module

    Hi all

    With the help of JDev 11.1.2.3.0.

    I worked to solve this puzzle for a while.  I'm trying to implement a simplified version of the ADF Code corner #42 (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/42-progressbarcolor-169184.pdf)

    The thing is that my 'business ' service is running in my module of the application.  In short, I take 10,000 rows to view object and run through a few different algorithms.  It would be nice to give a report during this operation.  However, as soon as I start my method of request module, my component < af:poll > end, refusing to update the current page.

    I watched a lot of sites tutorials to try to solve this problem.  I try to stay within the limits of the ADF Essentials which means no ADVERTISING, only of the poll.  Here are some of the best references:

    GEBS | Oracle Fusion Middleware 11g ADF progress indicator

    Refresh the page periodically by using survey components |

    Their service 'business' in the managed bean and the other simply re - runs a page runs a view object.  I can't find a site that will their own business service and surveys it.  Here's what I have:

    Application module

        private long uploadStatus;
    
    
        public void doUpload() {
            long max = this.getMaximum();
            for(this.uploadStatus = 0; this.uploadStatus <= max ; this.uploadStatus += 500){
                System.out.println("@ " + this.uploadStatus);
                try {
                    TimeUnit.SECONDS.sleep(1);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            System.out.println("Upload Complete");
        }
    
        public long getStatus(){
            return this.uploadStatus;
        }
    
        public long getMaximum(){
            return 10000;
        }
    

    Backing Bean

    public class ProgressBarModel extends BoundedRangeModel {
    
        private long max;
        private long status;
    
        Thread newProgress = null;
    
        public ProgressBarModel() {
            this.getMaximum();
            this.getValue();
        }
    
        @Override
        public long getMaximum() {
            // Not best practice. Should get through page def method operation
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModule("AppModuleDataControl");
            this.max = am.getMaximum();
            return this.max;
        }
    
        @Override
        public long getValue() {
            System.out.println("polling ...");
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModule("AppModuleDataControl");
            this.status = am.getStatus();
            return this.status;
        }
    
        public void doUpload(ActionEvent actionEvent) {
            if (newProgress != null) {
                newProgress.interrupt();
            }
    
            ProgressUpdater progressSimulator = new ProgressUpdater();
            newProgress = new Thread(progressSimulator);
            newProgress.run();
    
        }
    
        public void stopUpload() {
            newProgress.interrupt();
            newProgress = null;
        }
    
        class ProgressUpdater implements Runnable {
            public void run() {
                AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModule("AppModuleDataControl");
                am.doUpload();
            }
        }
    
        public long getPercentageUploaded() {
            long state = this.status * 10 / 10000;
            if(state >= 100){
                this.stopUpload();
            }
            return this.status * 100 / 10000;
        }
    }
    

    JSPX

    <af:panelFormLayout id="pfl1">
                                    <af:poll id="pollid" interval="1000"/>
                                    <af:outputFormatted value="#{MyProgressRangeModel.percentageUploaded}% completed"
                                                        id="of1" partialTriggers="pollid"/>
                                    <af:commandToolbarButton actionListener="#{MyProgressRangeModel.doUpload}" text="Run"
                                                            id="ctb1"/>
    </af:panelFormLayout>
    

    Give me the result

    polling ...
    polling ...
    polling ...
    @ 0
    @ 500
    @ 1000
    @ 1500
    @ 2000
    @ 2500
    @ 3000
    .... // up to 10000
    Upload Complete
    polling ...
    polling ...
    

    How can I get the survey allows you to control when the method of the module of an application is running?  Use more than one module app, for inclusion in the database and the other for monitoring?

    Thank you

    Will be

    I went with that instead

    How I finally reached updates to asynchronous UI with WebSockets and JMS

  • Person to contact with questions about the presentation of the app world

    If I have a question about the app that I submitted, anyone knows how do I contact someone about this? I can't find anything on the site and respond to notification emails gets me nowhere.

    Hey miss breeder,.

    that will be tough. If you browse the App World his hell out there because of the new development forums and people have a lot of problems with it. I've read people were emailing RIM all week and no responses were received. But if you post a question here MShom (one of the moderators) usually responds in a timely. The support email is [email protected] I believe. Good luck!

  • How to cancel the screen lock code?

    I have the screen when I put the email with the exchange of creat mode

    But how to cancel the lock code after I remove e-mail account

    When slected off the coast, it will prompt you for a password/PIN confirm?  Try this:

    1. turn off.

    2. close the card and don't do anything else.

    3. immediately cut off the phone, press and hold the power button for the option.

    4 turn it back on.

    Rotates the screen and the promp password once again yet?  If so, the next step is to partial erasure options reset the device by going to the tap and info on the device.

Maybe you are looking for

  • Accessories HomeKit does not at home, but work outside.

    Hello I recently got a new Signal of Hunter ceiling fan, which is one of the first active HomeKit fans. I went through the installer on my iPhone 7 more for the fan about 20 times. Each time, installation works and the fan is controllable for about 1

  • Re install OSX / lost iWork free version

    Hello! I re install my OSX version but I have no more iWork on it... When I want to install from the appstore, I pay... How can I get iWork back get for free? Thank you!

  • Satellite M100 afterwards boot

    When I turn on the laptop, the display of tobshiba logo and the frozn, then I press the ESC key and see ram count. After that I couldn't see F2 and F8 option. I tried F2, but cannot get into Setup and I tried F8 does not. What should I do?

  • Messages sent from one account comes back as another

    People: I recently moved to 10.9 after many years to 10.6... I have multiple e-mail accounts set up in the two [I have a triple boot MBPro 09]... but lately spend most of my time to 10.9.  A number of times where I got Mail highlighted in my account

  • 10 min for the T500 startup delay

    I installed the updates using the update of the thinkvantage Toolbox and now it takes up to 10 minutes or more at startup hoe can I fix it. diag says everything is fine!