11gR2 Connector not using resource bundle

Hi All,
Creating a custom connector based on DBAT.
I made sure the values in the properties file were changed to match the names I used on the name parameter for the provider definitions. After the install the new provider names seemed to work
but nothing else. so I ran the download resource script made a few changes and ran the upload resource script and now nothing is working.
after running the upload the provider names in the drop down when creating the GTC are now the values from the name parameter and not the values in the resource bundle :(
so how can I test these bundles without do re-installs?
and how do you create an uninstall for the connector?
Thanx in advance
Fred

TemplateEmailSender will render the JSP using the normal servlet pipeline i.e Thus, the template page is rendered simply as if it were a JSP page requested through a browser. In this case, the locale will be identified from the HTTP-HEADER (in an email case, the locale might be created using the Profile.locale property) and if it is null it will look for /atg/dynamo/servlet/RequestLocale.defaultRequestLocaleName.
Check the Profile.locale and RequestLocale.defaultRequestLocaleName, you might be getting this issue because of the value is null here.
Cheers
R

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.

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

  • 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

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

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

  • How could i use resource bundle in managed bean instead of harding coding?

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

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

  • JHeadstart 10.1.3.1 Demo not populating resource bundle

    The ApplicationResource.properties file in the demo version of the just released 10.1.3.1 running under JDeveloper 10.3.2.0 is not being populated like the previous version of JHeadstart.
    Most contents of this bundle contain entries such as
    TABLE_TITLE_BUSINESSRULEAPPL=TABLE_TITLE
    TABLE_TITLE_BUSINESSRULEAPPLICATIONS=TABLE_TITLE
    TABLE_TITLE_BUSINESSRULEEVENTS=TABLE_TITLE
    TABLE_TITLE_BUSINESSRULEQUEUE=TABLE_TITLE
    TABLE_TITLE_BUSINESSRULEQUEUESAVE=TABLE_TITLE
    TABLE_TITLE_BUSINESSRULEREPOSITORY=TABLE_TITLE
    TABLE_TITLE_BUSINESSRULERULES=TABLE_TITLE
    or
    ADD_ROW=ADD_ROW
    ADVANCED_SEARCH=ADVANCED_SEARCH
    ALL_CONDITIONS_MET=ALL_CONDITIONS_MET
    ANY_CONDITION_MET=ANY_CONDITION_MET
    None of the button names have appropriate default values.
    The attibute names from the tables are fine, such as
    BUSINESSRULEAPPL_FIND_BRAPPL=Application
    BUSINESSRULEAPPL_FIND_BRRULEMOD=WITH Clause
    BUSINESSRULEAPPL_TABLE_BRAPPL=Application
    BUSINESSRULEAPPL_TABLE_BRRULEMOD=WITH Clause
    Are these results built-in to the demo version on purpose, is this a real error in the demo, or is there some mechanism I am not aware of where I can set these values appropriately?

    This JHeadstart problem does not exist on a PC, but occurs on an Apple MacBookPro laptop running the latest version OSX.
    I was running the latest version of JDeveloper 10g with latest version of JHeadstart. All extensions are installed for all users, so the extensions are (or seem to be) installed within the directory structure of JDeveloper, rather than in the user's home directory.
    I created a two-table ADF model, then generated the ViewController with JHeadstart. None of the titles or buttons contained the appropriate values. I then deleted, from JDeveloper and the disk the ViewController project.
    I then deleted JDeveloper 10g entirely, and reinstalled JDeveloper10g from the OTN site, installed JHeadstart from JDeveloper update, created an empty project named ViewController, enabled JHeadstart for that project,and generated the Jheadstart UI. Again, the problems with title and button values remained.
    I performed the same tasks on a Windows PC, using the same process. On the PC, all worked as advertized.
    Something is amiss.

  • Make QT export faster? Not using resources.

    I am exporting some quicktime movies to DV clips. These clips are 640x480 and anwywhere from 15 to 45 minutes long (however, the following problem happens on QT clips of all resolutions and lengths).
    The problem is that the process is very slow, and QT Pro doesn't seem to be using my system's resources very much. I have a brand new Mac Pro (3ghz quad core) with 5 GB of RAM – so obviously I was hoping the new system would speed up this process. But it is not noticeably faster than my old iMac G5.
    The "problem" is that I don't think QT is properly using the "horsepower" of this system. The CPU usage meters show all 4 cores being used at only about 25%-30%. However, Activity Monitor shows a process called QTPlayerHelper running at about 125% CPU! (which doesn't seem possible).
    As for RAM, Activity Monitor shows all 4.95 of 5GB "used," but Quicktime is only using 100 MB and QTPlayerHelper is only showing 40MB use. But, in another apparent contradiction, it says VM size is over 19GB... if QT, which is the only thing I am doing now, is only using 150 MB of memory, why is VM usage so high?
    Other than just some general insight into what is going on here, my real question is: "Is there any way to make QT use all system resources to speed up these exports (so my 4 cores of Xeon goodness would be used to their fullest potential)?"

    In Activity Monitor, under the System Memory tab, you will see that RAM usage is broken down into four categories; Wired, Active, Inactive, and Free (shown visually on the pie chart).
    Wired: Memory used to run the system (kernal). You can't free up Wired memory since you can't quit the system. Sometimes, a restart will free up some resources here but as you use more of the system, it will claim more memory.
    Active: Launching applications causes them to claim various amounts of memory to run. Quiting applications will free up some of the Active memory.
    Inactive: Applications may reserve additional amounts of memory that it uses to load a document or cache into so it runs faster that going to the disk each time. Inactive memory is variable, other applications that want to use it can grab it at will. It's basicly like holding a seat in the theatre for a friend, if all the other seats are taken and your friend hasn't shown, you have to give up the seat to anyone that wants it.
    Free: Memory that hasn't been claimed or reserved.
    The "Used" total includes Inactive memory, but the number in the Real Memory column for each item does not, only Wired and Active.
    You may also notice this scenario one day:
    10% Wired
    40% Active (let's say two applications are open)
    40% Inactive
    10% Free
    ---Then you quit one of the applications and see:
    10% Wired
    20% Active
    60% Inactive
    10% Free
    You didn't gain any Free memory, but that's because as soon as it was available the remaining application reserved it. If the system needs it or you open a new app, it will give it up to it. It's best to think of Inactive memory as Free for your purposes.
    As for the QuickTime export...
    At some point, there is a limit to how fast something can be done. I'm sure you know that 20%(x4) on a Xeon is at least >= 100% on a G5. Only applications specificaly optimized for quad-core processors can make full use of all it's power. Unfortuanatly, not every program toady has been (or needs to be), which was true when dual-core computers first came out. In this case, the power of your machine lies it the fact that you can be doing lots of other things at the same time as the QuickTime export without it slowing down. Can't do that on the G5. Right now, the biggest benefit goes to pro video editing and effects applications and specialized math and scientific programs. For the time being, know that nothing can do it faster than you can and you don't have to take lunch while it exports, you can keep working. 10 years ago, if I wanted to export a 30 minute video I edited in Adobe Premiere, I had to leave it over night, and it wasn't even DV quality or have today's fancy effects. Those were the days...

  • Resource bundle not found

    Hi,
    I would like to know where to put resource bundle file (it is, something.properties) to be seen in portal channel and background classes
    more info and workabout
    in my class I use resource bundle class Messages which loads resources from bundle "bundles.messages", (equals to file bundles/messages.properties).
    I copies this under /etc/opt/SUNWps/desktop/classes and restarted amserver
    then I created channe from JSPProvider, which displays one resource from this properties:
    <%=Messages.getString("token")%>, but I get on output:
    <pre>!token!</pre>,
    which means properties was not found.
    I havesame problem with third party .jar library which uses properties files. Even after copied oudsite the jar file (i know this must be done) they are not seen.
    thank you in advance,
    Petr Gasparik

    Thank you, vvlier, your advice helped me to move futher.
    I discovered that resource bundles (.properties files) must be directly in `classes` folder to be managed by Portal Server.
    I've put config.properties in /opt/SUNWps/web-src/WEB-INF/classes, then have run `deploy redeploy` command and in /var/opt/SUNWappserver7/domains/domain1/server1/applications/j2ee-modules/portal_1/WEB-INF/classes has appeared config.properties and config_en.properties, which means deploy somehow managed these files
    But still I was unable to fetch records from this file through my own Messages class
    Because this works from console, I have proof my code is working. Only that portal classloader is somewhat different.
    I've red through manual and found this page: http://docs.sun.com/source/817-5319/ch27.html but it doesn't help me.
    It even looks so that I have to use Portal Resource Bundle class?
    So, summary, I have one question:
    How to work with .properties files (Resource Bundles) in Portal?
    thank you in advance

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

  • resource-bundle tag of portlet.xml

    Hi.
    I'd like to use resource bundle. Therefore I add following tags inside <portlet> tag of portlet.xml and create 'testprofile.properties' file.
    <resource-bundle>testprofile</resource-bundle>
    But when I start tomcat, the error occured like following.
    2004-08-05 12:01:45,437 ERROR [main]
    java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
    at java.util.Properties.load(Properties.java:189)
    at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:96)
    at com.plumtree.portlet.util.PortletInfo.addPropertyBundles(PortletInfo.java:425)
    at com.plumtree.portlet.servlet.PortletServlet.digestPortletXml(PortletServlet.java:527)
    at com.plumtree.portlet.servlet.PortletServlet.initDigester(PortletServlet.java:651)
    at com.plumtree.portlet.servlet.PortletServlet.init(PortletServlet.java:60)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex ...
    So I modified portlet.xml like following and try to start tomcat again.
    <resource-bundle>testprofile.properties</resource-bundle>
    Tomcat can be started successfully.
    But when I display the portlet, error occured.
    java.util.MissingResourceException: Can't find resource for bundle com.plumtree.portlet.util.PortletResourceBundle, key LogLevel at java.util.ResourceBundle.getObject(ResourceBundle.java:314) at java.util.ResourceBundle.getString(ResourceBundle.java:274) at portlet.TWNewMailPortlet.init(TWNewMailPortlet.java:45) at com.plumtree.portlet.servlet.BaseServlet.init(BaseServlet.java:522) at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:136)
    The properties file 'testprofile.properties' is not loaded successfully, maybe.
    Do you know how to specify or use ResouceBundle in using Plumtree JSR168?
    The tips of source code is following
    In Portlet class which extends GenericPortlet
    public void init(PortletConfig config) throws PortletException {  super.init(config);  PortletLogger.init("Test", getPortletContext());  ResourceBundle rb = getResourceBundle(Locale.getDefault());  for (Enumeration e = rb.getKeys(); e.hasMoreElements(); ) {   String str = (String)e.nextElement();   System.out.println(str);  } String level = rb.getString("LogLevel"); PortletLogger.setLevel(level); }

    Are you naming your resource bundles something like:
    1. messages_en.properties (for English)
    2. messages_de.properties (for German)
    and so on.
    Also, do you include these properties files in your final deployment package, because if they're not there then the messages won't be displayed.

  • Character encoding in resource bundle files

    I am developing a multilingual site, using resource bundle files. The problem I'm having is that, while the jsp file is save in UTF-8, and the contentType="text/html; charset=UTF-8", the foreign characters in the bundle files don't display properly unless I save them as "windows-1252". If I copy the text and paste it into the jsp file, it displays correctly.
    How can I make the text from the bundle files display the same as the text in the jsp document itself when both files are saved as UTF-8? I'm surprised it doesn't do this by default.

    Because resource bundles (the PropertyResoureceBundle class in particular) doesn't know anything about JSP or HTML page encodings. All that class knows is that it needs to load a properties file from the local (server-side) file system. (BTW, if you are using Struts MessageResources, it works the same way). Anyway, it doesn't read the file every time you call for a resource property String, it reads it 1 time, and 1 time only when you call new ResourceBundle().
    The API docs (in java.util.Properties) specified that properties files are read using the ISO8895-1 encoding, actually, not the Windows-1252 or whatever the OS defines. So if you store text that's using a different encoding then ISO8895-1, it's going to read the chars incorrectly.
    native2ascii converts things to ASCII using Unicode escapes, as I said. (Although, maybe it saves as ISO8895-1, I forget..., or maybe you should specify the output encoding.... you'd have to read the docs on that tool, cuz there's no command-line help.) This is sort-of an exception to the ISO8895-1 thing, in a sense, as all ASCII chars are the same as the first 127 chars of ISO8895-1, so it doesn't matter really.
    So in short, it doesn't assume it's in the default Windows encoding, it assumes it's in ISO8895-1. But since the API docs specifically say so, you should abide by those rules.
    As for "getting around the problem", yes, it does, actually. See, whatever it reads in that Unicode escaped ASCII text is converted properly to Strings in Java, which are 16-bit Unicode characters, which cover nearly every character set around (English, Chinese, Japanese, Arabic, Cyrillic, etc). When it's in that form, the chars are the Unicode chars and that's it. That's all they need to be. Encodings are only important when writing (and reading back) to files or other byte streams. You have to read in with the same encoding it was written under, otherwise the conversion is not going to be correct (with a few exceptions, but not many).
    So that creates a Unicode String in Java, and when you write that to a JSP page or servlet, the output writer used knows from the content type you specified in the page declaration (UTF-8 is typically recommended because it's an efficent way to deal with Unicode chars, particularly in HTML, where most of the HTML tag content is still ASCII text), so it encodes the strings in that encoding.
    Get it?

  • 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

Maybe you are looking for