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 5953105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:46:37+00:00 2026-05-22T17:46:37+00:00

There is quit non-trivial menu on UI. Its items named in loop this way:

  • 0

There is quit non-trivial menu on UI.
Its items named in loop this way:

loop start

<li>
<h:commandLink action="#{menuItem.getGlobalTransitionName()}">#{resourceBundle.getMessage(menuItem.id,null,menuItem.id,null)}
</h:commandLink>
</li>

loop end

call to resourceBundle performed above,where default locale is set – it’s hardcoded to null value,so resolved to En always:

#{resourceBundle.getMessage(menuItem.id,null,menuItem.id,null)}

What I’ve tried:

1. this invokes parsing error:

#{resourceBundle.getMessage(menuItem.id,null,menuItem.id,${externalContext.locale})}

2. this invokes error as well:

#{resourceBundle.getMessage(menuItem.id,null,menuItem.id,#{resourceBundle.locale})}

how can I pass really used locale there?

  • 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-05-22T17:46:38+00:00Added an answer on May 22, 2026 at 5:46 pm

    Nesting EL expressions is indeed invalid. Don’t do that. Plus, ExternalContext doesn’t have a getLocale() method. You want to use #{facesContext.viewRoot.locale} instead.

    #{resourceBundle.getMessage(menuItem.id,null,menuItem.id,facesContext.viewRoot.locale)}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to quit from drawRect: without refresh the current UIView ?
Is there any way to cause an app to quit instead of going to
Is there any way to quit the iOS Simulator via a command line script?
I want to use quit functionality in my android application. Is there any way
Is there a way to call a quit() function on an SAXParser or XMLReader?
I want my app to loop in python but have a way to quit.
Is there a way to force quit all other applications from a cocoa app?
There is previous little on the google on this subject other than people asking
I am not sure whether there is a way to Launch an external application,
I am not even sure this is a previous command or a non-finished command

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.