Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8104703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:55:26+00:00 2026-06-05T23:55:26+00:00

I have an f:loadBundle that loads a properties file from my classpath. <f:loadBundle basename=com.xxx.ui.messages

  • 0

I have an f:loadBundle that loads a properties file from my classpath.

<f:loadBundle basename="com.xxx.ui.messages" var="msg" />

Later on, I’m attempting to use a message from the resource bundle with the following syntax:

<h:outputText value="test message: #{msg.does_not_exist} --"/>

It used to be that JSF would print out a “NOT FOUND” message, but now it’s throwing an exception. Did the specification change or is this the correct behavior?

I’m using Mojarra 2.1.9 with JUEL 2.2.4 as a EL resolver. Here’s the stack trace:

javax.el.PropertyNotFoundException: /WEB-INF/xxx.xhtml @10,70 value="test message: #{msg.does_not_exist} --": Property 'does_not_exist' not found on type java.util.PropertyResourceBundle
    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111)
    at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
    at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
    at javax.faces.component.UIOutput.getValue(UIOutput.java:169)
    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)

EDIT:
The correct behavior can be verified here: http://javaserverfaces.java.net/nonav/docs/2.0/vdldocs/facelets/f/loadBundle.html

(Which says the literal string ???KEY??? is returned from the Map, where KEY is the key being looked up in the Map, instead of a MissingResourceException being thrown)

EDIT: Same problem even after removing JUEL

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:55:27+00:00Added an answer on June 5, 2026 at 11:55 pm

    So the answer is actually staring you in the face… props to @millimoose for getting me started down the right path.

    Notice the specification says this:

    the literal string ???KEY??? is returned from the Map, where KEY is
    the key being looked up in the Map, instead of a
    MissingResourceException being thrown.

    But my stack trace says this:

    javax.el.PropertyNotFoundException: /WEB-INF/xxx.xhtml @10,70
    value=”test message: #{msg.does_not_exist} –“: Property
    ‘does_not_exist’ not found on type java.util.PropertyResourceBundle

    Ahah, a possible bug!

    Knowing that this class would be pulled from tomcat/lib, I browsed out to their source and javadoc here. Notice the throws declaration on “getValue()”?

    That’s in pretty stark contrast to the specification here.

    So I removed el-api from tomcat/lib and replaced it with the spec jar (here) and problem solved!

    Why Tomcat is so different from the specification is beyond me… those crazy Apache guys.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code as follows: <f:loadBundle basename=messages.application var=prop /> <ui:param name=currentUserAttr value=#{prop['currentUser']} />
I need to have resource messages that contain EL expressions be resolved when loaded
Have a look at one of my websites: moskah.com The problem is that it
I have resource bundle as Java class that read values from database. When i
Have an app that can use tts to read text messages. It can also
I have this 2 properties files in my resources folder: messages_hr_HR.properties and messages.properties I
I am using JSF2.0 and Glassfish v3. I have a ValidatorMessage.properties file under WEB-INF>Classes
This is my messages_en_US.properties file in WEB-INF/classes folder :- Login=Login And then i created
Have converted devise new session from erb to Haml but doens't work, this is
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.