Trouble resolving resource bundle message with validator.

Hi,
I'm using an af:validateDateTimeRange component (with only a minimum date), and want to change the validation message that is displayed to a custom message.
I have this message in the resource bundle, but the component does not seems to pick it up, and just uses the default message instead. The only ways I've got it to display the correct message are :
- Hardcoding the message into the minimumMessageDetail attribute (currently done this way).
- binding the minimumMessageDetail attribute to a managed bean's property.
Is there any reason why it's not picking up the message from the resource bundle? (Yes, the resource bundle is set up correctly - it's used everywhere throughout the application.)

Ok my diagnosis of this is that references to keys in a property bundles from the attributes
maximumMessageDetail
minimumMessageDetail
notInRangeMessageDetail
Do not work. Hardcoded values work in notInRangeMessageDetail, but not the other two - does that agree with what you see?

Similar Messages

  • Proj cannot run on LCDS 2.6 ES due to "Unable to resolve resource bundle "datamanagement" for locale "en_US"

    hi, all,
    We have developped an application on Flex Build 3 (run
    successfully), but failed when we try to deploy it on Tomcat with
    LCDS 2.5 ES because some components cannot be resolved correctly on
    LCDS 2.5. We then downloaded a 2.6 ES Beta 2, but still cannot run
    the application, the error msg is "Unable to resolve resource
    bundle "datamanagement" for locale "en_US".
    anyone knows how to deploy the application on LCDS 2.6 ES?
    Many thanks.

    In your WEB-INF/flex/locale/en_US dir there should be a file
    called fds_rd.swc. Is that there?

  • Error: Unable to resolve resource bundle "fiber" for locale "en_US".

    Hi all,
    Im trying to create a resources.swf file for the purpose of dynamic localization of our application. However, I keep getting this error thrown when I try to run the ant script.
    Im running Flash Builder 4, the sdk is Flex 4.5.1 with AIR 3.0 and a Windows 7-64 bit machine (just mentioning as a few posts associated it with the OS).
    After searching some of the forum posts, ( http://forums.adobe.com/thread/606383)
    1> I checked the eclipse.ini file and found the following lines already in there.
         -nl
         en_US
    2> My compiler options already has -locale en_US specified.
    3> I tried including the swc files as suggested in the referenced thread, both as a referenced library and by manually copying the swcs to the project, but neither of them helped.
         "import 2 swc folders (Under Properties -> Flex Build Path -> Library Path):
         /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/libs
         and
         /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/loca le"
    Thanks in advance for your help.
    My build.xml file looks as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <project name="appName" basedir="." default="main">
              <taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/>
              <!-- CHANGE TO YOUR FLEX DIRECTORY //-->
              <property name="FLEX_HOME" value="C:/Users/abc/Documents/flex_sdk_4.5.1.21328_AIR3.0"/>
              <property name="APP_ROOT" value="appName"/>
              <target name="main">
                        <antcall target="en_US"></antcall>
    <!--                    <antcall target="de_DE"></antcall>-->
              </target>
              <target name="en_US">
                        <mxmlc>
                                  <locale>en_US</locale>
                                  <source-path>locale/{locale}</source-path>
                                  <include-resource-bundles>appResource</include-resource-bundles>
                                  <include-resource-bundles>SharedResources</include-resource-bundles>
                                  <include-resource-bundles>collections</include-resource-bundles>
                                  <include-resource-bundles>components</include-resource-bundles>
                                  <include-resource-bundles>containers</include-resource-bundles>
                                  <include-resource-bundles>controls</include-resource-bundles>
                                  <include-resource-bundles>core</include-resource-bundles>
                                  <include-resource-bundles>effects</include-resource-bundles>
                                  <include-resource-bundles>formatters</include-resource-bundles>
                                  <include-resource-bundles>layout</include-resource-bundles>
                                  <include-resource-bundles>logging</include-resource-bundles>
                                  <include-resource-bundles>messaging</include-resource-bundles>
                                  <include-resource-bundles>rpc</include-resource-bundles>
                                  <include-resource-bundles>skins</include-resource-bundles>
                                  <include-resource-bundles>sparkEffects</include-resource-bundles>
                                  <include-resource-bundles>styles</include-resource-bundles>
                                  <include-resource-bundles>textLayout</include-resource-bundles>
                                  <include-resource-bundles>utils</include-resource-bundles>
                                  <include-resource-bundles>validators</include-resource-bundles>
                                  <include-resource-bundles>fiber</include-resource-bundles>
                                  <output>locale/en_US/appName.swf</output>
                        </mxmlc>
              </target>
    </project>
    Thanks & Regards,
    AJ

    I did import the swcs first as a referenced library, by
    Project-> Properties -> Flex Build Path -> Library Path -> add swc folder.
    Secondly, I manually copied the swcs from the folders at
    1>
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4 Plug-in\eclipse\plugins\com.adobe.flexbuilder.dcrad_4.0.0.272416\dcradSwcs\4.0\libs
    files present: fds.swc, fiber.swc and serializers.swc
    2>
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4 Plug-in\eclipse\plugins\com.adobe.flexbuilder.dcrad_4.0.0.272416\dcradSwcs\4.0\locale
    files present: fds_rb.swc, fiber_rb.swc and serializers_rb.swc
    into the libs folder of my project .

  • Unable to resolve resource bundle "fiber"

    Hi all!
    I'm trying to use AMF with PHP in Flash Builder 4 (plug-in version) and I'm having the following error:
    Unable to resolve resource bundle "fiber" for locale "pt_PT". dss Unknown Flex Problem
    I've found a workaround here in which they recommend to add these lines too the beginning of the eclipse.ini file:
    -nl
    en_US
    Nonetheless, even adding those lines to the file, I keep having the same error.
    Anyone knows what might be going wrong?
    Best regards,
    Jorge

    If you're trying to...
    use Adobe's lifecycle/fiber/generated classes/RemoteObjectServiceWrapper
    import com.adobe.fiber.valueobjects.AvailablePropertyIterator
    import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
    etc. etc., here's what I did:
    Don't add those two lines to your ini file. (At least, I'm using Flash Builder 4 and this wasn't necessary for me)
    import 2 swc folders (Under Properties -> Flex Build Path -> Library Path):
    /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/libs
    and
    /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/locale
    (the latter has the swc with the locale and the locations of these files will vary, esp. if you're not on a mac)
    HTH

  • Pure AS3 Project unable to resolve resource bundle

    I've been working on a pure AS3 project in Flash Builder and all has been going just fine. All of a sudden, I started getting errors such as:
    Unable to resolve resource bundle "core" for locale "en_US". Player Unknown Flex Problem
    What in the heck did I likely do?  Any hints welcome.

    I jut saw the posting today.
    Place your local folder in application root
    In project properties : Flex Compiler Argument : additional compiler argument : -source-path ../locale/{locale}
    add this.

  • Error resolving resource bundle "strings"

    Hi
    I'm trying to use Flex 3 to compile the Flex 2 PhotoViewer
    sample project, and encountered this error: 'Unable to resolve
    resource bundle "strings" for locale "en_US".'
    I found the Flex 2 TechNote which suggested to add
    "-use-network=false -library-path+=locale/{locale}
    -source-path+=locale/{locale} -locale=en_US" as compiler options.
    So I tried adding the above options into the build.bat files
    I can find at:
    a) C:\Program Files\Adobe\Flex Builder
    3\sdks\3.1.0\samples\explorer
    b) C:\Program Files\Adobe\Flex Builder
    3\sdks\3.1.0\templates\automation-runtimeloading-files
    but still the error persists.
    Can anyone please advise where I should change the compiler
    options? Thanks!
    Regards
    freshflex

    << Do not post the same question across a number of forums >>

  • Unable to resolve resource bundle "myResources" locale "en_US" ?

    Hi All,
                        I have created two locales one is en_US and Second one is fr_FR. I placed these two files in locale file. These files directory structure is
                    ......\src\locale\en_US and .....\src\locale\fr_FR . After  placing these two files in the project i was compile my application and it is showing just like unable to resolve resource bundle "myResources" locale "en_US"...  can any one help me how to configure the resource bundle in my flex application... i dont have exposure to resource bundle earlier. So plese tell me the configurations step by step.. how to configure...
                           My resource property name is myResource.properties .
    Thanks
    Ram

    If you have already followed the correct directory structure. Then please check the following,
    1. change the compiler arguments, to "-locale=en_US,fr_FR -source-path=locale/{locale}"
    you can find the compiler arguments, by right-clicking over the project name on the flex builder, properties-> flex compiler->compiler options.
    2. please check whether both the locale properties files uses the correct encoding. If not change them to "UTF-8"
    you can find this, by right-clicking over the properties file on the flex builder, properties->resources->text file encoding

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

  • Java: Loading Resource Bundle File with UTF-8

    I have found out all my previous problems now, thank you all for your assitance with this...
    During the time we have worked so solve our problem with UTF-8 charset we have found new problem with this?
    I don't know if this is the right forum to put this up, if not please let us know where to go with this?
    I have prepared both Eclipse (JSP Files) and GlassFish to run all my files in charset UTF-8. Then i got my
    resource bundle files(property files) to use UTF-8 encoding. Everything looks fine in my text editor. Then
    when i upload these pages every character retrieved from my resource bundles look garbled. This is because
    Java loads property files using ISO 8859-1 character encoding.
    This is a problem from Sun i have read on the internet!
    Note: that in JDK 1.6, you can use PropertyResourceBundle constructor to take a Reader which uses UTF-8 encoding.
    please have a look at these links for more info:
    [http://www.kai-mai.com/node/128]
    [http://java.sun.com/javase/6/docs/api/java/util/PropertyResourceBundle.html]
    Note: PropertyResourceBundle can be constructed either from an InputStream or a Reader, which represents a property file.
    Constructing a PropertyResourceBundle instance from an InputStream requires that the input stream be encoded in ISO-8859-1.
    In that case, characters that cannot be represented in ISO-8859-1 encoding must be represented by Unicode Escapes,
    whereas the other constructor which takes a Reader does not have that limitation.
    What i have read and understand is that the real solution to the problem is: Get the fmt lib to use a Reader instead of an
    InputStream. Alternativly if it works get a ResourceBundle instead of creating one that is wrong all the time? I have to create
    my own ResourceBundle instead of using my own fmt lib wich i cannot trust in a way any more. Is this right or am i comletly wrong?
    My WebTexts files, en, sv and ry are my resource property bundles. To be able to read them i will use resource property bundle reader.
    Fmt lib gives me this but it seems that it inciates this in an InputStream (wich is looked to iso-8859-1) instead of a reader who can
    read UTF-8 without no problem. So can i get my fmt lib to change this or not, anybody have an idea about this???

    Torleif wrote:
    Ok, i know there are a few ways of doing this already. The problem is that i have no idea how to use these different problem solving issues. First we have the;
    1. native2ascii command line utility.
    2. use the XML properties format.
    3. other ways of converting from iso-8859-1 to utf-8.
    The last one i have tried already but i never get this to work. So after knowing of 2 standardized solutions you choose to implement your own non-standard soltion? That's usually not a good idea until you've verified that the standardized solution don't help.
    This is also not the best solution to the problem i have to say. This way i will have both properties files and source files to work with and that is to much i think. Either i will use the native2ascii command or use XML properties format like you say here. I need some more insight in how these two work only because i have no idea my self.Uhm .. read [the documentation|http://java.sun.com/javase/6/docs/api/java/util/Properties.html]? loadFromXML/storeToXML work pretty much exactly the same as load/store, except they handle XML. Try it, look at what it produces, learn.
    Could you please help and explain how to use either this native2ascii command line work or how this XML format properties would work for me. Please i need guidance here with this!!![native2ascii is documented as well|http://java.sun.com/javase/6/docs/technotes/tools/windows/native2ascii.html].
    If you have a specific question after reading those, feel free to ask here.
    You really have to work on your Google-fu, it seems to be too weak.

  • Using numbers as resource bundle message references

    I searched (hopefully using the right keywords) but didn't find anything regarding this...how do you use numeric resources in your resource bundle?
    I'm just trying to reuse the message bundle from a different app...the bundle uses all numbers.
    2260=My message
    This tag is in my page...
    <h:outputText value="#{message.2260}"/>
    But I receive the error below...
    Am I missing something? Is there a workaround for this if it is a shortcoming?
    Thanks....
    2004-10-13 09:29:22,093 DEBUG [com.sun.faces.taglib.html_basic.OutputTextTag] - <id: null class: com.sun.faces.taglib.html_basic.OutputTextTag>
    javax.faces.el.ReferenceSyntaxException: Encountered ".2260" at line 1, column 10.
    Was expecting one of:
        ">" ...
        "gt" ...
        "<" ...
        "lt" ...
        "==" ...
        "eq" ...
        "<=" ...
        "le" ...
        ">=" ...
        "ge" ...
        "!=" ...
        "ne" ...
        "+" ...
        "div" ...
        "mod" ...
        "and" ...
        "or" ...
        "||" ...
            at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:912)
            at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:399)
            at com.sun.faces.util.Util.getValueBinding(Util.java:943)
            at com.sun.faces.taglib.html_basic.OutputTextTag.setProperties(OutputTextTag.java:101)
            at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1026)
            at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
            at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:732)
            at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:425)
            at com.sun.faces.taglib.html_basic.OutputTextTag.doStartTag(OutputTextTag.java:149)
            at org.apache.jsp.changeHomeSite_jsp._jspx_meth_h_outputText_16(changeHomeSite_jsp.java:1374)
            at org.apache.jsp.changeHomeSite_jsp._jspx_meth_h_form_0(changeHomeSite_jsp.java:1091)
            at org.apache.jsp.changeHomeSite_jsp._jspx_meth_f_view_0(changeHomeSite_jsp.java:142)
            at org.apache.jsp.changeHomeSite_jsp._jspService(changeHomeSite_jsp.java:93)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
            at java.lang.Thread.run(Thread.java:534)
    Caused by: com.sun.faces.el.impl.parser.ParseException: Encountered ".2260" at line 1, column 10.
    Was expecting one of:
        ">" ...
        "gt" ...
        "<" ...
        "lt" ...
        "==" ...
        "eq" ...
        "<=" ...
        "le" ...
        ">=" ...
        "ge" ...
        "!=" ...
        "ne" ...
        "+" ...
        "div" ...
        "mod" ...
        "and" ...
        "or" ...
        "||" ...
            at com.sun.faces.el.impl.parser.ELParserImpl.generateParseException(ELParserImpl.java:2229)
            at com.sun.faces.el.impl.parser.ELParserImpl.jj_consume_token(ELParserImpl.java:2097)
            at com.sun.faces.el.impl.parser.ELParserImpl.AttrValueExpression(ELParserImpl.java:105)
            at com.sun.faces.el.impl.parser.ELParserImpl.ExpressionString(ELParserImpl.java:45)
            at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:277)
            at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:194)
            at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:904)
            ... 54 more

    That's it, thanks. (Sub 10 minute response? Supercool--does that merit dukies? (new to posting to the forums))

  • Resource Bundle message in EL

    Hi out there,
    I would like to use a message from a resource bundle in an Expression Language expression. In the Java EE 5 Tutorial i saw, that a ResourceBundleELResolver exists that seems to do that, but I don't get it to work.
    Here is what I would like to have:
    <fmt:setBundle basename="my.own.cool.Bundle" var="myBundle" />
    <!-- ... -->
    ${myBundle.myKey}This doesn't work. Can anybody please point me to the right way?
    Thank you!
    Peter

    What server are you using? Does it support JavaEE5?
    The ResourceBundleELResolver seems to be a feature of JSP2.1, and as such is only supported by the newest containers.
    <fmt:message/> tag is probably better to use.
    You can export the result to a var and use that var in an expression.
    ie
    <fmt:message var="result" key="${myBundle.myKey}"/>
    ${result}Ok, so its not the cleanest solution, but it should work.

  • 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

  • Unable to refer to custom resource bundle in WPC content rendered with xslt

    Hi,
    I need to use the resource bundle messages inside WPC content.
    When rendered by standard xsl templates the  call to XSLTHelper class is done to retrieve message from the standard SAP resource bundle com.sap.nw.wpc.bundles.core.properties, like this:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                         xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
    <xsl:value-of select="wpc:getString([key defined in sap bundle], string(/document/@locale))"/>
    The problem is that helper class doesn't provide any API to use custom bundles.
    I tried to create xslt helper (including config in KM), but that didn't succeed neither. It would return with error NoClassDefFound.
    Could you please help on configuring xslt helper and registering it with xslt rendering engine for Web Page Composer? I could not find any how-to guides on xslt helpers for WPC.
    Thanks in advance.
    Ruslan

    Hi
    Did you find a solution?
    Christof

  • Resource bundles, loading in beans or in jsp or share them?

    Hi,
    I have a question and hope it is not a stupid one.
    What is the best way to work with resource bundles/messages developing faces application?
    One way is to load and use it in jsp. It is convenient and easy. Another is to use it within a bean. It's a little bit more complicated and might take more memory. Taking into account that sometimes general messages are to be used in both is there a guideline or some usual practice on how do I can access a resourcebundle that been loaded in jsp from bean?
    Suppose I have couple beans that might use the same messages - logically it is better to load bundle in jsp and use it from beans.
    Of course it could be loaded via faces config file, but some messages are needed only by couple of pages (registration for example).
    Please let me know your thoughts or how it is done usually.
    Thanks in advance!!

    You can use as many f:loadBundle tags in the JSP page as you want. You can also use them simultaneously with any <message-bundle> and/or <resource-bundle> declaration in the faces-config.xml. Just choose the one which covers the scope of the bundle in question.

  • Resource bundle "rft_flexautomation" for locale "en_US

    Hi,
    I have installed Flex Builder 3 and Rational Functional
    Tester 8.0.0 for automation of flex application.
    So i have executed following steps:-
    1. Start Flex Builder.
    2. Create a new Flex project.
    3. Select the Flex project in the navigator.
    4. Click Select Project > Properties > Flex Compiler.
    5. Enter the code shown in Listing 1 in the "Additional
    compiler arguments" field.
    Listing 1. Code for additional compiler arguments
    -Include-libraries "<flex builder install dir>\Flex SDK
    2
    \frameworks\libs\automation.swc" "<flex builder install
    dir\Flex SDK 2
    \frameworks\libs\automation_agent.swc" "<flex builder
    install dir>\Flex SDK 2
    \frameworks\libs\automation_charts.swc" "<functional
    tester dir>
    \Functional Tester\bin\rft.swc"
    6. Click OK to save your changes.
    7. Click OK to close the Properties dialog box.
    8. Compile your Flex sample application.
    I am getting following error :-
    Unable to resolve resource bundle "rft_flexautomation" for
    locale "en_US"
    Please help me out to resolve this error
    Thanks,
    Samidha

    I jut saw the posting today.
    Place your local folder in application root
    In project properties : Flex Compiler Argument : additional compiler argument : -source-path ../locale/{locale}
    add this.

Maybe you are looking for

  • How to avoid 'duplicate data record' error message when loading master data

    Dear Experts We have a custom extractor on table CSKS called ZCOSTCENTER_ATTR. The settings of this datasource are the same as the settings of 0COSTCENTER_ATTR. The problem is that when loading to BW it seems that validity (DATEFROM and DATETO) is no

  • Out of order in tpdequeue

    We have an application that has a sequentiality constraint. It seems that when we do to tpenqueues within a single transaction, the single process that does the tpdequeue sometimes gets the messages in a different order than they were actually dequeu

  • Resizing photos to burn a CD for PC

    How do I resize 200 photos from my iLife, iphoto library to burn a CD disk that can be read by a person using a PC microsoft system? When they have received my CD disks in the past the pictures are too large for them to see them or project them on th

  • Unable to continue because of a hardware or system error. Sorry, but is unrecoverable.

    This occoured in Photoshop CS3 today. All other Adobe products are functioning normaly on this system. Premiear CS3, Encore, Audition function fine. Photoshop was working fine then failedduring the evening. We have removed and reloaded Photoshop CS3

  • Save/restore in PostScript

    Hi, I'm student of SPbSU. I have the work "Compiling PostScript's programs into Java byte-code" in this year. Can anyone explain, how does save/restore work with composite objects? How does "save" do the snapshot, when many composite objects share th