Cannot find a way to access facesContext during web app initialization

I need to access a bizConfig managed bean and insert it into the db during initialization.
facesContext is an object of request scope and is not available in
1) filter's init() method
2) ServletContextListener.contextInitialized()
Ideally I would do it in ServletContextAttributeListener.attributeAdded(), but managed beans are instantiated lazily and this method won't be invoked.
Any thoughts how it can be done properly?

The only way I can obtain BizConfig is through the Managed Bean Facility. The categories are configured in the faces config file:
<?xml version="1.0"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<managed-bean>
<managed-bean-name>bizConfig</managed-bean-name>
<managed-bean-class>com.*.conf.BizConfig</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
<!-- CATEGORIES -->
<managed-property>
  <property-name>categories</property-name>
  <map-entries>
   <key-class>java.lang.Long</key-class>
   <map-entry><key>6</key><value>Health</value></map-entry>
   <map-entry><key>7</key><value>Humor</value></map-entry>
   <map-entry><key>8</key><value>Craft</value></map-entry>
   <map-entry><key>9</key><value>Home and Garden</value></map-entry>
   <map-entry><key>10</key><value>Fitness</value></map-entry>
  </map-entries>
</managed-property>
</managed-bean>
</faces-config>I need to read this data and insert it to db during initialization.

Similar Messages

  • If iCloud can back up my photos then how come i cannot find a way to access iCloud!

    i have recently deleted much loved photos of my ipad without thinking and they have disapeared off my camera roll, people on the apple support community say i can retrieve them by using the iCloud back up which is already enabled on my "new ipad" the real question is how do i even access iCloud and how am i meant to get my photos back!

    i have followed each step as you set out.
    settings > iCloud > Storage & Backup, then it gives me the option to buy more storage, turn my iCloud on/off and to back up my ipad, as well as show my last backup on the 9/04/12  7:15 PM
    i have also plugged my device into my computer to activate iTunes, iCloud does not show up anywhere.
    the 3 recent back ups you proclaim to be available are not within reach.
    the steps i have currently followed by the link you just sent me was Settings> iCloud > Storage & backup > Manage storage > (under backups clicked on) Janes ipad. all it has shown me is what i want to back up, i really wanted to know how to actually recover lost data not save what i have left, can i still do that and how?

  • Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

  • I want to use icloud on my macbook and cant because I am using OSX10.6.8 - I want to upgrade this but I cant upgrade to mountain lion as my mac does not support this - cannot find a way to go to Version 10.7.4 which i understand supports icloud - help

    want to use icloud on my macbook and cant because I am using OSX10.6.8 - I want to upgrade this but I cant upgrade to mountain lion as my mac does not support this - cannot find a way to go to Version 10.7.4 which i understand supports icloud - help to do this please

    If you purchased Lion for your iMac, just log into the Mac App Store from your MacBook using the Apple ID under which you purchased Lion and go to the Purchases page. You will be able to download and install Lion there. 
    searching the internet i found a link to upgrtade to 10.7
    The only place you get get Lion is from the Mac App Store. If you found some other site, that was an illegal copy and almost certainly tied to someone else's Apple ID and hence unusable by you. If the link was just to the Mac App Store, see above.
    As to the problem with synchronization to iCloud, that's not a 10.6 question, so I'd suggest you take up that specific issue in either the Lion or iCloud forums, providing full details, and someone there can probably help you sort things out.
    Regards.

  • I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this.

    I have a lot of various book mark folders with websites contained within each folder. I am able to sort the websites within each folder alphabetically by name but I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this other than manually dragging them as this is extremely hard for me due to the fact that I am a quadriplegic with limited hand movement dexterity

    Bookmark folders that you created are in the Bookmarks Menu folder. "Sort" that folder.
    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically

  • I have an update required for Evernote in my Imac app store, but cannot find how to get this update. It says to sign in with my emailm address, but I cannot find a way to do this.  Please help!!

    I recently downloaded Mlountain Lion on my Imac. It shows that I have an update for Evernote that should be downloaded, but I cannot find out how to complete this update. It asks for me to sign in with my email address, but does not show how to do this.  Please help!

    I have done exactly what you said. When I check "update", a screen  drops down that asks that I enter my email address to continue........but i cannot find any way to do this.
    In the past, all I would do is check "update", and the update would take place. Since I upgraded to Mountain Lion, this has changed, and i do not know how to do this simple thing.......the app store shows an update is due to be updated, but i cannot find out how to do it.

  • I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.

    I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.

    That's probably not a good idea to try to share apps since you will have to switch ID's each time you update apps and sync apps from iTunes.
    And technically - according to Apple's terms - you cannot share apps using different ID's. You can actually lock yourself out of an ID for 90 days if you switch ID's and if you associate the iPad with another ID.
    The bold type is a copy and paste from the site that I referenced below.
    When you turn on iTunes Match or Automatic Downloads, or when you download past purchases on an iOS device or computer, that device or computer becomes associated with your Apple ID. This article describes how to manage these associations.
    http://support.apple.com/kb/ht4627

  • I am trying to export a video as an flv but the list of possible formats is much shorter than it used to be. I cannot find any way to make an FLV using the newest version of Premiere Pro. Need help fast! I am on a Mac

    I am trying to export a video as an flv but the list of possible formats is much shorter than it used to be. I cannot find any way to make an FLV using the newest version of Premiere Pro. Need help fast! I am on a Mac

    Support for exporting to FLV and F4V has been removed. To learn more, please consult this blog post: removal of FLV and F4V export features from Adobe Media Encoder, After Effects, and Premiere Pro | After Effects regio…

  • I cannot find a way to update my itunes to 10.6.8. i need this in order to sync my new ipod. i just updated to 10.6.3.help!

    i cannot find a way to update my itunes to 10.6.8. i need this in order to sync my new ipod. i just updated to 10.6.3.help!

    As Limnos says, you first need to update to OS X 10.6.8 before you can install iTunes 11 (please note the version numbers).
    To update OS X close all running applications and make sure you have a current backup. Then pull down the Apple menu and select Software Update. This may show you several items that you can update. Choose OS X 10.6.8. This may take some time. After the process is complete you will be able to run Software Update again and it ought to offer you iTunes 11.

  • I am using a MacBook Pro.  I simply cannot find a way to attach images adjusted in Lightroom as attachments and/or without massive degradation in quality.  I follow the LR attach email process as specified by LR, the photos appear in the email seemingly e

    I am using a MacBook Pro.  I simply cannot find a way to attach images adjusted in Lightroom as attachments and/or without massive degradation in quality.  I follow the LR attach email process as specified by LR, the photos appear in the email seemingly embedded and the recipients of the email cannot save the attachment.

    You are welcome.  Just finished a chat session with an Apple support rep and confirmed the matte option no longer available.  Seems lots has changed since I bought my 17” 19 months back:).  They did say that there were after market screen films available from places like amazon
    Have never used anything like that though.  My wife has a 2008 MBP 15” with gloss and I can say it is a nice screen finish, you just have to be careful of lighting from behind you.  All my iMacs were glossy and I did learn to compensate for the added brilliance the screen brought to the photos.  The new soft proofing feature of LR5 seems to better estimate the level of brightness of the printed work, compared to past versions of the s/ware.
    In any case, in my opinion you really can’t go wrong with the apple product.  I bought my first iMac in mid 1999 and have never looked back.  I donated that machine to a pre-school in 2008, it was running OSX version 2 or 3 I think.  I did run Photoshop 7.0 on an IBM laptop for a time (windows XP).  I think I had one of the very first versions of Adobe Camera Raw on that machine.  I digress, sorry.
    The chat representative did confirm that the 17” is out of production and I’m guessing Apple found the market for the big laptop just wasn’t there.  They did mention that 17” MBP’s show up as “certified refurbished” units from time to time.  Suggest you might explore that option with a local Apple store in the UK, assuming  Apple has store front operations off this continent of course.
    Please feel free to contact me with further questions if you wish.
    Take care, Gordy

  • Custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_YYMMDD_0023.cr2?  I cannot find a way to structure the date in Aperture as such, as well as extract only the camera file

    Please advise how to custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_120816_0023.cr2?  I cannot find a way to structure the date in Aperture as such (YYMMDD), as well as extract only the camera file (0023, for example).  Adobe Bridge CS5 can do this, but NONE of the Adobe software is retina optimized, and is terrible to look at.

    In Aperture you are limited to renaming files by the entries in the File Naming preset window.
    At what point are you looking to rename, import or export? It might be possible to do what you are looking to do external to Aperture either via a script or other software.
    regards

  • Cannot find the way to authorise my computer on new itunes 11.0.4

    cannot find the way to authorise my computer on new itunes 11.0.4 (Windows 8 - 64)

    Press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (84469)

  • How can I buy applecare plus, if I buy "refurbished ipad" in apple oline store? I cannot find the way to select applecare plus before checkout.

    How can I buy applecare plus, if I buy "refurbished ipad" in apple oline store? I cannot find the way to select applecare plus before checkout.

    Add it to your cart.  Then, when you're on the cart screen, scroll down and you'll see a choice for AppleCare+ with an Add To Cart button!
    I also called the Apple Store and their agents confirmed that it does apply to the refurbished models!

  • I have been working on a project on final cut pro trial, just purchased the real deal, but cannot find a way of importing the project

    I have been working on a project on final cut pro trial, just purchased the real deal, but cannot find a way of importing the project

    You don't import the project.
    I'm going to assume that both the trial version and purchased version were 10.1.
    Open FCPX and then Open Library>Other, Navigate to wherever you stored the library (ies) you worked on when you used the trial. Choose that library and your work should be in one or more events in it.
    Russ

  • I collect photos on my iPad from various sources, but when I sync with iTunes on my PC I cannot find a way to get photos to upload to My Pictures???

    I collect photos on my iPad from various sources, but when I sync with iTunes on my PC I cannot find a way to get photos to upload to My Pictures???
    How can I get these photos up to my PC so that they will sync back down to my other devices?

    Try this:  Copying personal photos and videos from iPhone, iPad, or iPod Touch to your computer, http://support.apple.com/kb/HT4083

Maybe you are looking for

  • Flex datagrid not populating anymore

    Original CF server version: 7,0,1 Flash version: 9 After installing ColdFusion MX 7 Updater 2, I am unable to populate a SWF datagrid that was compiled from Flex 1.5. We call a ColdFusion CFC by passing in 4 arguments to the cffunction. The function

  • Getting multiple Mobile device quarantine notices for previously approved devices.

    Recently we have started getting multiple notices to the user and to our help desk about a device being quarantined that is not. I've got one user getting them about every 15 minutes. When I use the following powershell this user is not listed Get-Ac

  • How do I disable the auto spell check? My g-mail already has this

    I don't need 2 spell checks, and when I send an e-mail, I can not get the red line to go away. Some of the words are not misspelled. Thank you!

  • Ftp connection failed using iWeb

    i am trying to publish my website using iweb 3.0.4. everytime i test my ftp server i keep getting connection failed. i know for a fact that my username and password, and all related ftp server settings are correct. my webhost is godaddy and have quad

  • Announcing GwtGL - develop WebGL apps in Java

    I'd like to announce the availability of the first version of GwtGL, a WebGL binding for GWT. Here is a brief description of the project: WebGL is a new web standard for hardware accelerated 3D graphics in web browsers. Soon all major web browsers (F