Resource Bundle var names

After I do the necessary steps in the project properties to set up the resource bundle, when I start using the resource bundle in my JSF, JDeveloper adds the following line into the JSF.
<c:set var="viewcontrollerBundle1"
value="#{adfBundle['resb.view.untitled1Bundle']}"/>
If I have multiple bundles, Jdeveloper adds one entry per resource bundles that I use within my JSF. But the name that is used is different in different JSF pages for the same bundle. I need to manually edit them. Is there a better way of handling this? Can we define the var that it has to be used for each bundle some where?
Thanks,
Manoj

Hi Manoj,
You dont need to declare it in the pages but configure them in faces-config.xml like below:
<resource-bundle>
      <base-name>YourBaseResourceBundle</base-name>
      <var>res</var>
    </resource-bundle>Regards,
Pino

Similar Messages

  • Resource Bundle var unknown in task flow

    Hello everyone,
    I'm using a resource bundle in my web-app. This is the entry in the faces-config.xml file:
    <resource-bundle>
          <base-name>oracle.bundles.CustomUIBundle</base-name>
          <var>bundle</var>
    </resource-bundle>
    When I use the EL expression in my jsf fragments like #{bundle['key']} I have no error or warning messages, but when I use it in a train stop label in a Task Flow with train I have the following error and warning messages:
    Error: EL token "bundle" is unknown
    Warning: Reference "bundle" not found
    The labels are correctly shown at runtime, but this error make me unconfortable during the developing because I cannot know immediately if a "real" error is present.
    Thanks in advance.
    Manuel

    Timo,
    sorry for my forgetfulness: JDev 11.1.2.3.0.
    I know that it works fine at runtime but is a bit frustrating to see that big red cross on the task flow views even though the code is correct. That's all.
    Anyway, thanks for your help.
    Manuel

  • Configuration for resource bundle type XLF

    I have defined a resource bundle of type xlf as MyXLFBundle.xlf and updated faces-config.xml for new bundle as below
        <resource-bundle>
          <base-name>MyXLFBundle</base-name>
          <var>myXLFBundle</var>
        </resource-bundle>
    In jsff page I have used above bundle by wrapping it around adfBundle as below
    <c:set var="myXLFBundle"  value="#{adfBundle['MyXLFBundle']}"/> and used it to set label properties for various components.
    I want to use XLF resource bundle with out explicitly wrapping it into adfBundle on every page.
    Is there a better way where I can configure once, say in faces-config.xml and do not wrap in every page.

    Copying
    /Software/FB\ Eclipse\ Plugin/Adobe\ Flex\ Builder\ 3\ Plug-in/sdks/2.0.1/frameworks/locale/en_US/charts_rb.swc into
    the 3.5 SDK directory
    /usr/local/lib/flex_sdk/3.5.0/frameworks/locale/en_US
    solves the problem.
    Not sure why as the charts_rb.swc comes from Flex 2.0

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

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

  • Issue with resource bundle.

    Hi ,
    I have been facing a issue with getting properties from resource bundle.
    final ResourceBundle resourceBundle = ResourceBundle.getBundle("config/global");
    I had placed my global.properties file under "WEB-INF/classes/config" folder.It was working fine.I had resinstalled my sun one application server,.Now the server is throwing following exception -
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key record.length
    But the same war file is working fine when I deployed it in sun one app servers running other machines.
    when i changed the code to -
    final ResourceBundle resourceBundle = ResourceBundle.getBundle("config//global");
    it started working in machine as well.
    How can I resolve this?
    Thanks,.
    Vivek

    And also you can try like this,
    My locale file in backing bean is like this
    Locale bean
    public class LocaleBean {
    public String language = "en";
    * @return
    public void changeLocale(String language) {
    System.out.println("changeLocale " + language);
    this.language = language;
    this.setLanguage(language);
    Locale newLocale = new Locale(this.language);
    FacesContext context = FacesContext.getCurrentInstance();
    context.getViewRoot().setLocale(newLocale);
    JSFUtils.storeOnSession("LOCALE", language);
    System.out.println("end of change locale");
    public void setLanguage(String language) {
    this.language = language;
    public String getLanguage() {
    return language;
    public void changeLocaleAction(ActionEvent actionEvent) {
    changeLocale(this.language);
    // Add event code here...
    Faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    <resource-bundle>
    <base-name>Resorces.xx</base-name>
    <var>message</var>
    </resource-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>ar</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <managed-bean-name>localeBean</managed-bean-name>
    <managed-bean-class>LocaleBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    </faces-config>
    and my resource bundle as this :
    xx_ar_AR.properties
    xx.properties
    And Project properties>compiler property >character encoding > UTF-8
    select Tools-->Preferences-->Environment
    and then set the encoding to UTF-8.
    no need to change your trinidad-config.xml
    Regards
    PY

  • How to use resource bundle entries for column names/title in .rpt file

    <p>Our application needs to be able to support reporting in multiple languages. Hence we do not want to put language specifiec column names in the rpt file but rather use text for a particular locale during runtime which in java world is easily achievable using Resource Bundle entries.</p><p>Does JRC allow for using resource bundle entries as column names or for that matter for titles etc. in the .rpt file?</p>

    Hi,
       You can follow this step-by-step tutorial to find out how to achieve this using our User Function Libraries (UFLs). The walkthrough can be found here:
    <a href="http://diamond.businessobjects.com/node/412">http://diamond.businessobjects.com/node/412</a>
    Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>

  • [svn:fx-trunk] 7795: fix locale names used in resource bundles for simplified Chinese and traditional Chinese  .

    Revision: 7795
    Author:   [email protected]
    Date:     2009-06-12 12:18:13 -0700 (Fri, 12 Jun 2009)
    Log Message:
    fix locale names used in resource bundles for simplified Chinese and traditional Chinese . zh_cn to zh_CN  and zh_tw to zh_TW
    bug: https://bugs.adobe.com/jira/browse/SDK-21174
    qa: localization team (yes)
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21174
    Modified Paths:
        flex/sdk/trunk/modules/compiler/build.xml

    I'm more of a 1.3 chick myself, but the words are the same just in a different language.
    1. Is Tomcat running?
    2. Have you configured the ajp13 connector on 8009 in Tomcat? (Should it be ajp13 for Apache 2.0? - I really must upgrade)

  • Problem with resource bundle messages written inside script of jsf included

    Hi,
    I have a main jsf page with the name Details.jsp.In this page I included Contacts jsf page.I am using resouce bundle for my application.I written all the output text tags with this resouce bundle keys.And I written the Details main page javascript alerts with this resource bundle correctly.But the problem is,I am having script alrts in my included jsf apge i.e. in Contacts page.When I write the script alerts with the resource bundle keys,it is not displaying properly.
    ---------------------------------------------------------------------Details.jsp--------------------------------------
    <f:loadBundle basename="Details_en" var="msg"/>
    <f:view>
    <head>
    <script>
    function saveFn()
    var d=document.getElementById('dform:dinputtext').value;
    if(d=='')
    alert('<h:outputText value="#{msg.requiredValidationMsgkey}"/>');
    return false;
    if(emailValidation()==false)
    return false;
    </script>
    </head>
    <body>
    <h:form id="dform">
    <h:outputText value="#{msg.nameHeader}"/>
    <h:inputText value="#{Bean.name}" id="dinputtext"/>
    <jsp:include page="/Contacts.jsp"/>
    <h:commandButton value="Save" onclick="if(saveFn()==false) return false;" action="#{Bean.saveAction}"/>
    </h:form>
    </body>
    </f:view>
    -------------------------------------------------Contacts.jsp----------------------------------------
    <script>
    function emailValidation()
    var em= document.getElementById('dform:cSubView:cemailtext').value;
    if(em=='')
    alert('<h:outputText value="#{msg.emailValidationMsgKey}"/>');
    return false;
    </script>
    <f:subview id="cSubView">
    <h:inputText value="#{CBean.email}" id="cemailtext" />
    </f:subview>
    The alert message in SaveFn is getting appeared coorectly.But in the function emailValidation is not geting dispalyed correctly.It is appearing as normat output text in the page,but not as an alert.

    Thanks for the reply.
    But I want to do some validations using javascript not only the required validation.
    In my application 5 text fields and one command button are there .Depending upon combination of 2 or 3 text field values, I have to get the values when I pressed command button.
    If I use the h:messages for validators,the conversion error is occurring when the text field takes wrong data.So it is going to give incorrect results when I press the command button.Thats why I am using javascript.
    When user enters wrong data,I want to do validation using javascript and I want to display the alert message using resource bundle.

  • Error in Loading Resource Bundle in JSP

    Hi
    I have one Resource Bundle which working well in my JSP page
    i declared as below
    <f:loadBundle basename="com.ApplicationLabels" var="lblbundle"/>
    Ok then i want to add another new resource bundle and i put it below the first loadBundle tag
    <f:loadBundle basename="com.newLabels" var="newbundle"/>
    But when i access my JSP page it keeps giving me
    Exception Details: javax.faces.el.PropertyNotFoundException
    Error testing property 'test' in bean of type null
    Possible Source of Error:
    Class Name: com.sun.faces.el.PropertyResolverImpl
    File Name: PropertyResolverImpl.java
    Method Name: getType
    Line Number: 342
    What are the things i need to configure after i creatting properties file for my Application Messages in JSP page
    any idea about this exception?
    Thanks.

    Hi Voodi,
    in the record i have many columns that refered to date, i have: Valid-from, Valid-To H, created on, Valid From, Valid To- i don't know where is the specified column to check the required format, in PSA in the data package 19 i have 13755 Records posted and i have checked many records to control these columns but i don't find something that demonstrate me a difference between the format, i don't know why the error signalated is only 6701...but you think is only a problem of format it's not not somthing that i have to signalated to the person who works on R/3 if there is something to correct in the datasource?
    Thanks
    Bilal

  • 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

  • Error: Could not find compiled resource bundle 'components' for locale 'en_US'

    We are porting a fairly large body of Flex3 code developed under FlexBuilder 3 to Flex4 under FlashBuilder 4.  Most of the conversion appears to be working fine, with one exception.  When I launch the Flex4 version, all my data interchanges with the server works.  Just as it is about to show the UI, the following error occurs:
         Error: Could not find compiled resource bundle 'components' for locale 'en_US'
    I am actually using a locale of fr_FR, but I assume it couldn't find that, reverted to en_US, failed again and then barfed.  If I look in
         ~Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\fr_FR
    I see a lot of swc files, and of course no 'components.swc'.  I believe the problem is that our Flex3 code is using mx components, and the compatibility mode is not properly handling it for some reason.  I think this is mostly from our in-house UI library.  The properties for that library (and for my main app I am testing now) have:
         - Use default SDK (currently "Flex 4.0")
         - Use Flex 3 compability mode
         - Use minimum version (Flash Player) required by the Flex SDK
         - Enable strict type checking
         - Enable warnings
    I also tried putting the compatibility flag in the mxmlc compile line, with no change in behavior.  This project is built by the following script:
    ruby scripts/concat_properties.rb -o resources.properties ^
         src/main/flex/locale/fr_common/res_myname_fr_common.properties ^
         src/main/flex/locale/fr_common/scout/res_myname_scout_fr_common.properties ^
         src/main/flex/locale/fr_fr/res_myname_fr_fr.properties ^
         ../../scout/common/src/locale/fr_common/mypals/resources.properties
    mxmlc -locale=fr_FR -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    copy src\main\resources\bundles\mypals\fr_fr_resources.swf ^
         bin-debug\bundles\mypals
    What have I missed???

    You have two posts. I will try to answer each completely.  Second one first. You say I should change my build to include the framework resources.  I am afraid I am not sure which and what to do there.  We combine all our properties file into one large one, then use the following build line:
    mxmlc -locale=fr_FR,en_US -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    I am assuming you are telling me to change the "-include-resource-bundles" line, but what to add?  The "sdks\4.0.0\frameworks\locale\en_US" holds 13 swf files.  I tried adding that entire folder (along with the fr_FR folder) to the project library path (in the project properties dialog), but that made no change.  I also tried reverting the library path tab back to "MX Only" instead of "MX + Spark", but again no change.
    ====================
    For your first message, I did a search for 'spark' in the entire project.  It only existed on 3 lines, each at the start of css files:
        @namespace s "library://ns.adobe.com/flex/spark";
    I had put those in based on reading needed changes to naming in CSS.  Since I was not actually using any spark ('s') components yet, I removed these lines.  The entire project now does not have the word 'spark' anywhere in it. No change in behavior (as I expected).
    I did a search for "s:" throughout the project.  That does exist in probably 100 places, but all are legitimate. Things like (xmlns:mx="http://www.adobe.com/2006/mxml") or variable names ("var matches:Object").  No reference to any s: object.  (While on the topic, why does FlashBuilder still not have a "whole word" box to limit searches??).
    Note that when I first reported this problem, the compiler was set to ONLY support fr_FR.  In fighting this, I changed it to "en_US,fr_FR" hoping that would tell the compiler to load whatever en_US items it was looking for.  We really do not want any English support in this version. (We do have another SWF created with only support for en_US, and another for en_UK, etc.  Each language is a separate node on our server, so there is no need to mix & match at runtime)
    The console shows a lot of swf loads that I do not understand...
    The console output shows (my comments after ==> indicator)
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 2,229,992 bytes after decompression
                 ==> our locale is set here, after the above load and before the next line
    Look for name file at: ./data/fr_fr/names.csv
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 21,200 bytes after decompression
    Loaded 2278 names.       ==> indicates successful load of data retrieved from server
    Loaded 154 bad words     ==> our second data set has been retrieved and loaded
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 58,777 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 322,606 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\bundles\mypals\fr_fr_resources.swf - 595,025 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
        ==> not sure what this next warning means.  I'm guessing I will later have to research it and return to 'secure' comm with server, but I'm ignoring for now
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    Resource bundle loaded for locale fr_fr  ==> at this point, we appear to have our French assets loaded successfully
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 1,303,976 bytes after decompression
    [Unload SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf  ==> some runs see this, but others do not. I expect it is a timing issue of whether it is reached or not before the crash
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 794,898 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 194,635 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 261,589 bytes after decompression
    ==> everything looks fine up to here.  This is then when the third call to installCompiledResourceBundles occurs
    Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at mx.core::FlexModuleFactory/docFrameListener()

  • 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

Maybe you are looking for

  • Looking for a Replacement program for the Multi page format in AppleWorks draw which will allow me to make poster size prints.

    AW draw allows you to specify pages across and down which can be printed out and cut and pasted into a poster. Does anyone else know of a program that will do this so I can upgrade to Lion? I have been holding off upgrading since I don't want to lose

  • X REALLY slow when external monitor plugged in at boot

    Hello all, I am running Kernel 2.6.29.4 with xf86-video-intel 2.7.1-1, Xorg 1.6.1.901 and EXA acceleration (no KMS) on my thinkpad T61 with an Intel X3100. (I keep up-to-date stable.) Whenever I have the VGA monitor plugged in to my laptop at boot ti

  • One select using dynamic statements....

    Hello , I am using for all entries. I want to combine all in one because currently I have to write two select statements based on condition for internal table not empty. IF IT_WIID[] IS NOT INITIAL. SELECT * FROM zcust into CORRESPONDING FIELDS OF TA

  • Can I use my new @me email addy on an iPhone 3g?

    I have upgraded my imac and ipad to i0S5 and use icloud on both. Haven't upgraded from my iphone 3G yet. I'm hanging on for the iphone 5 So I want to use my new @me on my iphone and have tried to sync it via itunes but it says my password isn't corre

  • Anyone find the cure for the headphones probl

    the problem has always stayed. first time creatvie charged $20 to fix it. And this time they are asking for $40. Now they say $40 is for diagnosis and repair. duh!!! its a common problem and we both know that you have to open it and solder the new ja