Edit Resource Bundle in 12c

Hello everyone
I'm using jDev 12.1.2.0.0
The lovely utility Application > Edit Resource Bundle in not working any more (from 12c).
No search is allowed.
For bundle files maintained in utf-8, this used to be a great time saver. Not any more...
Thanks a lot
~apostolos

Thanks Timo for the confirmation.
OK here is the SR number SR 3-8004213481

Similar Messages

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • File not found, Missing resource bundle

    Hi
    I have a problem in accessing files (XML and Resource bundles) in Java projects. I used to access these files in WD Java. The same piece of code does not work here.
    e.g. When I create a new file object by providing the path name I get a file not found exception. The file exists in my package and I call it this way:
    File f = new File("file.txt"); then in an input stream but it doesnt work. However in a J2EE project the same code works.
    Similarly the resouce bundle never seems to work even if I give the fully classified class name for the property file. I can access property files in WD Java with ease. I understand that the root path changes and hence the problem. How should I solve it? Is there an elegant way which makes it work in all cases? Please throw some light on the root path for these projects. Thank you.
    regards
    LNV
    Edited by: vln on Jan 16, 2008 9:34 AM

    You should be using
    <b>this.getClass().getResourceAsStream(filePath)</b>
    which will return you an InputStream.
    Check the JDK documentation for the respective methods in java.lang.Class and java.lang.ClassLoader.
    HTH!
    \-- Vladimir

  • Resource bundle in shared library?

    Is it possible to create a resource bundle in a shared library so you can use the same resource bundle in different application?
    We are creating different ADF application and each of them should use the same resource bundle.
    I tried creating a new project that only contains the resource bundle and then add this to my jspx page:
    <c:set var="res"
             value="#{adfBundle['general.resources.generalBundle]}"/>When i do this, he can't find any entries. When i change the project properties and configure to use a single bundle for the entire project, this works.
    How can i share a bundle so each application does not need to create or copy/paste the bundle?
    Is it possible to deploy the bundle as a shared library? Even if their is nothing else, not even a single java class?
    Edited by: Yannick.O on Jul 28, 2010 10:45 AM

    Try to create a JAR with the resource file in it (under /META-INF) and add it as a library in your project.
    If it does not work, try to create a faces-config.xml file inside that directory that declares the resource file.
    I think it gets merged at runtime with the config of your application and resource bundle should be available.

  • 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

  • Resource bundle is not build

    Hi,
    I am creating a application in which i want to read some value from .properties file. But when i build my project (using right click project and select Rebuild) this properties file is not copied in the deployed war files in integrated weblogic server . So when running this application it shows error. java.util.MissingResourceException: Can't find bundle for base name
    Can anyone help me out how to include .properties file in build process.???

    Is your resource bundle registered in your project ?
    Go to Project Properties -> Resource Bundle -> Basic Configuration and check if the default Project Bundle name is populated alongwith Resource Bundle type as "Properties Bundle"
    Also another reason might be the following tag might be missing from your jspx/jsff page -
    <c:set var="viewcontrollerBundle"
             value="#{adfBundle['view.ViewControllerBundle']}"/>Edited by: Sudipto Desmukh on May 10, 2012 3:42 PM
    Edited by: Sudipto Desmukh on May 10, 2012 3:45 PM

  • BUG-JDev 11G 5407-Project level resource bundle usage messes the page

    When you define a resource bundle on the project properties and if you are using templates the page is not properly rendered in the design view but it runs fine.
    What happens is , JDev adds a JSTL set tag just before the *<af:pageTemplate>* tag and this confuses the designer. To workaround I defined the bundle variable in faces-config, it worked fine for the existing texts but when you add a new text to the page JDev keeps adding this set tag at the beginning of the page and you need delete it each time.
    It looks like a bug to me ..
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces"
              xmlns:mcc="http://com.micros.adf.controls"
              xmlns:c="http://java.sun.com/jsp/jstl/core">
    <c:set var="abcdmainBundle"
             value="#{adfBundle['com.abcd.view.zzzz.messages.AbcdMain']}"/>
      <af:pageTemplate viewId="/tmpl/abcdMainFgTmpl.jspx" id="pt1">
        <f:facet name="main">
     

    Hi,
    we have the same issue and therefore do not use the feature of the property inspector.
    Instead we open the *.properties file in jdev and edit it manually.
    There is bug 7537379 around this c:set tag which MAY BE fixed in the next release (11.1.1.2.0) but I don't know if this bug also covers exactly your problem.
    regards
    Peter

  • Allowing EL expression in a resource bundles

    Mojarra 2.1.7-jbossorg-1 (20120227-1401)
    JBoss 7.1.1
    EL expressions in a resource bundle are currently not evaluated. That is, an an example, I have the following in the requiredMessage attribute of a JSF input control:
    requiredMessage="Status for #{someBean.documentMap[claimDocument.id].description} is required."I would like to move this to a messages.properties file like so:
    required.claimDocumentStatus=Status for #{someBean.documentMap[claimDocument.id].description} is required... so that the requiredMessage attribute becomes:
    requiredMessage="#{msg['required.claimDocumentStatus']}"Now the output for h:message(s) is
    Status for #{someBean.documentMap[claimDocument.id].description} is required.As I have found out, JSF resource bundles does not resolve EL expressions:
    http://stackoverflow.com/questions/6547136/el-variable-in-jsf-resourcebundle
    What I am trying to do is to allow such resolution / resolving to take place for JSF resource bundles. Now there is a class called "javax.el.ResourceBundleELResolver". I was wondering what it would take to extend this class to allow such a thing to take place. There does not seem to be a way to override it or to specify a custom resolver via faces-config.xml.
    Any thoughts ?
    Edited by: jmsjr on 14-Jan-2013 21:53

    jmsjr wrote:
    gimbal2 wrote:
    IMO this requirement, if it is possible to implement, is only going to lead to a hard to maintain application. But I guess that's something you have to experience before you believe it.
    You can't use EL directly in a resource bundle out of the box, but it is possible to parametrize them anyway, did you know that? Perhaps that is already good enough for you.
    http://murygin.wordpress.com/2010/04/23/parameter-substitution-in-resource-bundles/
    http://stackoverflow.com/questions/5697189/pass-parameters-to-messages-from-resource-bundle-to-components-other-than-hou
    Yes, I am aware of parameterising the resource bundles. However, these require you to use f:param .. and the last time I tried, these parameters were not available / visible at the requiredMessage attribute. I'll try it again anyway.As I have re-discovered, you cannot parameterise the requiredMessage attribute.
    http://stackoverflow.com/questions/9280915/how-to-parameterize-requiredmessage-attribute-in-composite-component
    The other alternative I am looking at, for the cases where the requiredMessage needs to be parameterised, or needs to have dynamic content, is to call a backing method for the requiredMessage attribute, from which I can then do whatever I need, even use EL expressions. I was thinking of this as a last resort.
    On the other hand, when one uses the validator attribute, usually one ends up adding one or multiple FacesMessage in code within the method being called, where the string of the message already comes from a resource bundle. I was trying to have a delineation whereby:
    1) requiredMessage should only use resource bundles, no backing bean method called.
    2) FacesMessages added via the method called by the validator attribute is OK

  • Accessing resource bundle in h:inputText

    Hi,
    I am trying to dynamically populate the label attribute of <h:inputText tag;
    <h:inputText id="fullNameField" value="#{newUserFormBean.fullName}"
                                  label="#{resourceBundle.fullName}">
    <f:validateLength minimum="3" maximum="64"/>
    </h:inputText>When I validate this field i want to populate the error message with the value of label attribute from resource bundle. But it isn't showing up anything, but if i hard code the value of the label field, it displays that value. How do i resolve it?
    Thanks.
    Edited by: Mujju101 on Aug 29, 2010 10:26 PM
    Edited by: Mujju101 on Aug 29, 2010 10:26 PM

    Yes it does show up when i use
    <h:outputLabel value="#{resourceBundle.label_fullName}:" styleClass="label" />or either:
    <h:outputText value="#{resourceBundle.label_fullName}:" styleClass="label" /> It errs only when used in <h:inputTextEdited by: Mujju101 on Aug 30, 2010 1:17 AM
    Edited by: Mujju101 on Aug 30, 2010 1:18 AM

  • Resource bundle naming issue across platforms

    Sorry, but there's no issue anymore. After a complete restart of the windows server it now accepts lowercase "da".
    We're using resource bundles to internationalize our app for English and Danish users. The default resource bundle is named "ViewControllerBundle" and the Danish bundle is named "ViewControllerBundle_DA" (on windows at least).
    Our problem occurs, when we deploy the application on different platforms. At the moment we have Weblogic 10.3.5 running on Linux and on Windows. Our development environment (JDeveloper 11.1.2) is running on Windows.
    When we deploy the application on Weblogic/Linux we need to rename the Danish resource bundle to lowercase "da", like "ViewControllerBundle_da".
    When we deploy on Windows or runs the application from JDeveloper we need to name the Danish resource bundle with uppercase "DA", like "ViewControllerBundle_DA".
    If we don't rename the bundles we're not able to display danish labels etc.
    I would like to know, whether we are naming the bundle the right way or whether it is possible to avoid this manual renaming before deploy. We would like to use the same EAR file for all the servers, if possible.
    From faces-config:
    <locale-config>
    <default-locale>da_DK</default-locale>
    <supported-locale>da_DK</supported-locale>
    <supported-locale>en_GB</supported-locale>
    </locale-config>
    Edited by: wmjaboj on 2011-08-30 02:45

    b) In some parts on our website, we need to show data, depending on an attribute in a user's profile. So, for instance, if the user is not an administrator, the address shouldn't be shown when his profile is shown to a regular user. Is there an elegant way to solve this? I'm a Struts programmer (first JSF project) and normally you do <c:if test="${}">, but that's not possible in JSF :-).You can certainly use JSTL in JSF. You need at least JSF 1.2 at a JSP 2.1 environment and JSTL 1.2. Google for "unified EL" in Sun.com. But if you want to use a JSF-only solution, then make use of the 'rendered' attribute which is supported by every JSF HTML component and a few JSF core components. It accepts a boolean expression and when it evaluates to true, then the component will be rendered in the view.
    E.g.<h:panelGroup rendered="#{user.admin}">
        <h:outputText value="I am an admin." />
    </h:panelGroup>where the User bean look likepublic class User {
        public boolean isAdmin() {
            return admin;
    }Here are some more EL examples which you can use in the 'rendered' attribute:<h:someComponent rendered="#{myBean.booleanValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue}" />
    <h:someComponent rendered="#{myBean.intValue > 10}" />
    <h:someComponent rendered="#{myBean.objectValue == null}" />
    <h:someComponent rendered="#{myBean.stringValue != 'someValue'}" />
    <h:someComponent rendered="#{!empty myBean.collectionValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue && myBean.intValue != 0}" />
    <h:someComponent rendered="#{myBean.stringValue == 'oneValue' || myBean.stringValue == 'anotherValue'}" />

  • Clearing resource bundle cache - can it be done? how?

    How can I refresh/clear the resource bundle cache?
    I'm using JDK1.6 (under Tomact), been trying to use the ResourceBundle.clearCache(); method as indicated in the [International Enhancements in Java SE 6|http://java.sun.com/developer/technicalArticles/javase/i18n_enhance/#cache-expire] article with no effect.
    Code example:
    ResourceBundle.clearCache();
    ResourceBundle bundle = ResourceBundle.getBundle("conf.L10N.portal", ServletActionContext.getContext().getLocale());
    ...Change the resource bundle file made no effect and the same values kept coming from the cache.
    Does the clearCache method works? Am I doing something wrong?
    Thanks,
    Elad

    This works for me:
    import java.io.*;
    import java.util.*;
    public class ResourceBundleTest {
        public static void main(String[] args) throws IOException {
            ResourceBundle res = ResourceBundle.getBundle("res");
            System.out.println(res.getString("foo"));
            System.out.print("edit properties then type any char:");
            int ch = System.in.read();
            ResourceBundle.clearCache();
            res = ResourceBundle.getBundle("res");
            System.out.println(res.getString("foo"));
    }Could you need the version that takes a class loader? Have you tried using timetolive?

  • How to use resource bundles?

    I have a requirement to translate the test that appears on the custom buttons of my portal application. I know resource bundles are part of .properties file that are delivered in Classes floder. But i am not sure how should i make use of this in translating the button text. It would be grate if someone knows it. I will be  very helpfull.
    Regards,
    Ameya

    Hi Ameya,
    [This link|http://help.sap.com/saphelp_nw04/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm] will provide you information on how to implement Portal Content Translation.
    [This link|http://help.sap.com/saphelp_nw04/helpdata/en/62/8b1d40bb37e569e10000000a155106/frameset.htm] will explain how to create and access Resource Bundles (read the entire chapter).
    Hope it helps,
    Roy
    Edited by: Roy Cohen on Nov 26, 2008 3:21 PM

  • User visible text in Database or Resource Bundle?

    What is the right approach to store user visible text (UI Lables) in a J2EE web application?
    a. Database
    b. Resource bundle
    The criteria here is the scalability, ease of maintainance.
    Thanks for your help!

    Just to add to the above.
    The choice can also depend on how static are these UI Labels and at what frequency are the updates. If your application allows the administrator or end users to edit the UI Label text, then storing them in the database will give you a lot more flexibility.
    As Justin mentioned, database allows for centralized storage; hence if your application includes other programming technologies like PHP, C/C++, Perl, and PLSQL etc., then the database can act as a single repository that capture all your application translation needs; it also means that you can share the translations between these modules or other applications.
    There is no doubt that resource bundle offers the better performance. If that is a concern, you can consider a hybrid approach, where the resource bundle is generated based on the translations maintained inside the database.
    Nat

  • Avoid automatic resource bundle creation in JDeveloper?

    Hi! I have a question.
    My application consists of few modules - jar files. One module "Translations" is designed to supply the application with translations that are extracted from a database. So that module contains List resource bundle as a java class, let's call it DBbundle.java. The problem is when I try to use this bundle in other modules. When I set that DBbundle should be the label translations supplier for view objects in some other module, JDeveloper automatically creates that DBbundle in that same workspace, though I import "Translations" module in that workspace. I also set Project properties -> Resource bundle on a project to use DBbundle (from "Translations" module) and uncheck "Automatically Synchronize Bundle", "Warn About Hard-coded Translatable Strings" and "Always Prompt for Description" checkboxes.
    So every time I edit a view, JDeveloper automatically creates DBbundle in that project. This is very annoying "feature". Does anyone know how to avoid this kind of behaviour?
    This is how I set bundle on view objects
    <ResourceBundle>
            <JavaResourceBundle
                MsgBundleClass="framework.translations.resources.DBbundle"/>
    </ResourceBundle>
    The same goes for Project properties -> Resource bundle
    Please, anyone?
    I use JDeveloper 11.1.2.3.0.

    Please, no one knows?

Maybe you are looking for

  • The folder path "program files" contains an invalid character

    All of a sudden this morning this phrase shows up when I try to open up my itunes. My daughter was over last night and stuck her small playlist in my library. I do not know if this is the cause but now itunes won't open. I do not know what to do. Any

  • My ipod wont charge. The screen flashed white yesterday and now it doesnt work

    My ipod wont charge. It died yesterday and when i did the lock home button thing the screen flashed white. After that the dead signal wont even pop up now an suggestion. Its a ipod touch 4 generation, 36gb I tried charging it to my computer, wii,tv,

  • Skype chat links are not opening in firefox on Mac

    Hello, I have Mac book pro running OS 10.6.8 "Snow Leopard", skype 6.15 (335), and my default browser is Firefox version 32.0.3. Recently I experience a problem when someone send me a link it dose not open in Firefox, actually it switch to Firefox wh

  • Real problem with installer disk

    I had my laptop bag stolen so I went to install my Logic Studio on my macbook pro but the disk was in my case with my logic pro 7 dongle. My Logic 8 was an upgrade. I got a new dongle from apple yesterday but apple tech was useless in trying to find

  • HT204023 Maps on I-phone 5

    How do I remove 'routes ' from maps on my i-phone which are no longer required ??