Is there a way to 'reload' a Resource Bundle?

Dear All,
Use Case:
I confgured a bundle in my faces-config.xml
<resource-bundle>
  <base-name>com.test.MyBundle</base-name>
  <var>myBundle</var>
</resource-bundle>..and my Bundle class loads data from a database table. So instead of using properties file, I saved the labels in a table
using this code.
public class MyBundle extends ListResourceBundle {
    public Object[][] getContents() {
          Object[][] resource;
        ResourceLabels lView = ADFBCUtil.getAppModule().getResourceLabelViews();
               More codes
        return resource;
}Now here goes my problem... supposed somebody changed the label in the DB table and wanted that to reflect to the new label.
Is there a way to re-initialize my bundle?
What happens is that, I need to restart the application so that it would read the table again. As I notice, the ADF app reads this
bundle only once during startup
Any Hints. Thanks.
JDEV 11G 11.1.1.5

vinod_t_krishnan wrote:
why cant you do this.. operation in the button click.. so that the binding or the underlying objects gets updated..
ADFBCUtil.getAppModule().getResourceLabelViews();
Hi Vinod,
That isn't what I am trying to do. Let me try to explain my use case again.
1. I configured a Resources bundle in faces-config.xml
2. When my application starts, it reads the configured bundle.
3. Since I configured my bundle to load contents from database, it will query my table once during startup. The list of labels/messages are now in my bundle.
4. User change something in my label(s) table and he/she want's it to be displayed automatically in the UI
5. So he/she should be able to reload/reinitialize my bundle. This is where I am having trouble
I am thinking of having an ADMIN screen where there is a button to click that will reload/reinitialize my bundle.
But my problem is how do I tell my ADF app to reload the bundle again?
A quick alternative is to restart my application since this will read the resource bundle again during startup. But this is not what I wanted.

Similar Messages

  • Is there any way to export IT Resource data from OIM using the export tool?

    Hello,
    we are trying to migrate an OIM development environment to a preproduction environment and we need to migrate more than 400 IT Resources. We have exported some IT Resources and when we imported them in the preproduction environment their data was not migrated. Is there any way to export IT Resource data from OIM using the export tool? Or is there any other way to do this without doing it by hand?
    Thank you for your help
    Kind Regards

    Well , OIM doesnot provide any such facility to export ITResource data along with ITResource .
    Directly updating the DB could be an option ..
    Thanks

  • I accidently deleted some contacts that I need.  I still have them on my IPAD because I disabled my contacts in icloud. Is there a way to reload these deleted contacts using my IPAD and icloud?

    I accidently deleted some contacts that I still need.  Because of Icloud they are now deleted on all my devices such as my Iphone and PC (outlook).  I still have them on my IPAD because I disabled my contacts on Icloud on my IPAD.  Is there a way to reload these contacts from my IPAD back to my Iphone and PC using Icloud?  Thank you.

    Hi mth3333,
    Thanks for visiting Apple Support Communities.
    You can sync the contacts on your iPad with your computer. See this article for the steps:
    iOS: How to transfer or sync content to your computer
    http://support.apple.com/kb/ht1296
    Contacts
    To sync contacts with your computer, choose "Sync Contacts with" within iTunes for Windows, or "Sync Address Book Contacts" on your Mac.
    You can sync your contacts with:
    Microsoft Outlook 2003, Microsoft Outlook 2007, Microsoft Outlook 2010 (Windows XP, Windows Vista, or Windows 7)
    Windows Address Book (Windows XP)
    Windows Contacts (Windows Vista / Windows 7)
    Address Book (Mac OS X)
    Microsoft Entourage 2004, Microsoft Entourage 2008, or Microsoft Outlook 2011 for Mac
    Note: If using Microsoft Entourage, use Microsoft Entourage 2008 12.1.2 or later if syncing with Mac OS X v10.6 or later. If you would like to sync data on your Mac with Entourage, enable syncing between Entourage and Address Book.
    Notes:
    When syncing contacts, you can choose to sync all of your contacts or only selected groups. The option to sync selected items may not show up until after the first sync.
    You can select a group of contacts to which all new contacts created on your iOS device will be added.
    Regards,
    Jeremy

  • I've just rented a movie on iTunes, and I tried to start it before the download finished, and now even though it has finished when I try to play it nothing happens. Is there a way to reload it without paying again??

    I've just rented a movie on iTunes, and I tried to start it before the download finished, and now even though it has finished when I try to play it nothing happens. Is there a way to reload it without paying again??

    I'm not convinced that starting it before it was downloaded has anything to do with it, you should be able to do that. I'd try restarting the computer and if that doesn't help, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • Is there a way to reload BIOS to laptop?

    I have a HP Pavilion dv9700, model number dv9910us, running Windows Vista Home Premium, 32 bit. This morning I received an e-mail from a company I usually do business with. I clicked to look for a product. The screen showed tiny pin-stripe lines and the computer froze. I held the power button down until the computer turned off. When I went to reboot the computer, the bios would start and run for about 3 seconds. It appeared to poll the Hard drive and the CD/DVD drive then turned off, waited about two seconds and rebooted. It would do this endlessly even if the lid was closed. While the LED lights were on the power button could be held down for five seconds and the computer will shut off.  I had it tested. The hard drive is fine, as is 4GB RAM, DVD-ROM, wireless card etc. The technician concluded the bios were corrupted. He tried to use a flash drive to load new bios but since bios are corrupted, boot loader with new bios cannot be executed.
    Is there a way to reload the bios? Is a new mother board required? Are there any techniques to reload the bios from a shadow ROM on the mother board? What to do?

    I have a HP Pavilion dv9700, model number dv9910us, running Windows Vista Home Premium, 32 bit. This morning I received an e-mail from a company I usually do business with. I clicked to look for a product. The screen showed tiny pin-stripe lines and the computer froze. I held the power button down until the computer turned off. When I went to reboot the computer, the bios would start and run for about 3 seconds. It appeared to poll the Hard drive and the CD/DVD drive then turned off, waited about two seconds and rebooted. It would do this endlessly even if the lid was closed. While the LED lights were on the power button could be held down for five seconds and the computer will shut off.  I had it tested. The hard drive is fine, as is 4GB RAM, DVD-ROM, wireless card etc. The technician concluded the bios were corrupted. He tried to use a flash drive to load new bios but since bios are corrupted, boot loader with new bios cannot be executed.
    Is there a way to reload the bios? Is a new mother board required? Are there any techniques to reload the bios from a shadow ROM on the mother board? What to do?

  • Reloading external resource-bundle

    Hi,
    Version : Jdev 11.1.1.4.0 & 11.1.1.5.0
    I was wondering , if there is any possible way to reload faces-config.xml.
    My Scenario's :
    *1.*
    I have configured a bundle in faces-config.xml
         <resource-bundle>
          <base-name>test.backing.loadMyBundle</base-name>
          <var>rbMyBundle</var>
        </resource-bundle>and my bundle class loads data from an external propertyFile
    public class loadMyBundle extends ListResourceBundle {
      protected Object[][] getContents() {
          PropertyResourceBundle resource= null;
            try {
                File file = new File("C:\myBundle.properties");
                fileInputStream = new FileInputStream(file);
                resource = new PropertyResourceBundle(fileInputStream);
            if (resource != null) {          
                     filling data from loaded property file into contents
            } catch (IOException ioException) {
            } catch (Exception exception) {
            return contents;
    }This getContents method is just called once even if I have changed a label value, where as my scenario to call "getContents" method is called when the resource file is changed or once per session atleast.
    *2.*
    I tried using loadBundle
    <f:loadBundle basename="test.backing.loadMyBundle"
                                 var="rbMyBundle"/>but this refers & loads the property file again & again.
    <br>
    My requirment :
    Scenario 1. Is there any way, to reload faces-config.xml every time the session is created. So that new property file is loaded.
    or Scenario 2. Is there any way, I can cache the already loaded bundle & reuse it instead of making a IO call to load file.
    Thanx in advance.
    -Neha..

    Hi,
    maybe these links will help you
    http://technology.amis.nl/2012/07/11/adf-11g-label-modifications-and-persisting-resource-bundle-changes/
    http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles/

  • IWeb domain is gone.. is there a way to reload the domain without the file?

    My hard drive crashed and died and with it went the original domains for iWeb in the Application Support folder in the Library.
    The iWeb websites are still up and running on line. Is there a way to create the original domain icon in iWeb without the original domain icon in the Application Support folder in the Library?
    Or do you have to completely rebuild the website in iWeb. If I have to rebuild the entire website how do I get rid of the working website on Safari?
    JKai

    Thank you for your answer. It was as I feared when told the same thing by the Apple One to One supporters in Hawaii. It's a good thing these past websites were still in the early stages and not fully engaged.
    Would you happen to know how to delete the working website online?
    This help stop people from googling the wrong website.
    JKai

  • I had to reformat my computer and therefore lost my Photo Elements is there a way to reload since I bought it on line?

    I bought my photoshop elements online, and then I had to reformat my hard drive is there a place I can go an reload the program?

    Moved from Photoshop forum to Downloading, Installing forum.
    Yes, if you've got the serial number.
    Download from Download and Installation Help

  • Is there a way to restore a resource plan for a project in 2010?

    I am able to use administrative restore to restore a project's schedule and tasks but I would like to restore its related resource plan as well. Is this possible? Are resource plans archived in the database anywhere? I see a table in the archive database
    for it but I don't see any data in the table.

    Hi,
    Unfortunately when you restore a project plan, the associated resource plan is NOT restored. You have to recreated it again.
    Please refer to the following article for more details: http://support.microsoft.com/kb/2513896/en-us.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Is there I way I can reload the google calendar as I am unable to change the views or go forward or backward by weeks.

    Is there a way to reload the Google Calendar program on my laptop? Currently, I am unable to change the views. It is always on the current week. I cannot get the daily view either. Thanks!!

    This would not seem to be an Apple issue at all, much less for Apple Remote Desktop. These forums cannot help you with setting up Google Calendar on a Windows system. Perhaps you would be better served by taking your question to a forum related to Google's apps or at least a Windows forum.
    Or did you just forget to include details about what computer you're actually asking about?

  • Resource bundles, loading in beans or in jsp or share them?

    Hi,
    I have a question and hope it is not a stupid one.
    What is the best way to work with resource bundles/messages developing faces application?
    One way is to load and use it in jsp. It is convenient and easy. Another is to use it within a bean. It's a little bit more complicated and might take more memory. Taking into account that sometimes general messages are to be used in both is there a guideline or some usual practice on how do I can access a resourcebundle that been loaded in jsp from bean?
    Suppose I have couple beans that might use the same messages - logically it is better to load bundle in jsp and use it from beans.
    Of course it could be loaded via faces config file, but some messages are needed only by couple of pages (registration for example).
    Please let me know your thoughts or how it is done usually.
    Thanks in advance!!

    You can use as many f:loadBundle tags in the JSP page as you want. You can also use them simultaneously with any <message-bundle> and/or <resource-bundle> declaration in the faces-config.xml. Just choose the one which covers the scope of the bundle in question.

  • Apple employee backup my phone before reloading the software.  When I checked my photos they were gone.  Is there a way to get the missing photos down loaded?

    An Apple emplyee in a Seattle store backed up my phone data before clearing it and reloading the software.  He was trying to resolve a problem that I was having with the phone.  When I checked my photos I discovered that they were all gone.   Also lost a lot of new contacts.  It appears that only older data was restored.  Is there a way to find out if my photos are backed up any were?  As a note, I have had this problemsince I got the phone.  I bought it at Best Buy but they said that they could not fix the problem.  They told me to talk to the phone company.  AT&T looked at the phone and said that it was an Apple problem.  There is no Apple store where I live in southern Oregon so I had to wait until I got to Seattle to try and get it fixed.  Apparently on one owns the problem.  Its my problem to fix.  The next step is to get another phone.  Probably not from Apple.  That is my story and sany info would be appreciated.  Cathy

    Thanks for the reply however this does not help.  When I check the cloud it shows that I have only 20 photos.  In reality I had a lot more than that.  All the photos on the cloud are those that I have taken since I was at the Apple store.  When I check cloud storage usage on my phone it says that I have 5.1 GB of photos.  This is a lot more than the 20 that I can see.  I am not sure what the Apple employee did to my phone.
    Still looking for answers.  It is really too bad that I can not talk to an Apple person to get help since they messed up my phone.

  • Is there any way to create admin role only for one resource.

    Hi all,
    I am trying to create an admin role with 'update user' capability. But I want to restrict the user(with the admin role) to be able to update a user's attribute only for one resource, The user(with the admin role) should not be able to update the attributes of the other resources which a user have.
    Is there any way to create admin role only for one resource?
    I customized the tabbed user form to show only one resource attribute (deleting the missing fields and adding my tab for the resource) and then assigned this new User Form to the user(with the admin role) in security tab.
    It works fine. But the problem is that if any user(with the admin role) is also admin of some other resource then he/she will not be able to view the other resource attributes.
    Please suggest,
    thanks

    The loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).

  • Is there a way to force the proxy.pac RELOAD before sending a UIWebView request?

    I'm working with a dynamic .pac remote file.
    When i start my app, i get the proxy automatic configuration only the first time...
    Is there a way to force the PAC reload every time I use a UIWebView ?

    sure, create a listener that waits for the complete event, then play the video.

  • Apps won't open after IOS5. Re-synced but still won't open.  Is there a way to delete them and then reload them again?

    I had no problem in downloading a free app after updating to IOS5.  I thought everything was o.k. but when I tried to launch an app, it just blinked and nothing happens.  I had a notification before updating to IOS5 that I should back up my app purchases.  All of the apps I had were free so I ignored it.  Well, that appears to be my problem.  Now, my Ipad shows the apps but they don't work.  Is there a way to delete them so that I could reload them again?

    Did you try syncing with iTunes again since you update the software? You could try that first. connect the iPad to your computer and sync again - not WiFi sync - traditional, old fashioned sync. You will have to turn off WiFi sync in iTunes and then hit the apply button.
    Or you could try these basic troubleshooting steps.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

Maybe you are looking for

  • IMac Late 2006 Will Not Boot Up

    I have a late 2006 iMac. The problem I have is that it will not boot up. I press the power button and the light comes on but the display is blank. Do you all think the problem is the logic board? Thanks in advance, Andrew

  • Not all export options are showing in Adobe Illustrator Draw app!?

    I downloaded the Adobe Illustrator Draw App. Did a test run on the features. Meaning i just doodled. Then i went to export However only two choices show. A copy of image to Creative Cloud and one other. There is no way to put actual file with layers

  • I keep getting error 87 when i try to install lightroom cc i donot have any other applications open

    i keep getting error 87 when i try to install lightroom cc i do not have any other applications open

  • How to write a Date in the database?

    Here's my method: public void insertAlerta(long hora) {     try {        Connection con =this.hodbcm.askForConnection("BDataSource").con;        PreparedStatement ps =con.prepareStatement("INSERT INTO Alerta( hora ) SELECT ? ");        Date hora2 = n

  • Expdp got error

    Database=10.2.0.4 when expdp (full or schemas) i got error: ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB [TABLE_DATA:"WSE"."WSE_REPORTS"] ORA-31642: the following SQL statement fai