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

Similar Messages

  • How to share an associative array throughout the entire instance?

    Hi all,
    I have an associative array with much data, and it would barely change, I want to keep it in the memory and share it throughout the entire instance, and make sure all sessions of all users get the same associative array, is it possible?
    Thanks in advanced.

    >
    I want to keep it in the memory and share it throughout the entire instance, and make sure all sessions of all users get the same associative array, is it possible?
    Why do you want to keep it in memory?
    Will using a table for that, which being accessed frequently, will practically always be in the buffer cache, cause performance problems for you?
    The only other way to keep data in memory globally accesable to all database sessions is to use the global application context feature. With that you can store [name;value] pairs in memory and easily access (read) them using the SYS_CONTEXT built-in.
    Toon

  • When do you need to register the message bundle in the faces-config

    hello
    i have applied two examples to localize messages, label, title by creating message.properties file and utilizing the f:loadbundle component the EL expression. It works like a charm without having to register anything, I have only registered the locale, but not the bundle
    also , i have used a programmatic approach
    FacesContext fc = FacesContext.getCurrentInstance();
    ResourceBundle msg = ResourceBundle.getBundle("message",fc.getViewRoot().getLocale());
    fc.addMessage(FacesMessage.SEVERITY_FATAL.toString(),new FacesMessage(msg.getString("ok")));
    which also worked without registering the message bundle!!
    although many article i read ask to register the message bundle.
    Another thing is that in Oracle Jdeveloper 10g for FORMS and PL/SQL Developers states that the message file needs to be located in \resource subdirectory
    and using getBundle (resources.message) to get it. In fact i kept getting errors indicating that the base bundle cannot be read until i located the file in the ViewContoller directory itself (and that is why i reference it with getBundle("message") rather than resources.message as indicated in the book.
    appreciate your response
    ammar sajdi
    amman - jordan

    Hi,
    Your question is not very clear. But let get through some various guideline.
    <f:loadBundle/> is horribly buggy and was all but removed from the specification. As a tag, it gets only evaluated during the render view phase, meaning that if you have EL expression referring the loadBundle's var during another phase, it's going to fail. The most common case is during validation with overridden messages.
    About the programmatic access, the problem is that you're linking your application to a specific bundle at code level. Meaning that you're preventing it to be reused in a different context, while the following get the most application local bundle name (faces-config.xml's message-bundle property)
    Resourcebundle.getBundle(FacesContext.getApplication().getMessageBundle())Registration is also the only way to override the default conversion / validation messages.
    For JSF 1.1 (10g), those are your option. However, if you're using JSF 1.2 (11g), you can also register resource bundles in the faces-config file, you then register the bundle and the var associated to it, removing the need of f:loadBundle and fixing the non render phase issues. furthermore, the code version is also simplified to:
    FacesContext context = FacesContext.getCurrentInstance();
    ResourceBundle bundle = context.getApplication().getResourceBundle(context, "varName");
    bundle.getString("myKey");You other part about \resource I never heard of nor cared for. You can place the bundle where you like on the classpath.
    Regards,
    ~ Simon

  • 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

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

  • Hi, i was wondering how to share movies for example, to the mac desktop from the macbook pro?

    Hi, i was wondering how to share movies for example, to the mac desktop from the macbook pro?

    Share them how?  View them?  Copy them?
    What kind of movies?  DVDs?  iTunes? Other MPEG, AVI files, etc...

  • How best to screen junk mail in the mail application?

    How best to screen junk mail in the mail application?

    With the Mail program running, select Preferences from the Mail menu and then select the Junk Mail tab. Turn it on. This is a decent junk mail filter and fills the needs of many people. If you find too much junk mail still making its way into your in basket, there's a third party program called SpamSieve that takes filtering to another level.

  • How long does it take to download the adobe application manager?

    how long does it take to download the adobe application manager?

    It will depend on the speed of your Internet connection.  It is a fairly quick and efficient process over a high speed connection.  Downloads are often completed in less than a minute.

  • 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

  • Resource bundle in the task definition

    Hi all,
    I'm trying to assign my own resource bundle to a human task definition like specified in the developer doc (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/workflow.htm#BABDFDHC).
    The documentation is not clear at all on what exactly we have to provide on this mask:
    - a .properties files?
    - a class name ?
    If somebody knows how to do it, could you please give me a hint?
    Thank you very much!
    Nicolas

    (sorry for the long post)
    I did the following test:
    1) I ve implemented 2 classes extending java.util.ListResourceBundle:
    package com.imtf.bpm.resources;
    import java.util.ListResourceBundle;
    public class MyResourceBundle extends ListResourceBundle {
    public MyResourceBundle() {
    protected Object[][] getContents() {
    return contents;
    static final Object[][] contents =
    {"APPROVE","Approve"},
    {"REJECT","Reject"},
    and the french corresponding class:
    package com.imtf.bpm.resources;
    import java.util.ListResourceBundle;
    public class MyResourceBundle_fr_CH extends ListResourceBundle {
    public MyResourceBundle_fr_CH() {
    protected Object[][] getContents() {
    return contents;
    static final Object[][] contents =
    {"APPROVE","Approver"},
    {"REJECT","Rejeter"},
    2) Added "com.imtf.bpm.resources.MyResourceBundle" in Task Definition -> Advenced Settings -> Configure resources -> Resource Name
    3) I've put my 2 Resources class in the $BPEL_HOME/system/classes to be available by the server at runtime (more precisely, according to my package name, it's $BPEL_HOME/system/classes/com/imtf/bpm/resources/)
    4) Deployed the workflow, and initiated it
    5) Checked the result in the Oracle Worklistapp, but after login an exception occurs on the server console:
    07/10/30 14:08:46 java.util.MissingResourceException: Can't find bundle for base name com.imtf.bpm.resources.MyResourceBundle, locale fr_CH
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataCache.getResourceBundle(TaskMetadataCache.java:555)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataCache.getResourceBundle(TaskMetadataCache.java:469)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getResourceBundle(TaskMetadataService.java:574)
    at oracle.bpel.services.workflow.metadata.impl.TaskMetadataService.getOutcomes(TaskMetadataService.java:348)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.getTaskCustomActions(VerificationService.java:1535)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.addPermissibleTaskActions(VerificationService.java:995)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.addOptionalInformation(TaskQueryService.java:1013)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.addDetailsOptionalInformation(TaskQueryService.java:1042)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.getTaskDetailsById(TaskQueryService.java:453)
    at worklistapp.servlets.TaskDetails.handleRequest(TaskDetails.java:87)
    at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    It seems that my classes are not seen by the classLoader...but strangely it's in the classpath...
    could someone help me ?
    thanks!
    Nicolas

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

Maybe you are looking for

  • HT204053 how many devices can be authorized to use the same apple id for itunes purchasing

    I currently have 2 pc's, 1 macbook, and 3 iphones under same apple id.  We purchase songs from iturns and share them between us.  Is there a limit to how many can be authorized.  I have just purchased another macbook for my daughter and wish to add t

  • How do I put a bookmark in a folder I created on the toolbar. Dragging does not work.

    I have created a folder on my toolbar but I can't drag bookmarks into it. Whenever I drag the bookmark and it looks like it will be placed in the folder the bookmark is simply repositioned. I've tried right clicking but there is nothing that shows up

  • Has anyone been over charged by apple

    THey over charged me they say a game price is $5.43 at a discount but yet charged me $10 and then $23 dollars and then another $5.43 what do I do being that they don't answer they phone.

  • Coldfusion CMS

    Hi, I need some advice, looking at a 3rd pary cms  and would like some suggestions. I need to be able to - have mulitlingual pages - add child pages to the main menu - have flexible templates so users can create the child pages. I am looking at Mura,

  • How to list the price ?

    Hi experts, Has everyone can tell me that how to list all the material price via BAPI ? i need the result like t-code ' vk13 ' with the condictions . Is use BAPI_PRICES_CONDICTIONS enough or not ? Many thanks . Best Regards, Carlos