Problem in using resource bundle in labels and error message

Hi All,
Anyone please help me to fix the problem.
Actually i am using resource bundle for displaying labels in the jspx, since i developing the page for multilingual that's why i am using bundle in the label attribute.
When i throw the validation error its displaying like this
com.sun.faces.el.ValueBindingImpl@106cf24 - Value required.
How can i fix the code in order display like this
PO Number - Value required.
Kindly provide the syntax and changes to be done or sample code.
Thanks & Regards
Vimalan Balan

Hi,
how do you throw the validation error? Are you adding the message explicitly or what doyou do ? Note that if you reference a binding in your validation then the binding needs to be referenced either by bindings.attr.label or bindings.attr.inputValue.
Frank

Similar Messages

  • Problem using Resource Bundle in XSLT File

    Hi All,
    I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
    The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
    java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
    Follow the code from my Stylesheet that i'm calling the resource bundle:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="page">
    <html>
    <body>
    <xsl:apply-templates select="paragraph"/>
    <xsl:variable name="resources" select="java:getBundle('thoth')"/>
    <xsl:value-of select="java:getString($resources,'general.title')"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
    I would appreciate any help
    thanks in advance and Regards
    Fabio

    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
    Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
    It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
    Let me know if this does not work.
    regards,
    Abhishek.

  • Using resource bundler with a specific encoding type

    Hi All,
    Using resource bundler class in Java one can pass the key and get the appropriate string value for that in appropriate language. These strings can be stored in a class (BuldlerList) or in some file.
    My doubt is can I specify the encoding type of the string while passing the key ?
    This might be needed in a case like follows. Say I have a Java Swing application for which I want to get the labels in appropriate language. The application is Windows based. The methods in resource buldler class while getting the string value for a key uses platform's default encoding type. So if I store my file containing all the resource bundler in UTF-8 I can't read them properly from an Windows 2000 system having Japanese as the locale. The constraint is that you can never make Windows default platform encoding as UTF-8 (or something equivalent for Unicode). In that case one cannot developed a truly internationalised application in this frame work.
    Any comments/suggestion/input will be highly appreciated.
    Thanks,
    Sourav

    I dunno 'bout the bundles BUT u can possiblly use XML
    instead.
    u can have a attribute type that specifies the encoding
    type for the content. This will be a totally application
    specific approach BUT it will work.. that much I am sure
    of. IF u read this attribute in your application first and
    then read the value, in that pre-specified encoding, ur
    problem could be solved.
    Just like resource bundles, XML files will be stored in
    local machines only. The only thing is u need a
    JAXP API for processing them.
    aXe!

  • Best practices for building menus using resource bundles?

    Greetings; I am curious to find out what the current best practices people are using to build menus/menu bars using resource bundles, specifically ListResourceBundle.
    What I am trying to figure out is how best to write my Swing application so it does not need to know what menu items it needs to grab from the resource bundle.
    The only idea I have come up with is this:
    class MyBundle extends ListResourceBundle {
    private Object[][] contents = {
            {"menubar", { {"menu.file.item", "blah"}, ....} }
    }Inside the GUI class:
    Object[][] menubar = resourceBundle.getObject("menubar");I would then iterate over the menu bar items and build the menu. I would have to use a naming scheme and then parse appropriately to know when to start a new menu, when a submenu occurs, etc.
    Is this the common practice, or does anyone know of a more clever way of doing this? I've searched various FAQs and googled about, but I have yet to come across any sort of tutorial or page that covers this.

    Anyone have any input on this? Am I close to the solution people are
    using out in real production environments?

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

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

  • Problem while using ADFLogger to separate serverlogs and application logs.

    I am facing one problem with ADFLogger, when I create my own custom logger as I want my log file should be separate and
    it should not contain server logs with it.
    and also I don't know how to change the format of logs while using ADFLogger?

    I have opened logging.xml and In structure window, I expanded log-handlers and I checked for log_handler with name ‘odl-handler’
    and then I created a copy of existing odl-handler and changed the name from odl-handler to some custom name xyz-handler.
    in the property called path, and then I changed the default name ${domain.home}/servers/${weblogic.Name}/logs/${weblogic.Name}-diagnostic.log
    to ${domain.home}/servers/${weblogic.Name}/logs/xyz-diagnostic.log file.
    and then I created a Backing Bean and used info and error message of ADFLogger class
    and finally i added mine package in logging.xml and then I added console-handler and mine xyz-handler for it. Then custom log file was created but it was empty and i was able to see console logs?
    Can u please tell me i was not able to see logs in my custom file.

  • When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)

    When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)

    Hi chasore,
    Are you still facing this issue?
    Is this issue happening with all the documents you have. If yes, i would suggest try uninstall and reinstall. Or if the documents are located on some shared drive try to copy them on local machine and test again.
    Regards,
    Ajlan Huda.

  • How do you export your movie using idvd? I keep getting error messages and notices that I do not have enough space to transfer to a dvd.

    How do you export your movie using idvd? I keep getting error messages and notices that I do not have enough space to transfer to a dvd.

    Can you give us the steps to re-create the problem, and the exact wording of the error message you are getting please.

  • Oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

  • TS2634 My problem - when syncing and error messages  comes up:  iTunes could not sync calendars to the iPhone because an error occurred while margin data."  I've tried turning the phone off and back on, & tried both USB ports but get the same thing.  What

    My problem - when syncing and error messages  comes up:  iTunes could not sync calendars to the iPhone because an error occurred while margin data."  I've tried turning the phone off and back on, & tried both USB ports but get the same thing.  What can I do next since it doesn't give me even one clue as to what the error would be?

    Before I started to resync calendars one by one as suggested in the troubleshooting article, I remembered something that came up in a sync when I first attempted :  a 'which one do you want to keep' message about a repeating calendar event, which came up with three options, one from Calendar, and two from iCal on the phone.  I deleted that event, then went through the calendar resync one by one, and all seems OK now.
    In Music there is a way to find 'ghost' items that show up as grayed-out on the menus, so that you can try to reassociate or delete them.  It would be nice to have a similar way to work with Calendar!
    Thanks for pointing me to the right article.

  • Every time I click on something in GarageBand and error message pops up that says "Error code 25974 was returned by the Audio driver." How do I fix this problem?

    Every time I click on something in GarageBand and error message pops up that says "Error code 25974 was returned by the Audio driver." How do I fix this problem?

    Every time I click on something in GarageBand and error message pops up that says "Error code 25974 was returned by the Audio driver." How do I fix this problem?

  • I have an iphone 4 and i just updated to ios5 and i can't get my music to stay on my iphone and i also keep getting and error message when trying to restore iphone. anyone else having this problem?

    i have an iphone 4 and i just updated to ios5 and i can't get my music to stay on my iphone and i also keep getting and error message when trying to restore iphone. anyone else having this problem?

    When you restore, which error # appears?

  • Can't reload Photoshop elements 7 on my windows 7 operating system. Everything goes well and it appears to be installing. All of the sudden the Installer starts to roll back everything and error message shows up saying I can't use this product at this tim

    can't reload Photoshop elements 7 on my windows 7 operating system. Everything goes well and it appears to be installing. All of the sudden the Installer starts to roll back everything and error message shows up saying I can't use this product at this time.

    How do I do that? I'm the only user on the laptop - I kind of assumed I already was running the install as the admin.

  • Used i phone 3 g and error 1015

    used i phone 3 g and error 1015

    The phone is jailbroken. You can not get help here. Discussing jailbroken phones is forbidden by the terms of service.

Maybe you are looking for

  • Getting values from an arraylist?

    Hi there, I have the following problem. I wish to fill my txt fields with info from and arraylist right but i have the command right. I'm from Ireland and its paddys day and im stuck inside doing java all day so please help me so I can head off to th

  • Various problems in certains games.... please help me guys

    Hi, I have a weird problem when I start up Pacific Fighters and Chronicles of Riddick. The thing is, the game takes at least 15 minutes to open and when using the Caps Lock key, the green button on the keyboard takes quite some time to enlighten beca

  • Performing Init and Init of Delta in BI 7.0

    Hi, As we use to create two info packages in BW 3.5, one for "INIT" and another for "INIT of Delta". Do we have to create two infopackages in BI 7.0 too? If we create two info Packages, then do we have to create two DTP's too? Please let me know how

  • Problems with Adobe Acrobat 9 Standard on Windows 7

    used to have this on my Window XP; now Windows 7 computer and tried to download Adobe Acrobat 9 Standard. It not only does not work, I cannot use the Adobe Acrobate Reader which was already on the computer. Any help would be appreciated.

  • Dreamweaver stuck in endless upload/file transfer when check-in enabled

    I'm currently working on a site for a client that has 206 pages and some 2870 files in total (including images, PDFs and some .mp3 and .wav files). The client works on the site in Contribute. This is a site I initially created 5 years ago - I'm doing