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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:18:27+00:00 2026-05-13T07:18:27+00:00

I use GWT along with Spring/Hibernate/AOP. I use an Aspect to send notification emails.

  • 0

I use GWT along with Spring/Hibernate/AOP. I use an Aspect to send notification emails.
In one of my Aspect, I want to get the current locale from GWT,so that I can send the localized email to the user.
Is there a way to access GWT Locale data from the client side?

Thanks

  • 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-13T07:18:27+00:00Added an answer on May 13, 2026 at 7:18 am

    http://code.google.com/intl/es-ES/webtoolkit/doc/latest/DevGuideI18nLocale.html

    has info about Locales in GWT.

    I have two approaches:

    1) session-less server: the method in the server that sends the email receives the locale from the client.

    Let’s say the interface has a method:

    doStuffAndSendMails(MyObjectData myObj);
    

    My proposal is to convert it to

    doStuffAndSendMails(MyObjectData myObj, String localeStr);
    

    and call it from the GWT client in this way:

    doStuffAndSendMails(myObj, LocaleInfo.getCurrentLocale().getAsString());
    

    2) session-aware server: I don’t know if GWT allows using session… and… I prefer not to use it… but if you have to, you can send to the server the locale of the client and store it in the session…

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

Sidebar

Related Questions

I want to use the latest gwt-incubator drop - gwt-incubator-july-14-2009.jar - in a Maven
I am trying to use Twitter Bootstrap for GWT and get the same nice
We use WebSphere 7.x (It supports Java ee 5). We want to use gwt
I want to use Jsoup as an external JAR with GWT on the client-side.
I use a CellTable widget in GWT. I want to change the font size
I'm trying to use gwt-log on my gwt application but I can't get any
I would like to use GWT as a GUI for a stand-alone app (distributed
I am learning to use GWT with App Engine in Eclipse. I included the
Hi I use GWT and I have a com.smartgwt.client.widgets.Button that has the following eventHandler:
I'm wondering how to use GWT to hide certain files stored on the server.

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.