How to cache external resource bundles?

Hi,
I am using Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 on Windows 7.
We have used external resource bundle for our ADF application using loadbundle which extends java.util.ListResourceBundle.
Is there any way to cache these external resource bundles? and If yes when/how it will get cached?
We have found following link:
http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendixa.htm (Section: A.11 adf-config.xml)
But not sure if it will help for external resource bundles.
Any pointers will be highly appreciated.
Thanks
Vishal

Hi again.
To achieve your requeriment you can try next solutions:
- Add a external path where you are going to let your Resource Bundle in your Manage Server Classpath. For example: /language (into this folder put your baseName folder's and properties file).
- Build your custom Java Class to load Resource Bundle in a configured classpath or path.
- Try to do a similar solution like WebCenter Spaces copying your resource bundle in MDS path and updating/getting it with WSLT scripts.
Regards.

Similar Messages

  • How to link the resource bundle in JSF implemented in  eclipse?

    Kindly help me out

    This is how I called the resource bundle in JSF
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <f:view>
    <f:loadBundle basename="constantsUIProp" var="prop"/>
    <h:form>
    <h:inputText maxlength="#{prop.AREA_CODE_MAX}"></h:inputText>
    </h:form>
    </f:view>
    </body>
    </html>
    when i tend to build, it shows an error like+ Resource bundle cannot be found on the classpath+
    I have saved the resource bundle in WebContent/Web-Inf/classes/constantsUIProp

  • How to use common resource bundle across all the development components ?

    Hi,
    I am working on SAP NetWeaver Developer Studio - JAVA
    How to use common resource bundle across all the development components ?
    Description :
    I have a requirement of creating a resource bundle (resource.properties) and use that common resource bundle in all the development components.
    Can we create a  development component (war and ear both) and create only resource.properties in this development component( DC ) and create the dependency of the same DC  in all the other DCs ?
    Thanks,
    Neha

    Hello Neha 
    This question is more NWDS related.
    You may have a better chance of someone answering the thread under
    SAP Netweaver -> SAP NetWeaver Development Infrastructure (NWDI, formerly known as JDI) forum
    Thanks
    Kenny

  • 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/

  • How to deal with resource bundle in multiple applications system

    Hi all,
    I'm building new system depend on the method of
    one common model with multiple applications for the view objects
    my JDeveloper version 11.1.2.3
    my Question
    How can i merge the resource bundle for these applications
    as in the common model exists file for resouce bundle
    and each other applications contains resource bundle files how can i merge all these file in one Resource bundle file ?
    Edited by: 985756 on Apr 2, 2013 12:39 AM

    Hi,
    Please check anerjusb blog for your answer
    Hoping this will help you.
    http://andrejusb.blogspot.in/2009/12/reusing-resource-bundles-from-different.html
    Thanks & Regards,
    Vikas

  • How to use a resource bundle in viewcontroller project

    How can I create a resource bundle for a viewcontroller project ? Is there any way to add entries to it other than adding manually editing the property file ? so that all the key generated will be unique? How to access a message in the resource bundle in my backing bean so that I can display it in my screen ?
    Thanks
    Suneesh

    Suneesh Raman wrote:
    How to access a message in the resource bundle in my backing bean so that I can display it in my screen ?Take a look at this: http://adfcodebits.blogspot.com/2010/04/bit-5-accessing-resource-bundle-from.html

  • How to merge two resource bundle values ?

    Hi All,
    JDev ver : 11.1.1.7
    I want to merge two resource bundle values.. How to do it ?
    like this #{expr ? str1 : str1 + str2}
    I tried like the one below and used some jstl fuctions... but no use not worked.. got some parse exception, compilation exception,etc..
      <af:outputText value="#{ row.accountName eq 'AccountName9' ? resource['LBL_WELC'] : resource['LBL_WELC'] + resource['LBL_HOME'] }"/>
    Let me know how to do this ?
    Regards,
    Gopi

    The above outputtext is an example, I may use diff bundle keys like below,
    <af:outputText value="#{ row.accountName eq 'AccountName9' ? resource['LBL_TEST'] : resource['LBL_KEY1'] + resource['LBL_KEY2'] }"/>
    The principle is the same
    <af:outputText value="#{ row.accountName eq 'AccountName9' ? resource['LBL_TEST'] : '' }#{ row.accountName eq 'AccountName9' ? '' : resource['LBL_KEY1'] }#{ row.accountName eq 'AccountName9' ? '' : resource['LBL_KEY2'] }"/>
    Dario

  • How could i use resource bundle in managed bean instead of harding coding?

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

  • How to work with Resource Bundle

    Hi
    I work with JDeveloper 1013 and making an application with ADF Faces and BC.
    I'd like to internationalize my own application. How can I do this with Resource Bundle(java). How to ask which language the browser wants, ...

    There is a chapter in the ADF Developer Guide that explains this.
    Read it and let us know if you still have questions.

  • How to share a resource bundle throughout the faces application

    adf faces 11g release 1
    I want to implement the resource bundle as a java class extending the ListResourceBundle . That works fine for the local project.
    I then made one global "resource project" that should be shared in all projects. I tried first deploying the project to a adflib jar file,
    but i found that the resource class was not included ! I then deployed to a ordinary jar file and that works fine.
    My question is : Is that the way to make a shared resource bundle ?
    Regards,
    Jan

    Hi.
    Check following
    http://andrejusb.blogspot.com/2009/12/reusing-resource-bundles-from-different.html

  • How does UCMhome\weblayout\resources\bundle.js get populated in 11g?

    Hi,
    I am working on a feature in a component of the UCM 11g,which requires an asynchronous service request to the CONTENT SERVER.This is achieved through YUI async call.
    This call is in a function which in turn is included in a common include resource named "custom_common_bundle_functions".
    My problem is that, the changes made in this include aren't reflected in the common script file ( UCMhome\weblayout\resources\bundle.js ) even after a restart of the content server. I had checked with the load order of the all the files which override the above mentioned common include, but it didn't help.
    Is there any other case where this file stops accepting any changes made ?
    Thanks for your time.
    -sandeep

    Use
                 <fx:resources>
                    <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
                    <fx:fileset dir="${basedir}/${dist.dir}" includes="lib/*.jar"/>
                </fx:resources>or simply
          <fx:fileset dir="${basedir}/${dist.dir}" includes="**/*.jar"/>Filed http://javafx-jira.kenai.com/browse/RT-24757 to update the docs.
    Edited by: igor on Sep 5, 2012 2:23 PM

  • How to load the resource bundle message on confirmation popup

    hi every one
    i am using java script confirmation message on my delete button.
    this is my sample for that one
    <h:commandButton action="#{createCurrency.removeCurrency}"
             onclick="if (!confirm('Are you sure to delete this value?')) return false" value="#{messages.Delete}"/>    i need to load the "Are you sure to delete this value?" from resource bundle.
    is there any way to load above message from resource bundle.
    thiagu.m

    If you're using JSF 1.2, you can add the bundle config in your faces-config.xml file like this:
    <resource-bundle>
       <base-name>mypackage.i18n.MessageResources</base-name> // i18n is shorthand for internationalization
       <var>msg</var>
    </resource-bundle>     
    <locale-config>           
       <default-locale>en</default-locale>  // or whatever locale you preferred 
       <supported-locale>...</supported-locale> // other locale defined here if you need them
    </locale-config>Then create a property file called "MessageResources_en.properties. In this file, you can define something like:
    {code}
    MSG_CONFIRM=Do you wish to delete this value?
    // add other messages here. Syntax is: key=value
    {code}
    Then reference the bundle's message in your form as per normal:
    {code}
    !confirm(#{msg.MSG_CONFIRM}))
    {code}
    I haven't tried the above codes but it should help you get started.
    Edited by: icepax on 13/11/2009 19:44

  • How to load external resources such as JavaScript files, etc. ?

    Hello,
    I'd like to put my resources files such as my scripts, my stylesheets, in a jar file, included in my webapp.
    How can I refer to these files in my JSP file ?
    Should I make a filter ?
    Can someone help me please ?
    Thanks in advance.
    bgOnline

    using loadjava I can load commons-net-ftp-2.0.jar and my jar. When i execute pl/sql wrapper for defined java stored procedure it results into exception.
    retval=-29532;ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    Same code works as Java application. I also granted socket permissions
    DBMS_JAVA.GRANT_PERMISSION(
    'SCHEMANAME', 'java.net.SocketPermission', REPLACEWITHHOST||':'|| REPLACEWITHPORT, 'connect,resolve');
    This did not resolve the error. Since i do not have control external java library and it works as standalone application....
    do you know any workarounds? Any ideas on implementing FTP functionality in plsql on oracle 11g database?
    Thanks
    Madan
    Edited by: MadanShah on Aug 8, 2009 11:15 AM

  • How to load External Resources such as Jar's? Help in resolving ORA-29534

    Agenda: FTP files on Oracle 11g version 11.1.0.6.0 database server on Windows 2003 to another server. These files are generate using PL/SQL and Java Stored procedure
    Implementation Details: I wrote java stored procedure for FTPing files. Protocol is FTPS and I’m using Apache common’s library commons-net-ftp-2.0.jar.
    Now trying to load my project jar file using loadjava and it results into ORA-29534 error. I added location of commons-net-ftp-2.0.jar in the system class path and rebooted database server.
    Question:+ How do I tell oracle location of external_ JAR files? I also tried dropping external jar to jlib and jdk lib. No Luck!
    I will really appreciate your help…. Need to resolve it urgently for delivery
    See the details
    C:\TEMP>call loadjava -r -f -o -user <SCHEMA_NAME>/<PASSWORD>@ORCL projectFTPS.jar
    errors : class ftp/DibrsFTP
    ORA-29534: referenced object SFMIS5_2.ftp/DibrsFTPClient coul
    d not be resolved
    errors : class ftp/DibrsFTPClient
    ORA-29521: referenced name org/apache/commons/net/ftp/FTPSClient could not b
    e found
    ORA-29521: referenced name org/apache/commons/net/ftp/FTPClient could not be
    found
    The following operations failed
    class ftp/DibrsFTP: resolution
    class ftp/DibrsFTPClient: resolution
    exiting : Failures occurred during processing
    Thanks,
    Madan
    Edited by: MadanShah on Aug 8, 2009 8:00 AM

    using loadjava I can load commons-net-ftp-2.0.jar and my jar. When i execute pl/sql wrapper for defined java stored procedure it results into exception.
    retval=-29532;ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    Same code works as Java application. I also granted socket permissions
    DBMS_JAVA.GRANT_PERMISSION(
    'SCHEMANAME', 'java.net.SocketPermission', REPLACEWITHHOST||':'|| REPLACEWITHPORT, 'connect,resolve');
    This did not resolve the error. Since i do not have control external java library and it works as standalone application....
    do you know any workarounds? Any ideas on implementing FTP functionality in plsql on oracle 11g database?
    Thanks
    Madan
    Edited by: MadanShah on Aug 8, 2009 11:15 AM

  • How to import external resources into JDeveloper?

    Hi!
    Please forgive me for what is probably a very easy question. I have some images that I need to import into my Struts project. How do I do so? I have tried dragging and dropping them onto the project, but nothing happens.
    Thank you in advance for your assistance!

    goto windows explore project location. under ViewController\public_html paste the images. in jdev refresh ViewController project.
    you can display the images using af:image like below:
    <af:image source="/logo.gif" shortDesc="logo"
    id="image1"/>
    if you want you can put the images under a folder ViewController\public_html\images. in that case the above source would be source="/images/logo.gif"

Maybe you are looking for

  • How do I use a netgear N600 router with Infinity 1

    I have searched various forums etc. with mixed success so am hoping that someone here can give me an idiot's guide to connecting to the internet using my netgear N600 router rather than using the BT Homehub 5. BT say that I can do it (despite my rout

  • No matter what i try I can't get my LOST library...FOUND!!!

    Okay so I have tried everything here and I just can't get my old library back. Today when I went to open Iphoto it was the same thing Iphoto cannot find Library buttons Quit Create a new library Find a library After trying to find the old one I tried

  • Make the tabbed page come back to same page after delete

    I have a page with three tabs. When user clicks on delete on any of the page. A warning page comes. And after the user selects yes or no on the warning page, original page is displayed. But it goes to the first tab always. i want to maintain the tab

  • Problem with ios6 and siri

    After update ios6 my siri does not work anymore. Could my help somebody?

  • Reason for Payment block R

    Hi, I am finding one purchase order blocked , and thats because in the accounting doc, the vendor line item is blocked with blocking Reason R . How can I find , why this block was put. Regards Rudra