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

  • Home
  • SEARCH
  • 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 8034993
In Process

The Archive Base Latest Questions

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

In my application, on the Login page , there is a language option on

  • 0

In my application, on the Login page, there is a language option on top of the page.

Language option

If I choose Chinese, everything will be translated to Chinese perfectly.

Chinese

If I click Refresh button or Ctrl + R, the page is still in Chinese. However, if I open another tab going to the same URL, even though the language option still shows that Chinese was chosen, everything will be English again.

English again

Nevertheless, if you click About us or Methodology, the next page will be in Chinese again as it should be.

I’d be very grateful if you could tell me what I have done wrong here.

Best regards,

  • 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-05T02:10:56+00:00Added an answer on June 5, 2026 at 2:10 am

    There’s apparently a problem in how you set the locale of the UIViewRoot.

    It should be done by <f:view locale> as follows in your master template, perhaps you had this right for all other pages, but not for the home page.

    E.g.

    <!DOCTYPE html>
    <html lang="#{localeBean.language}"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        ...
    >
        <f:view locale="#{localeBean.locale}">
            <h:head>
                ...
            </h:head>
            <h:body>
                ...
            </h:body>
        </f:view>
    </html>
    

    Where #{localeBean} is a @SessionScoped one which look similar this.

    This problem by the way indicates that the pages don’t share a common master template and that you’re duplicating XHTML code here and there. I’d work on that as well 🙂

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

Sidebar

Related Questions

In my application there is a login page after login the user will get
I saw in the Facebook application for iPhone,on the login page that there is
I am developing an android application. There is first login page and after that
My Jquery mobile application has a simple login page through which the user will
I have an application I would like to force SSL on the login page
In my application, upon clicking login in the login page, I have to call
Using VB.NET Windows Based Application In my software I am using a login page,
Ok simple question. I have a JSF application, containing a login page. The problem
In my application after login I am going into home page. But from home
I have made a web application that uses master page for Login & Logout

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.