ADF viewScope is creating new instance without navigating away from view

Hello,
I'm using JDeveloper version 11.1.1.6.0.
In a Portal application, I'm using view scoped Managed Beans. When I navigate to a page, as expected one instance of the Bean is created. I have dependent selectOneChoice objects inside this page, therefore a partial page refresh is generated when the user chooses a value, a value change listener is called, I read bean variables and do my thing. But here's the catch, a new instance of the Managed Bean is created before the value change listener is called. I have no idea why. According to documentation the viewScope bean should persist until the viewId changes. The end result is I'm screwed trying to read variables that should persist from page load inside this value change listener.
But wait, that's not all. The issue here is the very first partial page refresh (or whatever it should be called). Only the first partial page refresh will cause the creation of a new managed bean instance. Any subsequent ones will not.
So it goes like this:
Page load -> @PostConstruct runs once -> Partial page refresh -> @PostConstruct runs again -> Partial page refresh -> @PostConstruct doesn't run -> Partial page refresh -> @PostConstruct doesn't run...
I'm really at a loss of options here, the @PostConstruct running twice inside the very same view in a viewScope Bean is news to me. But then again, I'm new to ADF so what do I know. I noticed this happens with every viewScope bean in my application, not just this particular one. It just so happens that only in this case this became a problem.
I'm in an all out war against this thing for more than a day now. The internet is my last resort before I make some dumb workaround that will consume me in my sleep. Any help is greatly appreciated.
Edited by: 934172 on Sep 6, 2012 12:35 PM
Edited by: 934172 on Sep 6, 2012 12:36 PM

I'm determined to fix this thing no matter what the hell it takes.
I found out exactly what is happening, even though I'm not sure why it happens. But the important question here is how to fix it.
Here is the first request, the one that happens when I navigate to the page:
http://localhost:7101/teste-Portal-context-root/faces/pages_test?_adf.ctrl-state=18hjxv8lyw_4Here are all the subsequent ones, the ones that happen when I select a choice:
http://localhost:7101/teste-Portal-context-root/faces/oracle/webcenter/portalapp/pages/test.jspx?_adf.ctrl-state=18hjxv8lyw_4It's no wonder the server is confused and creates a new bean instance. Now what the hell? Why are they different? But more importantly, can I fix the first one? Can I force the bean created by the first one to answer for the second one?
I still don't know. But hopefully I'll find out.

Similar Messages

  • How to create new instance of the process from external web apps?

    Hi Everyone,
    How to create a new instance of the process which deploy to the weblogic server from the external web app?
    Thank you.

    Assuming the process includes a message start event, the simplest way is to use Web Service call. Once you've deployed the process you can use Enterprise Manager to get the URL of the WSDL. There's and icon at the top of the composite summary page for getting the WSDL, or you can get it from the test page. Use that WSDL URL to construct the client to use from the web app. If it's an ADF client you can generate either an ADF Data Control or a client proxy.

  • How to Prevent Navigating Away From a Page?

    Hi all,
    I�m developing a JSF application using IBM Rational Application Developer v6.0 and have this scenario:
    Background:
    I have a page that acts as a 3 step wizard. It also contains links to other pages. The page has a corresponding �pagecode� bean with a request scope and another managed bean with a session scope and basically everything happens here, all the action and action listeners. Also this managed bean handles three important events the �page load�, �page load ends�, and �page post�.
    Desired Behavior:
    I want to enforce the user to complete all three steps of the wizard without navigating away from this wizard like page by displaying a message �hey you must complete all three steps� or something like that :).
    Problem:
    The user can click on other links on the page and navigate away from the wizard without completing all three steps.
    Any suggestions to this issue would be of great help.
    Thanks in advance.

    First: how do I change my stupid screen name? :)
    Thanks for your solution. Would this also work for normal html navigation? My understanding that this may only work for the JSF framework navigation rules. On the other hand I also have plain html links on the page and not really sure if the JSF framework also handles these types of navigation.
    This maybe a partial solution though and I really appreciate this.
    Thanks.

  • Can we create Named instance without installing Default instance

    Hi experts,
    i'm new for sql dba,
    Can we create Named instance without installing Default instance
    Thanks in advance.
    Regards,
    Madhu

    Yes you can
    You can also have mutiliple instance in think max (16 instances) for différents versions of SQL server (2000, 2005, 2008 and 2012) in the same physical machine.

  • How to repaint an array of JCheckbox witou creating new instance?

    Can you help me on how I will repaint the array of check box, without creating new instance. When I pressed the refresh Button It will repaint the check box. Anybody who can help me..
    Here's my code. The Comment is the one I need to put the action.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class subok extends javax.swing.JFrame {
        JCheckBox c[] = new JCheckBox[10];
        public subok() {
            initComponents();
            setSize(300,500);
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jPanel1 = new javax.swing.JPanel();
            check();
            refresh = new javax.swing.JButton();
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jPanel1.setLayout(null);
            refresh.setText("Refresh");
            refresh.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    repaintCheckbox(evt);
            jPanel1.add(refresh);
            refresh.setBounds(160, 260, 160, 23);
            getContentPane().add(jPanel1);
            jPanel1.setBounds(0, 0, 400, 300);
            pack();
        }// </editor-fold>                       
        private void repaintCheckbox(java.awt.event.ActionEvent evt) {                              
                // what will I put here???????
                // ANy Help will do....
                // I just want to refresh the checkbox when I pressed this button..
        public void check() {
            boolean s = false;
            int x = 10;
            for(int i = 0; i < 10; i++) {
                c[i] = new JCheckBox();
                c.setText("");
    c[i].setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    c[i].setMargin(new java.awt.Insets(0, 0, 0, 0));
    jPanel1.add(c[i]);
    c[i].setBounds(20, x, 73, 15);
    x += 30;
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new subok().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JPanel jPanel1;
    private javax.swing.JButton refresh;
    // End of variables declaration

    what do you mean by repaint the checkboxes?
    do you mean setting them all to 'unchecked'?
    if so, just loop through your checkbox array c[x].setSelected(false);

  • ORA - 01034 : ORACLE NOT AVAILABLE  Error while creating new instance.

    I was trying to create new instance in unix environment. I have configured all my shell scripts to run and install but while performing the install I get the
    following error message and fails.
    ORA-01034: ORACLE not available
    I have previously installed an instance using same scripts but fails this time when I copy the scripts and modify them in new folder. Pointed out the path in the scripts correctly.
    I am a junior DBA and I would appriciate your help.

    Paste here scripts, your .profile (or environment variables according to Oracle) and your init.ora

  • Able to create new instances in Platform Edition 9.0?

    According to the Platform Edition 9.0 docs http://docs.sun.com/app/docs/doc/819-3662/6n5s9hmtq?a=view , it is possible to create new instances using create-instance command.
    However, I encountered an invalid command error in asadmin when trying to invoke create-instance:
    bash$ ./asadmin
    Use "exit" to exit and "help" for online help.
    asadmin> create-instance
    CLI147 Invalid command, create-instance
    asadmin>I am using Application Server Platform Edition 9.0_01 (build b14)
    SO, are we really able to create new instances in PE 9.0? Thanks in advance for any advice.

    Hi there !
    I don't belive of can perform these tasks on PE.
    The concepts of nodeagents , clusters and other are no present on the Platform edition.
    I also see no way of managing these new instances on the administration console, so ... my guess is it can be done
    Rp

  • "create new layer without dialog"  redefine shortciut

    Hello.
    A want to redefine default shortcut for command "Create new layer without dialog" but i cannot find this command in shortcut preferences.
    In which section of shortcut preferences, in photoshop cs6, nested this command?
    Thanks.

    I don't believe that is a shortcut that can be redefined per se in the shortcut editor, but you could use a script and assign a keyboard shortcut to the script.
    The following script will make a new layer without the dialog.
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc10 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref9 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            ref9.putClass( idLyr );
        desc10.putReference( idnull, ref9 );
    executeAction( idMk, desc10, DialogModes.NO );
    You can copy the above script, paste into Adobe ExtendScript Toolkit CS6 and then save the script to the cs6 Presets>Scripts folder in the photoshop cs6 program/application folder.
    (you can name it whatever you want as long as the extension is .jsx)
    Then when you restart photoshop cs6, it should be listed under File>Scripts and you can use the keyboard shortcut editor to assign a shortcut to the script.
    What operating system are you using?

  • Creating new DMS info record directly from purchase order transactions

    Hello Everybody,
    does anyone knows of a way to make it possible for users to Create New DMS info record directly from the purchase order transactions ?
    e.g:
    in ME22N there is a button of "Documents" for an item level in the order, but that button only allows to link an existing info record.
    Link To a screenshot:
    http://img263.imageshack.us/i/me22n1.jpg/
    Regards,
    Yossi Fridman.

    hi
    This query has already been addressed in the following Forum by Christoph Hopf..
    pls chk link below.
    Create DIR through P.O and Sales order screen
    Thanks
    john
    Edited by: johnpp on Feb 15, 2011 11:54 AM
    Edited by: johnpp on Feb 15, 2011 11:57 AM

  • Unable to find matching navigation case from view ID.  Error 404

    Hi All,
    I basically wanted to jumpstart my ADF exploration so I am following the tutorial at this link. [http://www.oracle.com/technetwork/developer-tools/jdev/ccset22-all-099343.html]
    Everything looks good but when I click the Edit Button, I am encountering an error. What I did was I change the logging mechanism into a FINER in my WLS and from the logs,
    it prints below messages.
    <NavigationHandlerImpl> <getViewId> "JSF1013: Unable to find matching navigation case from view ID '/orders-flow/editOrders' for outcome 'save' and action 'save'
    <ViewHandlerImpl> <executePageToBuildView> About to execute view /orders-flow/editOrders
    <ViewHandlerImpl> <executePageToBuildView> Before dispacthMessage to viewId /orders-flow/editOrders
    <ViewHandlerImpl> <executePageToBuildView> After dispacthMessage to viewId /orders-flow/editOrdersI checked out the taskflow and it is basically calling a task-flow-return component.
    I followed everything but I cant make this example work... Any idea why? I checked out the DB and I notice that it has commited my Edit Transaction but I am getting a 404 on my page. Please help. Thanks.

    Hi Frank,
    I think I got the save control flow case.
    Can you help me check please if I miss something? I uploaded my project at this link. [http://www.4shared.com/file/QFcofTfj/BrowseEditApp.html]
    I am quite not sure if I miss something but I have done this project twice already but got the same result.
    Thanks
    Edited by: Marky on 13.4.2011 5:59

  • Detecting navigation away from a screen

    To play mp3 files in my web application, I've a  simple audio player with play/pause buttons, progress bar, etc. Just the way  VideoPlayer stops playing video when user of the application switches to some  other screen, I would like my audio player to stop playing audio when the user  switches to some other screen. What event can I use to detect that the audio  player (s:VGroup) isn't 'visible'?
    Although this question is framed around stopping an  audio player, the same applies to a situation where user is navigating away from  a form without saving modified data.
    Thanks,
    Dilip

    Hey Dilip,
    You need to include Javascript here. What you need to do is put an event on window.blur and on window.blur call a code of Flex application to make the audio player mute.
    I think that make sense to you still if you have any question let me know.
    Thanks & Regards
    Ankur Arora
    Project Leader(Flash and Flex)
    http://flashdeveloper.blogspot.com
    http://www.ankur-arora.com

  • Can we stop user navigating away from Block in an Error condition?

    Hi all,
    I am writing validation code in custom library attached to an Oracle Form. Is there any way to stop
    the user from navigating away from a Data Block if there is a validation failure?
    Many Thanks,
    Prathima.

    it depends. some triggers fire, before validations are complete, e.g. when-button-pressed. there is also a difference between navigable and non-navigable buttons/items.
    better you check it out by putting messages inside your code.

  • How to create a new instance without XWindows in HP_U 8.1.7

    Can Somebody help me?
    I want to create a new instance in HP-UX 8.1.7 database. There is no Xwindows installed. I think i should do this in SQL plus.
    If so can sombody give my this script.
    thanks

    First get a Telnet session on your platform.
    In the following, foo is the name of the database to be created. Obviously you will replace this in your script names and script contents with the name of the database you are about to create.
    The values of parameters, filenames, distribution of files across filesystems, numbers and sizes of rollback segments and redo logs contained in these scripts should not be considered to be "recommended" in any way. These are just examples to demonstrate syntax. (Although the values given here will create a perfectly viable database.)
    create_db_foo.sql
    create database foo
    maxlogfiles 16
    maxlogmembers 3
    maxdatafiles 30
    maxinstances 1
    maxloghistory 100
    logfile
    group 1 (
    '/local/oracle/redo_logs/foo/log1a.rdo',
    '/local/oracle/redo_logs/foo/log1b.rdo'
    ) size 50M,
    group 2 (
    '/local/oracle/redo_logs/foo/log2a.rdo',
    '/local/oracle/redo_logs/foo/log2b.rdo'
    ) size 50M,
    group 3 (
    '/local/oracle/redo_logs/foo/log3a.rdo',
    '/local/oracle/redo_logs/foo/log3b.rdo'
    ) size 50M
    datafile
    '/local/oracle/data/foo/system.dbf' size 300m;
    create_ts_foo.sql
    create tablespace DATA
    datafile '/local/oracle/data/foo/data1.dbf' size 200m;
    create tablespace TEMP
    datafile '/local/oracle/data/foo/temp1.dbf' size 100m;
    create tablespace INDEXES
    datafile '/local/oracle/data/foo/indexes1.dbf' size 100m;
    create tablespace ROLLBACK_SEGS
    datafile '/local/oracle/data/foo/rbs.dbf' size 50m;
    create_rbs_foo.sql
    create rollback segment rbs_1
    tablespace rollback_segs
    storage (initial 1M next 1M
    minextents 5 maxextents unlimited
    create rollback segment rbs_2
    tablespace rollback_segs
    storage (initial 1M next 1M
    minextents 5 maxextents unlimited
    create rollback segment rbs_3
    tablespace rollback_segs
    storage (initial 1M next 1M
    minextents 5 maxextents unlimited
    create rollback segment rbs_4
    tablespace rollback_segs
    storage (initial 1M next 1M
    minextents 5 maxextents unlimited

  • Windows 64-Bit Oracle DBCA creating new Instance ORA-27102: out of memory

    Wondering has anyone encountered this?
    We are running Oracle 10 R2 running on Windows Server 2003 ( This database is on a 64-bit Platform)
    Memory capacity is 16 GB on the server.
    We are using DBCA to streamline db creation of the new “EDR” DB instance – here are a few different attempts we’ve done:
    (all have failed )
    FYI - during this installation we’ve monitored the memory allocation/usage of the Windows Server and there
    was about 13-14 GB Free
    The existing instance takes up less than 4GB of space.
    We tried following:
    1. Allocating 8GB of Memory to new EDR Instance without shutting down other Oracle Instance.
    2. Allocating 8GB of Memory to new EDR Instance and shutting down other Oracle Instance
    3. Rebooted Server keeping other oracle instance shutdown.
    4. After Reboot Allocated 8GB to new EDR Instance
    5. Attempted allocating less memory 2GB to new EDR instance
    6. Early this morning we also tried omitting backup scheduling as part of configuration for DBCA
    for that instance.
    Each time we received error in DBCA GUI during DB Creation at 2% completion
    ORA-27102: out of memory
    oraclehome\product\10.2.0\db_1\cfgtoollogs\dbca\EDR
    (cloneRmanRestore.log) first set of file created. (along with a RmanRestoreDatafile.sql, which failed (see log below)
    then halted install/creation of DB
    ORA-27102: out of memory
    OSD-00025: additional error information
    O/S-Error: (OS 1453) Insufficient quota to complete the requested service.
    select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    O/S-Error: (OS 1453) Insufficient quota to complete the requested service.
    select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
    ERROR at line 1:
    ORA-01034: ORACLE not available
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information
    ORA-27102: out of memory
    OSD-00025: additional error information

    After much effort it was discovered it was a setting during the installation of a parameter which caused this error. Using the TEMPLATE to create a new instance, you can setup parameters
    LOCK_SGA = TRUE
    causes this error. In addition if in our situation, even if we did not use the "template" created a barebones DB instance. Once the parameter is updated in SQL*Plus it will cause the datbase to be in a in operable state.
    You can start it up with a PFILE to fix it, In windows it required modifying the registry to FORCE the PFILE to load, by running on the commandline to use the PFILE it failed.
    Hope this helps someone in the future..
    ON WINDOWS DONT USE
    LOCK_SGA = TRUE
    It may work fine for Unix/LINUX OS? But in our current config it had problems.

  • Can't create new account without a credit card?

    I recently made a brand new Apple ID for the iCloud and because my old ID was years old and I don't even use the email address it was registered on. Registering it went fine. But now that I want to update some of my apps via the iTunes store, it says I can't verify my new account without credit card information. I don't have a credit card at this time. I do plan on getting one soon, but until then I'd like to be able to update my apps, use iTunes cards, and download free podcasts with my new account. Is it possible to get my new account up and running without credit card info?

    I think you can create an Apple ID without credit card
    http://support.apple.com/kb/ht2534

Maybe you are looking for