I18n of label in command_button

Hello everyone,
I want to internationalize the label of a command_button:
<h:command_button id="..." label="my label" commandName="..." actionRef="..."/>
Unfortunately, I cannot insert any <fmt:message>-tag into the label attribute. This pretty much limits the label to a static string.
What is the official way to dynamically specify the label?
Regards,
Andreas

In the EA4 release, you can localize button labels by interoperating with a ResourceBundle made available via the JSTL <fmt:setBundle> tag. For example, check out the source code for the "Customer.jsp" page in CarDemo. You'll see the following tag near the top:
<fmt:setBundle basename="cardemo.resources" scope="session" var="cardemoBundle"/>
while the submit button is coded like this:
<h:command_button key="finishButton" bundle="cardemoBundle" .../>
to pick up the resource named "finishButton" from the corresponding resource bundle.
Craig McClanahan

Similar Messages

  • I18n: text label of Table Header of Data Table Component

    hi all
    JSC Hangs when i try to change text label of Table Header (Column) of Data Table Component to my favorite language for example Arabic or Persian Language.
    is this bug!!!

    Hi,
    Please take a look at the tutorial Internationalization at
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    may help you
    regards

  • I18n, localization of the search textfield's label

    Hello ,
    i am not able to modify search textfield's label. I know , there are resource bundles for any countries defined in class file like Constants_de , Constantns_en .... . But for the search textfield label i get always the value from the german bundle. I think this is realizied over the default Locale.
    So i think , this could be a bug.
    Does anybody seen this behavoir ? What can i do ?

    Firefox should dim extensions that aren't compatible after the page has loaded.<br />
    If that isn't the case then you may be blocking the JavaScript that performs this dim action.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • ActionListener doesn't work with image command_button

    Hi,
    with EA4, if I set an ActionListener on a command_button without specifying the image attribute, everything just works fine.
    If I now replace the label attribute with an image attribute, the action listener is no longer triggered.
    It seems that nobody reported this problem before, so maybe I've missed something.
    I tried several ways to make it work, but without success.
    Any clue ?
    Here is the code of my test :
    ** index.jsp :
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>
    Action listener and image command button
    </title>
    </head>
    <body>
    <f:use_faces>
    <h:form id="form" formName="form">
    <h:command_button id="clickButton" commandName="click" image="foo.gif">
    <f:action_listener type="foo.MyBeanActionListener" />
    </h:command_button>
    <h:output_text id="text" valueRef="MyBeanActionListener.text" />
    </h:form>
    </f:use_faces>
    </body>
    </html>
    ** faces-config.xml :
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
    <managed-bean>
    <managed-bean-name>MyBeanActionListener</managed-bean-name>
    <managed-bean-class>
    foo.MyBeanActionListener
    </managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    ** MyBeanActionListener :
    package foo;
    import javax.faces.event.*;
    import javax.faces.application.*;
    import javax.faces.FactoryFinder;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    public class MyBeanActionListener implements ActionListener {
    private String text;
    public void processAction(ActionEvent event) throws AbortProcessingException {
    FacesContext context = FacesContext.getCurrentInstance();
    ApplicationFactory factory = (ApplicationFactory)
    FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
    Application application = factory.getApplication();
    ValueBinding binding = application.getValueBinding("MyBeanActionListener.text");
    binding.setValue(context, "Button was Clicked");
    public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
    public void setText(String text) {
    this.text = text;
    public String getText() {
    return text;
    Thanks in advance.
    Michael

    but with EA4 the TLD doesn't
    define any src attribute for tag command_button.
    Do you (or anybody) have another idea ?oh - sorry about that ... i was looking at some other tag on my JSP and wrote this ...
    yeah, but an absolute URL does solve the problem ... or if u want it to work with a relative URL - use the HTML <base href=".." /> tag to establish the base

  • I18n of Swing for multilingual feature of a already displayed screen

    I have java Swing appication.Each screen has got number of buttons, labels, tool bar etc.It also have DateFormat, SimpleDateFormat, and DateFormatSymbols used for the i18n.Each screen has got a combobox listing diffrent languages.From each screen the user can select a language and that particular screen should change to this selected language.ie, suppose I have displayed the screen in English and if the user select a language french, then this particular screen should change to French.Can you please give me a way to solve this problem? My requirement are I have to iterate through each component of this container and set the labels for each component by getting the key(But I don't know how to get the key dynamically?).Then my next problem is I have used SimpleDateFormat by passing the Locale to its instantiate method.So if I am changing the language from the combobox should I have to recreate all the components in this screen? If anybody ever met this kind of requirement can you please give a sugestion or code snippet?If I know the language before showing the screen then it is OK. But converting a displayed screen to other languages....

    Hi,
    my solution is to create any GUI on JPanels and only switch between them by some central Switcher (The Frame in my example). Any GUI only must be implemented one time and you do not need any loop to change texts.
    Switching Interface:
    import java.util.Locale;
    public interface Switcher {
         public void doSwitch(Locale l);
    }Main class:
    import java.util.Locale;
    import javax.swing.JFrame;;
    public class SwitchingFrame extends JFrame implements Switcher{
         public SwitchingFrame(){
              super("Switchit");
              add(new SwitchingPanel(this));
         public void doSwitch(Locale l) {
              Locale.setDefault(l);
              getContentPane().removeAll();
              getContentPane().add(new SwitchingPanel(this));
              getContentPane().validate();
         public static void main(String args[]){
              SwitchingFrame f = new SwitchingFrame();
              f.setVisible(true);
    }GUI Panel:
    import java.awt.FlowLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import java.util.Locale;
    import java.util.ResourceBundle;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JPanel;
    public class SwitchingPanel extends JPanel {
         private Switcher switcher;
         public SwitchingPanel(Switcher s){
              switcher = s;
              setLayout(new FlowLayout());
              ResourceBundle b = ResourceBundle.getBundle("i18n.Texts");
              JButton b1 = new JButton(b.getString("Button1"));
              JButton b2 = new JButton(b.getString("Button2"));
              JComboBox bx = new JComboBox(new String[]{"de", "en"});
              bx.setSelectedItem(b.getString("Selection"));
              add(bx);
              bx.addItemListener(new ItemListener(){
                   public void itemStateChanged(ItemEvent e) {
                        if(e.getStateChange() == ItemEvent.SELECTED){
                             switcher.doSwitch(new Locale((String)e.getItem()));
              add(b1);
              add(b2);
    }And two Bundles for Testing:
    import java.util.Enumeration;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.ResourceBundle;
    public class Texts extends ResourceBundle {
         private HashMap<String, String> map = new HashMap<String, String>();
         public Texts(){
              map.put("Button1", "Switch");
              map.put("Button2", "Cancel");
              map.put("Selection", "en");
         @Override
         protected Object handleGetObject(String key) {
              return map.get(key);
         @Override
         public Enumeration<String> getKeys() {
              return new Enumeration <String>(){
                   Iterator <String>it = map.keySet().iterator();
                   public boolean hasMoreElements() {
                        return it.hasNext();
                   public String nextElement() {
                        return it.next();
    import java.util.Enumeration;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.ResourceBundle;
    public class Texts_de extends ResourceBundle {
         private HashMap<String, String> map = new HashMap<String, String>();
         public Texts_de(){
              map.put("Button1", "Wechseln");
              map.put("Button2", "Abbrechen");
              map.put("Selection", "de");
         @Override
         protected Object handleGetObject(String key) {
              return map.get(key);
         @Override
         public Enumeration<String> getKeys() {
              return new Enumeration <String>(){
                   Iterator <String>it = map.keySet().iterator();
                   public boolean hasMoreElements() {
                        return it.hasNext();
                   public String nextElement() {
                        return it.next();
    }hope this helps,
    Lars.

  • I18n JSTL / How to connect to new JAR holding new properties file?

    Hi there
    This is concering i18n and how (on earth;) JSTL knows where to find the according properties files that hold all the textual information.
    Okay. I have a piece of software that works fine and has the i18n mechanism running very nicely.
    I found the properties files in WEB-INF/lib/i18n.jar in a folder 'resources/bundle/'. They all prefix 'i18n' so JSTL makes use of them like this:
         <fmt:bundle basename="resources/bundles/i18n">
              <fmt:message var="thumbnailText" key="thumbnail.label" />
    So, we work on a new project right now based on this software. How can I add new project-related properties files?
    What I did:
    1) I created a new properties files having new textual information on new labels, etc.
    2) Put this in a folder of the new project JAR, which is in WEB-INF/lib now.
    3) Referenced the basename of fm:bundle according to this folder (including correct file prefix).
    -> Doesn't work.
    Is it that by convention all i18n information will be searched for in a JAR that must be named 'i18n.jar'?
    I'd greatly appreciate any hints
    Cheers
    André

    First, a sidenote to the SUN team: Before beeing able to reply, the forum denied me access unless I comitted to a screen name. Using my 'AndreKuhn' screen name got me 'Already in use'. Yes, of course. By me! So I had to pick AndreKuhn2 which is a little annoying. There seems to be something wrong with your system.
    Okay, back to the issue.
    Thanks evnafets for your notions! I have 2 JARs having i18n information. One had already been in use (successfully) by the underlying system. It's the one mentioned above ('i18n.jar'). Now there is a second one. Actually used the same way (technically) with different folders and namings. It goes like this:
    <fmt:bundle basename="resources/i18n/bdficp">
              <fmt:message var="titleText" key="publishLink.config.title" />
    With additional i18n information in 'WEB-INF/lib/<PROJECT-NAME>.jar'. Precisely in a file 'resources\i18n\bdficp_de.properties' having the line:
    publishLink.config.title=Just\ another\ title.
    Which should be the one referenced in the snippet above. Still the app gives me: ???publishLink.config.title???
    Any clue? I'd greatly praise your name across the rooms here!
    Cheers
    André

  • Changing button label;JSP; input type="submit" name="jboEvent" value="Search"

    Hello everybody,
    I try to develop a multilanguage application in which the button labels will change accordingly with the browser's regional settings.
    The line in the generated DataQueryComponent.jsp file is the following:
    <input type="submit" name="jboEvent" value="Search">
    If I want to change the value like value="Rechercher" the application will not execute the query.
    In fact the section
    <jbo:ViewCriteriaIterate datasource="dsQuery" >
    </jbo:ViewCriteriaIterate>
    is not executed.
    I tried to generate the button with:
    <input type="submit" name="jboEvent" value="Rechercher" onClick="this.value='Search'"> ,
    but for a long query the name Search will remain as button label on the screen.
    Any new solutions, please?
    Thanks in advance.

    Visit that Jakarta web site. There is an i18n tag library that you will find useful.
    http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html

  • I18n, bundles and personalized taglib

    Hello,
    My aim is to write a personal taglib which could be used such as:
    <menu:menu>
    <menu:groupmenu name="${menu.group0}">
    </menu:groupmenu>
    </menu:menu>
    the menu.group0 would be an entry in a mymessage.properties file that would be in the classpath
    Actually my ${menu.group0} is not interpreted
    So my question is why??!
    I've set the rtexprvalue to true in my taglib class handler.
    I'm not sure of versions of jsp-api to use...as well as I'm not sure if it's possible
    Does el expressions evaluate message.properties entries?? or just objects in some scopes?
    Any help would be very great, I'm stuck with this :-(
    Thanks

    Doea anyone from BEA have a reply on this?
    Sincerely,
    Paul Nyheim
    Paul Nyheim wrote:
    OK. Thanks.
    In our case, we have started out using <netui:label> tags with the
    {bundle} value. This works great both in pageflows and in jsp's. However
    we have not found a similiar feature here as in the <i18n> taglib that
    allows reloading with "i18n.bundle.reload.seconds".
    What is the preferred way from BEA when developing portals?
    Mvh,
    Paul
    srini_1976 wrote:
    I donno what BEA reccomended way of doing it is... but in our
    application we use i18n tags to access i18n message resources.
    You can paste the following in your web.xml and it checks for the
    properties files and reloads it every 5 mins.
    All you have to do is just refresh the JSP. While in development I
    have it set to 30 secs.
    <context-param>
    <param-name>i18n.bundle.reload.seconds</param-name>
    <param-value>300</param-value>
    </context-param>
    As to your question about where to place these files. I would
    reccomend putting them in the root folder for the files which will be
    accessing these properties.
    Hope this helps.

  • Small jquery-ui i18n bug

    Sorry about posting this here, don't know where else to put it.
    this file: /i/libraries/jquery-ui/1.8/ui/i18n/oracle/jquery.ui.datepicker-nb-no.js is missing translation of some labels.
    this file: /i/libraries/jquery-ui/1.8/ui/i18n/oracle/jquery.ui.datepicker-no.js is correct, both files should be identical.
    easily fixed " cp jquery.ui.datepicker-no.js jquery.ui.datepicker-nb-no.js "

    <head>
    <title>JQuery Tab</title>
    <link rel="stylesheet" href="/i/themes/theme_20/theme_3_1.css" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="/i/themes/theme_20/ie.css" type="text/css" /><![endif]-->
    <link rel="stylesheet" href="/i/css/apex_4_0.css" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie_4_0.css" type="text/css" /><![endif]--><link rel="stylesheet" href="/i/libraries/jquery-ui/1.8/themes/base/jquery-ui-1.8.custom.min.css" type="text/css" />
    <script type="text/javascript">var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;</script>
    //jquey loaded here
    <script src="/i/libraries/jquery/1.4.2/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_legacy_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_widget_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_dynamic_actions_4_0.js" type="text/javascript"></script>
    <script src="/i/libraries/jquery-ui/1.8/ui/minified/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    //jquery ui and css loaded here
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>VIEW Source of IE 7 show the above.. which clearly show that jquery is already loaded ... any clue...
    Regards,
    Shijesh

  • Urgent help..i18n

    iam facing the following problems while using Japanese in my application
    with jdk1.4.2_01
    titles well shown in Japanese but the labels are with squares.----
    With jdk1.3.1_03
    labels well shown but titles are with ???-----
    Any help is greatly appreciated.
    thanks
    Pramod.

    Again, fonts are at the root of this problem. You'd think those Sun i18n engineers would get this right by now. :)
    See my comments re fonts in your other recent post. Also, do a search on this forum for " fonts and Japanese".
    John

  • How to i18n "selectOneListbox" Components?

    Hi,
    I'm using a "selectOneListbox" Component in my JSF page.
    <h:selectOneListbox id="mySelection" value="#{myBean.mySelection}" size="1">
    <f:selectItems value="#{myBean.myList}" />
    </h:selectOneListbox>
    The "getMyList" Method of the bean "myBean" returns a java.util.List Implementation containing "javax.faces.model.SelectItem" objects.
    This works fine so far. And now for the problem:
    As by now the labels displayed on the screen are taken directly from the "label" properties of the "SelectItems" objects. Let's say the labels are "Kuchen", "Kekse" and "S��es". Now that's fine for german speaking users of the site but english speaking user probably would like to select from "Cakes", "Cookies" and "Sweets".
    So, the question is:
    How to perform i18n on the listbox labels?
    So far the only way of doing this I found has been to do the translation inside the Bean "myBean". But that approach is actually bad, because it means to implement view related code into the model which is not the idea of a framework like JSF.
    Does anyone have a nice solution to this? I do not reckon that no one ever needed this, allthough I found nothing regarding this problem on the net. Probably I'm just missing something.
    Thanks for your help,
    regards

    I do not understand your concern about the separating the backing bean and the "view". I claim that from the high level perspective of your application, the backing beans are part of the view technology. They are tightly coupled to JSF and the specific pages you have in your application. When the next best thing after JSF comes you will need to discard your backing beans and replace them with the appropriate technology. If you have business logic in your backing beans you are making it too difficult to re-use your business logic.
    If you want to look at a JEE application with JSF as an MVC pattern, the model are the EJB entity beans or POJOs if you are using a lightweight framework. The controller is your collection of business logic classes which might live behind a session EJB or in a container like Spring. Then the pages and the code supporting the pages are the view.
    So I do not see an issue with having a backing bean which looks up the localized values for a drop down in a resource bundle. Perhaps you have some business logic intermixed with your backing beans. I would encourage you to separate them out from the backing beans that are coupled with the pages in that case. The tightly coupled backers will be discarded when the view technology is swapped out. The business logic beans will be re-usable.

  • Setting color for labels

    I've just been reading the look-and-feel guidelines, and they suggest using Primary 1 (#666699) for labels for components in the GUI. However, they don't suggest how to get this programatically. The examples use resource bundles to get strings (i.e. resources.getString(componentName.labelString) but they don't explain how to set up and best use a resource bundle.
    What is the easiest way to set the color of a label to "Primary 1" for the current look-and-feel.
    Our apps are currently not at all internationalised, so we don't have any existing resource bundles.
    Cheers,
    -T

    Hi,
    this is a tutorial about resource bundles:
    http://java.sun.com/docs/books/tutorial/i18n/resbundle/index.html

  • I18n in scene builder

    I'm trying to internationalize a JavaFX 2.2 app.
    When I set the resource file (.properties) in Scene Builder, I can see labels with text in selected language. But when I try to run it, this gives me the following error:
    No resources specified.
    file:/C:/Users/xxx/dist/I18n.jar!/org/osl/javafx/InterfaceScn.fxml:34
    and line 34 in my fxml file is:
    *<Label id="lineNumberValue" layoutX="343.0" layoutY="63.0" text="%lineNumber" />*
    in .properties file lineNumber key is set and as I have already mentioned I can see in scene builder that it takes value from the .properties file.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    If I remove this .properties resource from within scene builder and set "*-fx-font-family: "Raavi";*" in my stylesheet, it works fine but now I can't see the actual words but boxes in scene builder.
    I mean now the app runs fine and I can read text of labels in that other language but its very difficult to design interface in scene builder.
    Isn't there any way by which I can see values from .properties file while designing the interface and it also let the app to run.
    I have tried putting localizing code in my main class by setting Locale and then using ResourceBundle to load my .properties resource by that didn't work either.
    Thanks, for any suggestion or example code. Cheers.

    but that's my point. " *Preview > Internationalization > Set Resource and select your resource bundle*" set the correct values from my resource file. But on running the app I get the following error.
    I figured out that it is not the declaration of resource file in fxml that is causing this error but the rather it is the line where I set the value like:
    *<Label id="lineNumberValue" layoutX="343.0" layoutY="63.0" text="%lineNumber" />*
    To me it looks like, javafx is unable to find the resource file at run time. But If I remove the *'%***'* thing and then use css for setting font family, It loads the interface without any issue.
    I mean I didn't get any error for loading resource-bundle or anything.
    This is the code that I'm using to load the resource file:
    Locale myLocale = new Locale("pa-IN");
    ResourceBundle rb = ResourceBundle.getBundle("org.osl.javafx.interfaceScn", myLocale );
    But thanks for documentation links. I will look into sample app, if that can give me some hint.
    And here is the complete error:
    run:
    No resources specified.
    file:/C:/Users/xxx/dist/I18n.jar!/org/osl/javafx/InterfaceScn.fxml:33
    at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(FXMLLoader.java:305)
    at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(FXMLLoader.java:197)
    at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:588)
    at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2430)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2136)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2742)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2721)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2707)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2694)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2683)
    at org.osl.javafx.I18n.start(I18n.java:44)
    at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
    at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
    at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
    at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
    at java.lang.Thread.run(Thread.java:722)
    Sep 21, 2012 9:19:50 AM org.osl.javafx.I18n start
    SEVERE: null
    javafx.fxml.LoadException: No resources specified.
         at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(FXMLLoader.java:305)
         at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(FXMLLoader.java:197)
         at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:588)
         at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2430)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2136)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2742)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2721)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2707)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2694)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2683)
         at org.osl.javafx.I18n.start(I18n.java:44)
         at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
         at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
         at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
         at java.lang.Thread.run(Thread.java:722)

  • Blocking thread: i18n:localize tag

    Hi, my server was hung (wlp816). Took the thread dump. 15 threads are in blocking state. All of them got locked at the same line which is the <i18n:localize> tag line. Is there any special about this tag?
    Thanks
    "ExecuteThread: '69' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x043914e0 nid=0x67a3 runnable [0x2977d000..0x2977fc28]     
    at java.util.HashMap.get(HashMap.java:325)     
    at com.bea.p13n.taglib.i18n.JspMessageBundle.findInCache(JspMessageBundle.java:305)     
    at com.bea.p13n.taglib.i18n.JspMessageBundle.getBundle(JspMessageBundle.java:246)     
    at com.bea.p13n.taglib.i18n.LocalizeTag.determineLanguage(LocalizeTag.java:681)     
    at com.bea.p13n.taglib.i18n.LocalizeTag.doStartTag(LocalizeTag.java:585)
    at jsp_servlet._portlets._search._jspService(search.jsp:17)     
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)     
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)     
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)     
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)     
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)     
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)     
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)     
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:250)     
    - locked <0x91c6bca0>
    .......

    Can you be a bit more explicit about "doesnot seem
    to be working."
    Is the page throwing an error?
    Is it not finding your resource file?
    Is it not printing a string from it correctly?
    This JSTL code should iterate through all the keys in
    the loaded resource bundle and show you exactly what
    is in it.
    <c:forEach var="prop"
    items="${templatebundle.resourceBundle.keys}">
    <c:out value="${prop}"/>
    </c:forEach>Cheers,
    evnafetswell what is happening is that the the properties file has some properties defined aspage-message-logged-in=Logged in as
    page-label-login=Log In
    page-label-logout=Log Outand in the jsp I am accessing them as follows
    <fmt:message key="page-label-login" bundle="${templatesbundle}"/>but what I end up seeing in the jsp is the follows
    ???page-label-logout???

  • Moving message bundle (i18n) to another package within NetBeans...

    Hi,
    I'm using the NetBeans GUI builder (matisse) to create an internationalized (i18n) swing application.
    My bundle properties file (which contains all the internationalized labels and so on) is located in a package on the classpath. Now I want to move the bundle to another package - can this be done in an easy (automatic) fashion throughout the IDE because a lot of java classes (forms) use the bundle.
    BTW, find and replace within the editor does not work because all the gui building stuff is marked as protected and cannot be edited and editing each label separately with the internationalization wizard would take me hours...
    Any help would be greatly appreciated
    - Stephan

    Of course... but my java files would need some refactoring because there is a lot of code like that...
    setTitle(java.util.ResourceBundle.getBundle("
        com/foo/bar/bundle/Messages").getString("frame1.title"));.. which refers to a message bundle in the specified package - when I move the message bundle to another package all the references in the java files (like the example above) have to be updated.
    Unfortunately 'Find and Replace' in the editor doesn't work because it is generated gui code and marked as protected.
    So is there a possibility to automatically update all the references in the java files?
    Thanks a lot
    - Stephan

Maybe you are looking for