[ADF, JDev12.1.3] viewScope bean can not recover sessionScope bean. Why? (How to day uploading of a session bean scope whenever a page with params is called)

Hallo,

to the login page of my application, I created a viewScope managed bean loginView.

In the login page, I put a "dummy" inputText (whose value is related to dummyInitEditValue bean attr) to perform lazy loading of the page itself.

In the initData() function I call a function of a bean sessionScope connection which should initlialize some of its attributes.

public class LoginView {
  private Integer dummyInitEditValue;

  public LoginView() {
  }

  private void initData() {
    Login loginBean = (Login) FacesUtils.getManagedBeanInSession("login"); // loginBean = null !!!
    loginBean.initData();
    dummyInitEditValue = 1;
  }

  public void setDummyInitEditValue(Integer dummyInitEditValue) {
    this.dummyInitEditValue = dummyInitEditValue;
  }

  public Integer getDummyInitEditValue() {
    // Per lazy loading
    if (dummyInitEditValue == null)
      initData();
    return dummyInitEditValue;
  }
}


The problem is that the initData() rises a null pointer exception because the bean connection is not found.

What's not in my approach?

I create this hoping to resolve this issue: the login page has 2 URL parameters (defined in his point of view in the config.xml file - adfc) and I have according to them I need to update some of the bean sessionScope uploading connection every time the page is called / refreshes (possibly with new values for the parameters).

BdW I do not know if there is a better alternative you can advice me.

Thank you

Federico

Well, you need to instantiate bean connection somehow.

You can try to link an attribute of connection bean to the page and see if this will help or you can try to resolve expression programmatically (something like #{connection}).

Or you can try adding session bean defined as managed property for your bean view extended (something like this: http://umeshagarwal24.blogspot.ba/2012/09/using-managed-property-to-evaluate.html).

Dario

Tags: Java

Similar Questions

  • My forum ID is connected to my Apple ID email, but when I log in to the forum with my Apple ID email, I get an error and can not reach the forum. How do I merge my accounts so my Apple sign-in ID is working again?

    My forum ID is connected to my Apple ID email, but when I log in to the forum with my Apple ID email, I get an error and can not reach the forum. How do I merge my accounts so my Apple sign-in ID is working again?

    Apple ID cannot be merged. We'll see if we can get to the bottom of your connection error...

    Tell us step by step, in detail what your actions.

    Tell us a story

    -with a beginning, middle and end. We need to figure out what you know and that you have lived.

    If this problem is new, tell us what immediately preceded its appearance - add software, upgrade or update? New equipment?

    Quoted by of Apple  'how to write a good question.

    To help other members in answering your question, give as much detail as possible.

    • Include your name (peripheral) product and specifications such as the speed of the processor, memory and storage capacity. Please do not include your serial number, IMEI, MEID or any other personal information.
    • Provide the version of your operating system and the relevant applications numbers, e.g. "OS X 10.4.11" or "Safari 4.1.3.
    • Describe the problem and include all the Details on what seems to make it.
    • The list of troubleshooting steps you have already tried, or temporary corrections that you discovered.

    For a detailed 'coaching', please see usage tips , help us help you on these forums and wrote an effective communities of Apple Support question

    "Keep it short and Simple"-take your time... but be thorough - CCC

  • I can not get connected. I log in ID w/microsoft and takes me to a sales page.

    I signed originally as AuntiM4.  I forgot my password then click on "forgotten password".  Went to the email, obtained the temporary code.  Copied and pasted into the password space and still get "incorrect password".  This is what was sent to me.

    If I sign with my identifier Microsoft I takes me to a page with no. where to go but home sales or support.  I was still not able to connect to this program.

    information from the other thread:

    Title:

    I can not get connected. I log in ID w/microsoft and takes me to a sales page.

    thread Description:

    In addition, my Skype name is passed to AuntiM4 somehow live: rosysdtr so I really don't know what password has been used. There is no change.

    Hello Marilyn,.

    Welcome to the Microsoft community!

    You cannot access the AuntiM4, get the message incorrect password and when you try to connect with Microsoft ID, you are redirected to another page.

    The problem may occur if there is a malicious content or if the hosts file is damaged.

    1. the problem occur only when you access the AuntiM4?

    2 did you do changes on the computer before the show?

    To check if the problem is due to malicious content or corruption of the hosts file, I suggest you follow the mentioned steps:

    Method 1:

    See the site:

    Difficulty of your web browser hijacked

    http://www.Microsoft.com/security/PC-security/browser-hijacking.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Warning: him reset Internet Explorer settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Method 2: Reset the Hosts file

     

    See the site:

    How can I reset the default Hosts file?

    http://support.Microsoft.com/kb/972034

    Method 3: Scan the computer to remove all possible malicious content

    See the site:

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    I hope this helps. If the problem persists, or if you have problems of Windows in the future, let us know and we would be happy to help you.

  • Since I set up Windows Vista, I can not close Windows Navigator. How do you turn it off?

    Since I set up Windows Vista, I can not close Windows Navigator. How do you turn it off?

    Hi, BillMarrale,

    Are you referring to the Windows Narrator?

    Go to control panel > accessibility > Ease of Access Center > explore all settings > use the computer without a display > untick the checkbox on Narrator byTurn > click Save...

  • "HP ToolboxFX has encountered an error and can not recover" for 1415fnw Pro Laser color MFP.

    1 HP Laser Pro 1415fnw color MFP

    2. Windows 7 Pro 64-bit.

    3. "HP ToolboxFX has encountered an error and can not recover.  Please restart HP ToolboxFX, or re-start your PC. You will not be able to receive alert messages, or use other features of HP ToolboxFX until HP ToolboxFX has been restarted.  Windows version: Win32NT - 6.1.7601.65536.  "HP ToolboxFX version: 006.015.01163.

    4. message only started appearing after that I installed and uninstalled after a Vodafone 3 G USB modem.  Then, I uninstalled and reinstalled the HP software to try to solve this problem, but the message persists.

    Hello

    I'm a little confused, you asked if you were able to solve my problem, but I have no record of all the proposed solutions from anyone at HP.

    I seem to have solved the problem by changing the compatibility of the executable for Windows NT 4.0.

  • I downloaded Photoshop elements 14 for Mac, but I can not install in Spanish. How can I do?

    I downloaded Photoshop elements 14 for Mac, but I can not install in Spanish. How can I do?

    How to change the language of Photoshop elements - YouTube

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Im trying to install my first than Pro CS4, the first disc installs fine but the 2nd disc refuses to install. I have searched a downloadable version, but can not find a. any ideas how I can actually complete installation?

    Im trying to install my first than Pro CS4, the first disc installs fine but the 2nd disc refuses to install. I have searched a downloadable version, but can not find a. any ideas how I can actually complete installation?

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

    - and also read https://forums.adobe.com/thread/1146459

  • Why can not download adobe CC? I click on 'buy now' and it takes me to a page that says "Please come back later", but your site status says it should work normally

    Why can not download adobe CC? I click on 'buy now' and it takes me to a page that says "Please come back later", but your site status says it should work normally

    Hello

    Use the following link to download the creative cloud app

    https://creative.Adobe.com/products/creative-cloud

  • Can not verify the account to download the free app Always get "Session Timed Out" message.

    Can not verify the account to download for free enter or just about always "Session Timed Out" message.

    Please describe in more detail what you are doing, and when it fails.

    Do you use any type of VPN or RAM to access resources outside of your region?

    Are you connected to WiFi when you do?

  • When I go to check your e-mail, page says: "offline currently Firefox, can not surf the net. How can I fix it?

    Page comes uo indicating: FIREFOX IS CURRENTLY offline, can NOT BROWSE NET.

    I have to keep Restarting Mac desktop to be able to get on  website I want.........
    

    How can I solve this problem?

    In the menu FILE uncheck Workoffline, exit firefox and restart it.

    Thank you

  • Can not recover my laptop using created recovery disks

    My hard drive crashed, I sent it to the warranty. She came back, but I wanted to reinstall.
    Before that, I did 4 recovery disks.

    Thus, when the laptop turned on DISC 1 was in and I could choose Windows 64, after a while he told me to put in the next disc. I did but no progress. I tried all the disks and none of them worked.

    How should I proceed from here?

    Unfortunately you can not force the installation of recovery to work. Either it works or not.
    Are you using these discs for the first time now?

    By the way: what model of laptop do you have?

  • Can not recover the Windows 7 desktop after replacing the hard drive

    I bought a new HP Pavillion Elite (HPE-240f) in August 2010. A week ago my hard drive has no SMART short self-test during systematic hardware diagnostics. I installed a new hard drive of the same size - 1 TB and could never make it work properly. I tried the following (in that order).

    1. using a system repair disc, I got the system from a previous image (which I did shortly after the purchase, install my own software and configuration of all). It worked, but then I noticed that Windows Update was not working. I ran various Microsoft diagnostic tools and discovered that some (unspecified) system files have been damaged or missing. All the fixes I tried didn't work. I ran hardware diagnostics extended, but no problem not found.

    2. I tried to restore the system to the default settings by using the original image on the D partition. At first it seemed to work, but at the last moment when the system started, I saw a message on the screen that Setup is starting services and then got a warning saying that services failed because of (unspecified) problems with hardware.

    3. I tried to restore the system from the system recovery discs and a message "system recovery disks do not support this computer."

    4. I found this Cyberlink utility on the HP website, dealing with precisely this issue. I created a CD tried and it didn't work.

    5. I found this document on the HP Web site, saying that if you are replacing a hard drive with sectors of 512 bytes with a new advanced Format (AF) drive (with areas of 4 096 bytes) and your system was manufactured before October 2010 (as mine was), you must get the new HP recovery disks. I thought I finally found the root of my problems (since the new drive is indeed AF and the old man is not) and ordered HP recovery discs.

    6. the disks arrived today, and I noticed that the version number of the software (for Windows 7 version) is almost the same as on the computer, except that the last digit is 9 on disks and 6 on the computer - I guess it's an update to deal with the problem hard drive AF. However, I get 'system recovery disks do not support this computer' error, if I use the utility from CyberLink recovery disks or not. To be on the safe side, I even used a new hard disc (new 1 TB) right out of the box (never partioned and installed previously) and connected the original keyboard supplied with the computer (I also unplugged everything except the monitor, keyboard and mouse). However, I get the same message. Just out of curiosity I tried to put back the original hard drive (certainly not in best shape, even if the system always starts with him) and still could not recover the system.

    What else can I try?

    Any help will be greatly appreciated.

    An alternative to try. > If you can read the Microsoft Windows 7 of 25-character license key attached to the Tower, you can download a Windows 7 ISO file to burn to a DVD. The version must match that on the sticker COST Microsoft. for example Home Premium

     
  • Can not recover my system after a hard disk crash.

    Hello

    Hard drive of my hp DV6-3123tx crashed due to a collision

    The steps I did:

    1. Got a new hard drive and put it on.
    2. Via recovery DVD tried to format it.
    3. Everything was good, but when you restart the system to install the drivers it gets stuck only on the first page (on which hp is written). I waited for hours together, but it is not recover from this State

    PS: I had deleted CMOS too after my hard drive crashed, but restored and saved its default settings in the BIOS before the steps mentioned above.

    Go to the link below and you can order to reinstall HP discs. What they charge is approximately US $15 for shipping and handling.

    http://h10025.www1.HP.com/ewfrf/wc/siteHome?lc=en&cc=us&DLC=en&OS=4063&softwareitem=629997-001&sw_lang=&product=top

  • Vista HomePremium.SP2. Chnge workgroup option not available but may change the name of the computer. Can not enable file sharing. How Iactivate these options? Thanks in advance, Geoff

    Vista Home Premium.SP2. Working Group change option is not available on the system page, but I can only change the name of the computer. Can not turn on either file sharing. How to activate these options? Thanks in advance, Geoff

    Geoff

    1. If it is the domain controller, you cannot change the name of the computer by selecting network ID and this is normal.
    2. If it is a member of the computer in domain or workgroup, you don't have permission to change the name of the computer.
    .

    See this link for more information

    http://social.technet.Microsoft.com/forums/en-us/itprovistanetworking/thread/a552c6f8-AB02-44e5-9FF9-471ebc7ac1c6/

  • New hard drive installed Vista Ultimate, now I can not install my printer - why?

    Computer Dell laptop hard drive replaced (warranty) with Vista Ultimate, I installed Office 2007 Professional disc 1 fine, windows update is fine, but I cannot complete the installation for my Kodak printer disc. Has been given the Internet to install via the internet address - link doesn't work either - drive flashing green bar "installation preparation" then nothing? Link Web shows 'Preparing to install' with a full bar green - then stuck there. A few minutes later, he disappears. Never installed. Do not open the drive or cross the bar - never open the Green window to install. Support Kodak decided that I was missing the .net on pre-installed OS HDD framework files. Enough of 3.45 and 4. Is this correct? Do I need previous versions, or something else is the cause. How can I check to see that all the files are correct and understand WHY I can not INSTALL MY PRINTER?

    Until the hard disk, memory & the keyboard have been replaced by the Dell tech, I had installed and printed on this Kodak printer for 9-12 months. Suggestions welcome.

    Hi LSMama,

    (1) you get an error message?

    (2) what is the model number of your printer?

    There could be several causes for this problem, try the following steps:

    Step 1: Run the troubleshooter printer available in the link below and then check

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Step 2:  Clean boot the computer and then try to install the printer

    Follow step 1 in the link below,
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************

Maybe you are looking for

  • Found hidden partitions?

    I bought a macbook 2010 used pro 15 '' out of my high school, when I got it I tried to format the hard drive (500 GB) and install El Capitan, but when I did I noticed that only 274 GB of it was available, there is a "recovery" partition, taking up ne

  • iCloud library is on and working on my mac but not on my iPhone

    On my iPhone 5 c and on my mac computer, my iCloud photo library is turned on. All my photos are in the library of photos on my computer, but only some of them are appearing on my iPhone. I have only 8 GB of storage on my iPhone, but it has never bee

  • Bluescreen system_service_exception asmtxhci.sys whenever I launch Skype

    Had Skype for awhile with no problems. Updated my PC and now every time I start my computer Skype crashes with an error of system_service_exeption asmthxhci.sys. Tried uninsalling and relocation of the different versions of Skype with the same result

  • Windows XP Home edition is installed without SATA - is it possible to reactivate SATA now?

    Hello I disabled the SATA in the BIOS to install XP successfully. Before that, I had a way to the blue screen at the beginning of the XP installation - as described in the topics in the forum here. Now I wonder if I could change back - you know, kind

  • HP 15 laptop: hard disk failure

    Hello. IM in a State of panic. I need my computer to school ifx. I went to market and all that it does to blue screens and says the smart player is a failure. Then when I do the test drive DART he gives me this number HARD DRIVE 1: failure FAILURE ID