JSF 1.1 - problem with overriding default messages with UTF8 ones

Hi there,
I'm stuck with JSF 1.1 for now (creating application that is to run on JBoss 4.0.x) and I've encountered a problem... My web application uses UTF8 encoding - so that's also encoding I need in my message bundle. I've created one - and here goes a problem. I need to put Polish special characters into a properties file of a bundle - so I do it with UTF escape notation:
javax.faces.component.UIInput.REQUIRED=Warto\u009C\u00E6 dla pola {0} jest wymagana
some.custom.message.CLOSED=zamkni\u0119taThe thing is - while custom messages are working properly, overriden javax.faces.component.UIInput.REQUIRED message is rendered on a page as four "strange" characters, suggesting that it was first interpreted as UTF, then parsed as some kind of an ASCII (ISO) encoding and then back to an UTF8 page...
How to fix this?
TIA,
Wojtek

IDE fooled me - it was smarter then I expected and properties editor was showing already decoded values, not raw content of file. It's working properly now

Similar Messages

  • Chart - problem with realize one of the function under CR XI

    Post Author: mrowa
    CA Forum: Charts and Graphs
    Hello,
    I have
    problem with realize one of the function under CR XI. I would be persuade if
    any of us would like to help me.
    1)   
    1) From
    database (basically from one table), I take data to make report. Each of record
    have appropriate fields:
    dteData
    intYear
    intMonth
    intDate
    2)   
    2) I
    want to realized comparison data from two or more periods of time on one chart
    and in one table. For easily explanation I will describe problem on two
    periods.For instance, user want to display and compare
    on chart date (type monthly -sum data of each month) from 2007.02 u2013 2007.05
    with date from 2006.03 u2013 2006.06. So we compare month 2007.02 with 2006.03;
    2007.03 with 2006.04; 2007.04 with 2006.05; 2007.05 with 2006.06
    On char I would like to display bars with comparison
    of months.
    Problem is that I donu2019t know how to write
    something similar. I can use one period without any problems, but two and mores
    I canu2019t realized.
    Detail description:
    I passed
    two parameters two report:
    {?from}, {?to} u2013for first period
    {?offset}, it means {?from}+{?offset},
    {?to}+{?offset}  - for second period
    On axis Y I have Sum(intDate);On
    X (year + month). But on each value x( example 20007.02) I need to have
    two values (bars). Value for standard period and offset.
    For example for x=2007.02, I need
    two bars one equal 2007.02 and second with offset u2013 2006.03
    Movement to next value (bar) is
    persuade by fields {data.rok}&{data.month} first or second period. This is
    combination of two elements year&month defined under Formula. Problem
    persist in that both period has different year.month and here problem starts once
    again. I donu2019t know how to solve it. I have found out one solution but it
    limits user only for two periods (I want to compare more).
    My idea for compare only two
    periods:
    I make one query in CR for one
    period and second query for second period.
    Firs query:
    "SELECT 
           year ,
          month
    Second query
    "SELECT 
           year + FLOOR({month + offset} % 13),
          {month + offset} % 13
    Then in CR I connect two periods and
    make u201Ctableu201D (results of queries) with JOIN on fields year and month.
    This solution is not functional,
    because I need to make reports for days and hours as well. In this solution I
    canu2019t use (%31), because not all months has 31 days.
    I use CR in WEB app made in Visual
    Studio 2005. Maybe from aspx we can manipulate with date to get exact solution,
    and solve problem with SELECT.
    Hope my description clearly
    describe problem and someone will be able to help me. I would be thankful.

    I have had similar problem before.
    Because I had too many data, the legend would not display all the data. Also the chart would not display all the data. But I was able to find a work around.
    In your case, Right click on the Legend text and click on Format Legend Entry.
    Change the font of the legend to 4 (which is the minimum). This may work.
    If you are also having problem with data labels, you could change the font size of the data labels.
    Hope this helps.
    Thank you.

  • Problem when overriding default skin of Flex

    Hi all,
    I tried to change the default style of Flex by redefining the css file. To Button, I add some different images to different status. Because Combo, ColorPicker are all inherited from Button, they all have the same style like Button has, even if I define new style for Combo as well.
    How to avoid this scenario? What is the right way to overriding default skin?
    Thanks and regards,
    Yan

    Hi there,
    I played around with skinning a few months ago too but I didn't run over this problem. Check this article: http://www.adobe.com/devnet/flex/articles/flex_skins.html I don't know how are you replacing the default icons but what I did, was to build my skins from scratch with the help of the template of Flex skins for Photoshop, saved each skin as a .png file and everything worked fine.
    With best regards,
    Barna Biro
    Blog: http://blog.wisebisoft.com

  • Override Default Message before Selection

    Hi Experts...
    Is it possible to override the default message that is shown before selection in prompts.
    No Results
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
    MONTH is equal to Jan
    and VERTCAL is equal to EU
    and GRP_CUST is equal to SNY
    and TYPE is equal to TnM
    Can this default message be overwritten ??
    Regards,
    Veena A

    Hi,
    1. Open Answers report
    2. Choose Results tab
    3. In Results tab choose No Results view
    4. In the No Results view you'll see text:
    Use the fields below to specify what should be displayed when this analysis returns no results
    Write something in the text field. This will aply when no data insted of:
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
    I hope this is clearly enough.
    Regards,
    Goran
    http://108obiee.blogspot.com

  • Problem With Keyboard one key

    232112

    Hi Almass,
    I understand that one key on your keyboard will not display the first time your press it but the second time it will display it twice and this happen both with the keyboard that comes with it and the external keyboard. I will be happy to help you with this odd issue. What operating system are you using? What key are you having a problem with?
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Tomahawk for jsf 1.2 problem with customizing treetable component

    hi,
    i've tried many times bu i've got no clue how to set custom icons in the tree. what i want to achieve is to display the server's local file system. however this component doesn't allow to explicit specify what the node type is (a directory or a file). as a result when it finds an empty directory entry, no icon is displayed. i googled a bit and i guess the project's documentation is not sufficient. any help appreciated. ofc if someone knows a better method (or a framework) to do the job, please let me know. thanks
    cheers

    r035198x wrote:
    You could store the value in the session and remove it when you need to use it.Thanks, r035198x. I tried that before and users from other Java forums suggest that I shouldn't do it this way as I am adding more codes than necessary to pass technically a value from one bean to another. Hence, I decided to follow their advice and went and created a generic bean that can be referenced by other beans for pages calculation. Some users also suggest using Dependency Injection (available for JSF 1.2) to try to accomplish the result I want. I've also read about this method in JSF 1.2 spec - but without much example, I'm pretty much in the dark as to how this work. Unfortunately, I've only been on JSF for the last 4 weeks so I'm still a newbie - please excuse any "dumb" questions I have asked on this forum so far...
    What I currently has working for me is moving the method to calculate the pages from mybean1 to mybean2. This means all I have to do now for the other beans (11 remaining) is passed a few parameters to mybean2's method that calculate pages.
    Edited by: icepax on 12/11/2009 18:27

  • JSF 1.2 - Problem with passing page count to bean to create list

    I have this select option:
    <f:verbatim>Pages: </f:verbatim>
    <h:selectOneMenu id="selectPage" value="#{pageList.selectedPage}">
             <f:selectItems value="#{pageList.selectPages}" />
    </h:selectOneMenu>And the backing bean (called mybean2) for this is:
    private int pages;
    public void getPages(int Pages)
         this.pages = Pages;
    // getter methods
    public List<SelectItem> getSelectPages()
         selectPages = new ArrayList<SelectItem>();
            pages++;
            for (int i = 1; i > pages; i++) {
                 selectPages.add(new SelectItem(Integer.toString(i), Integer.toString(i)));
             return selectPages;
    public String getSelectedPage()
             return selectedPage;
    // setter methods
    public void setSelectPages(List<SelectItem> selectPages) {
            this.selectPages = selectPages;
    public void setSelectedPage(String selectedPage) {
             this.selectedPage = selectedPage;
    }The getPages method above gets the page count from mybean1.submit method. Thus, for example, when the submit method returns 30, how am I able to pass this value into the getSelectPages so I can dynamically created the number of pages

    r035198x wrote:
    You could store the value in the session and remove it when you need to use it.Thanks, r035198x. I tried that before and users from other Java forums suggest that I shouldn't do it this way as I am adding more codes than necessary to pass technically a value from one bean to another. Hence, I decided to follow their advice and went and created a generic bean that can be referenced by other beans for pages calculation. Some users also suggest using Dependency Injection (available for JSF 1.2) to try to accomplish the result I want. I've also read about this method in JSF 1.2 spec - but without much example, I'm pretty much in the dark as to how this work. Unfortunately, I've only been on JSF for the last 4 weeks so I'm still a newbie - please excuse any "dumb" questions I have asked on this forum so far...
    What I currently has working for me is moving the method to calculate the pages from mybean1 to mybean2. This means all I have to do now for the other beans (11 remaining) is passed a few parameters to mybean2's method that calculate pages.
    Edited by: icepax on 12/11/2009 18:27

  • [JSF 1.2] problem with c:forEach inside h:panelGrid

    I have a list of beans that I want to display in table of 3 columns, and let the rows increase according to the size of my list.
    The following code works as expected:
    <h:panelGrid columns="3">
         <c:forEach items="#{mylist}" var="row">
              <h:outputText value="#{row.name}" />
         </c:forEach>
    </h:panelGrid>This also works:
    <h:panelGrid columns="3">
         <c:forEach items="#{mylist}" var="row">
              <h:panelGroup>
         Name: <h:outputText value="#{row.name}" />
              </h:panelGroup>
         </c:forEach>
    </h:panelGrid>But when I put two outputText components inside the panelGroup I get duplicate ID in view error.
    Any suggestions?

    I have also seen something similar. Oddly enough, you seem to be able to explicitly specify an id, so something like this usually works:
    <h:panelGrid columns="3">
        <c:forEach items="#{mylist}" var="row" varStatus="rs">
            <h:panelGroup>
                <h:outputText id="alabel_${rs.index}" value="Name:" />
                <h:outputText id="avalue_${rs.index}" value="#{row.name}" />
            </h:panelGroup>
        </c:forEach>
    </h:panelGrid>However, I agree that this should not be needed if everything was working properly.
    Another case I have found that seems to be a bug is a JSF fragment like this:
    <h:form id="testForm">
      <h:panelGrid columns="3" columnClasses="rightColumnHeader, leftColumnHeader">
          <f:facet name="header">
         <h:outputFormat value="#{Bundle.listTest_title}" />
          </f:facet>
          <h:outputText value="Index$" />
          <h:outputText value="Index#" />
          <h:outputText value="Value" />
          <c:forEach items="#{testlist}" var="it" varStatus="is">
         <c:out value="${is.index}." />
         <h:outputText value="#{is.index}." />
         <h:outputText value="#{it}" />
          </c:forEach>
      </h:panelGrid>
    </h:form>Now the c:out tag manages to output is.index, but the h:outputText tag doesn't. Further testing shows that the varStatus variable is not available at all in #{} expressions, but only in ${} expressions, whereas the var variable is available in both. Seems like a bug, but maybe there is some reason for this behaviour??

  • Problem with printing one variable in one line in smartforms

    Hi,
           Please help me.  It's my first time to use smartforms, and my problem is that I am trying to print one variable on one line and I just don't know why the variable splits and prints the other half on the next line.  On my paragraph format, I only chose the "Left-aligned" as my alignment choice and line spacing as one.  I used a character format for the variable just to make it bold.  The width of the window is 19.9cm.  Please, really hope someone could help me.  Thanks.
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Oct 13, 2009 9:16 AM

    Yes.  There are actually 3 variables on that window:
    SURNAME   <E1>&wa_surname(C)&</>
    FIRSTNAME <E1>&wa_fname(C)&</>
    MIDDLE NAME <E1>&wa_midname(C)&</>
    The variable for the firstname is the one being split to the next line.  It's like half of the firstname is combined with the middlename as shown in the example:
    FIRSTNAME    FIRST
    MIDDLE NAME NAME MIDDLE NAME
    When it should be:
    FIRSTNAME    FIRST NAME
    MIDDLE NAME MIDDLE NAME
    Thanks.

  • [SOLVED]Problem with Ubuntu One related python module gi.repository

    So, I have Ubuntu One working on another Arch install, but I just put it on my new laptop today, and it's not working.  Installed with no apparent problems. However, when I try to run
    $ ubuntuone-control-panel-qt
    I get these messages (the last line is the only one that contains an actual error message):
    Traceback (most recent call last):
    File "/usr/bin/ubuntuone-control-panel-qt", line 29, in <module>
    from ubuntuone.controlpanel.gui.qt import main
    File "/usr/lib/python2.7/site-packages/ubuntuone-control-panel/ubuntuone/controlpanel/gui/__init__.py", line 26, in <module>
    from ubuntuone.controlpanel.backend import UBUNTUONE_LINK
    File "/usr/lib/python2.7/site-packages/ubuntuone-control-panel/ubuntuone/controlpanel/backend.py", line 29, in <module>
    from ubuntuone.platform.credentials import CredentialsManagementTool
    File "/usr/lib/python2.7/site-packages/ubuntuone-client/ubuntuone/platform/__init__.py", line 47, in <module>
    from ubuntuone.platform import os_helper
    File "/usr/lib/python2.7/site-packages/ubuntuone-client/ubuntuone/platform/os_helper/__init__.py", line 41, in <module>
    from ubuntuone.platform.os_helper import linux
    File "/usr/lib/python2.7/site-packages/ubuntuone-client/ubuntuone/platform/os_helper/linux.py", line 48, in <module>
    from gi.repository import Gio, GLib
    ImportError: No module named gi.repository
    I read on some Ubuntu site that it might help to reinstall python-gobjects, though the package is different on Arch (which I guess is a given), and it pulled in python3, so, as you might imagine, it didn't work.
    When I run `ubuntuone-launch` or `u1sdtool` I don't get an error, but nothing happens either (no prompt for login).  I searched google and the forums and the wiki, so sorry if I missed something obvious. Don't know anything about python either, beyond "hello-world.py" (and that I had to put parenthesis around the print statement in order to "port my software" to python3)
    Last edited by ninjaaron (2012-10-24 05:12:04)

    I only had python2-gobject2 (well, and python-gobject, and python-gobject2).  Installed python2-gobject and it works now.
    Thanks!
    SOLVED
    Last edited by ninjaaron (2012-10-24 05:27:21)

  • Read-only problem with sun one

    hello
    i have mounted yestarday a file in which i have created an ejb call Client. Today i have unmounted the file with the ejb Client and i have mounted an other file in which i have created an ejb called Client. Now i can't no more manipulate the first ejb and the second ejb (adding method for example). The error message is: the ejb is read-only !
    I don't know if this is a bug or a protection but how i can desctivate that please ?

    ok i find it. There was hidden mounted jar in the
    option of filesystem ... why, i don't know exaclty at
    this moment but now it's ok. If somebody knows
    something about that.
    thank'a lotWere you working with an application client module, specifically executing them? This can cause files to be mounted.

  • Problem with SUN ONE STUDIO Update 4

    Hi,
    I created a simple entity bean with finder methods and business methods.
    But when I am trying to test the entity bean by generating the New EJB Client, and at the time executing the EJB client test client the following error as occured.
    [b][b]Deploying... EAR Unable to deploy theC:/developer/JavaProject/test/test.earApplication
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Error while processing CMP beans.
    Please help me
    Thank you

    Hi ,
    To know the reasons for deployment failure , you
    could run your application using the Sun One verifier tool. Right click your application node and select Sun one verifier under the tools category.
    Please post the results of the verifier tool in case you are not able to resolve the problem.
    -Amol

  • Problem with Sun ONE Assembly Tools

    I try to start "Sun ONE Assembly Tools" but it gives me the error as the following:
    "Another copy of AssemblyTool maybe running with the same userdir.
    Please exit from previous session or remove the lock file."
    I used to run this tool before and it worked without any problem. But now it cannot run properly and there isn't have any running session.
    Please give me the suggestion of how to solve this problem and I'd like to know where is the lock file of this tool.
    Thanks very much...
    Worawisut

    I cannot wait for reply any more :-)
    I try to de compile "com.sun.enterprise.tools.deployment.main.DeployTool.class" in "appserv-assemblytool.jar"
    and see that when Assembly Tool start ,it will create filename "lock" in the folder "C:\Documents and Settings\<User>\.assemblytool".
    This file is used to lock the tool's session.
    I delete it and then run the tool again.
    Fortunately,it works fine.
    Thanks.

  • Open NAT problems with Xbox One .

    When I first got my 1900ac I used Media Priortization to get an open NAT for Call of Duty Advanced Warfare on my Xbox One ; prioritizing the Xbox . It worked fine for about 6 months until I changed cable/net provider to Nextech in Ks. This company uses the 1900ac to hook up it's system for all it's customers ( since I already had one they're using mine ). Unfortunately I'm unable to get an open NAT in this game anymore ; I've tried just about everything , NAT forwarding , triggering , Media Prioritization . Nextech support & Xbox Live support , useless . Tried Portforward . com , nothing . Forwarding port 53 cuts off net connection & doing the static ip change for Xbox didn't help . Almost everything I've looked at seems out of date & I'm at my wits end . It would seem by now Linksys should have solutions available , any ideas ?

    Thank you chin_pamz13 for your response . I tried to check if my modem had a public or private ip address but I'm not sure how to do that ; I've read about double NAT's elsewhere . Regardless , I think I've finally found a solution that seems to be working so far . I went to the website " tech - recipes . com " & found an article , " Xbox One open NAT " by Aaron St. Clair . I tried his first suggestion about port triggering , with extra ports I had'nt seen before . That did not work for me so I followed his instructions for putting the Xbox in the DMZ & it's working ! I think my problems from before were the result of improperly setting up the static ip address for my router & Xbox . Previous instructions had me changing the ip in the console along with the router ; Aaron said not to do so in the Xbox , let the router do the work it's supposed to do & make sure the settings in the console are on automatic . In the router at the DMZ , I was'nt sure how to proceed , but at the bottom is a section labeled DHCP reservations list ; clicked on that , saw XboxOne , clicked on that & it filled out the MAC address above for me . Then I went to the Xbox network settings , advanced settings & clicked " automatic " at ip address , subnet & DNS . I checked mutiplayer connections & did the " hold bumper & trigger buttons " trick & finally got an open NAT ; fired up CoD Advanced Warfare & got the open NAT there also . I may have screwed up when I did the port triggering but since the DMZ fix seems to work I'm going to leave things alone . Hope this helps others with open NAT problems .

  • Problems with Sun One Web Server  6.1 with SP1

    I get errors while compiling my JSP files on SUN one Web Server which is deployed on Solaris 9. it states that cannot compile JSP pages. here is the stack trace that i get.
    [03/Feb/2007:19:11:17] warning (  354): CORE3283: stderr: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    [03/Feb/2007:19:11:17] warning (  354): CORE3283: stderr:      at org.apache.jasper.compiler.SunJava14Compiler$JavacTask.run(SunJava14Compiler.java:207)
    [03/Feb/2007:19:11:17] failure (  354): for host 192.168.123.2 trying to GET /reports1/jsp/common/ClientInstall.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:756)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:616)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:401)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)Please help. The Java version i am using is j2sdk1.4.2_08.

    It looks like the Web Server has somehow been configured to use a JRE. Web Server requires a JDK. The following message in particular indicates that a JRE, not a JDK, is being used:java.lang.NoClassDefFoundError: com/sun/tools/javac/MainAre you using the JDK that shipped with Web Server, or did you attempt to configure Web Server to use a different JDK?

Maybe you are looking for

  • Deleting game app - fresh install

    I recently upgraded my iPhone (3G to 4) and I'm having functionality issues with a game/app--Caribbean Racing. It utilizes GameCenter, which is a permanent app on the iPhone. It's a sailboat racing game with nine different courses, and I can select d

  • User defined G/L Account Can't see in Balance sheet

    Hi, i have created one User defined G/L Account in Assets and also assign opening balance to it. But at a time during balance sheet view, user defined G/L Account cannot see.. How can i see this User Defined G/L Account in balance sheet.... Plz...Vie

  • Changing user password in Active Directory using the JNDI GSS-API/Kerberos5

    Hello, I am trying to the JNDI GSS-API to change a user password on an Active Directory Server 2003. I have seen a variation of this using SSL on the thread [*http://forums.sun.com/thread.jspa?threadID=592611&start=0&tstart=0*|http://forums.sun.com/t

  • Java to MS Access

    Hope you guys out there can help ! I am, having trouble connecting to MS Access through Java. Im using the netbeans IDE. I when i try to connect through a class the error message I revceive refers to 'no suitable driver found'. However, I can connect

  • My iphone has me locked out it won't accept my password

    I woke up this morning and my Iphone won't accept my password. I've been disabled for over an hour. Of course Apple want me to pay them money for assistance or deal with the chaotic mayhem of driving 40 miles to an Apple store.