Skip to main content
  • 634 Accesses

Abstract

Jakarta Faces has always had decent internationalization support. Since Jakarta Faces 1.0, you can supply java.util.ResourceBundle-based bundle files in different locales, which in turn get dynamically included as text in the web page at the declared places. Also, all Jakarta Faces converters and validators have their own set of localized default messages which you can easily customize via a message bundle or, since Jakarta Faces 1.2, via new requiredMessage, converterMessage, and validatorMessage attributes. Jakarta Faces 2.0 adds, via the new jakarta.faces.application.ResourceHandler, API (application programing interface) support for localizable assets such as stylesheets, scripts, and images.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

  2. 2.

    https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

  3. 3.

    https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4

  4. 4.

    https://en.wikipedia.org/wiki/IETF_language_tag

  5. 5.

    https://en.wikipedia.org/wiki/Don%27t_repeat_yourself

  6. 6.

    https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/text/MessageFormat.html

  7. 7.

    https://stackoverflow.com/q/4325164/157882

  8. 8.

    https://en.wikipedia.org/wiki/Markdown

  9. 9.

    https://github.com/atlassian/commonmark-java

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Scholtz, B., Tijms, A. (2022). Localization. In: The Definitive Guide to Jakarta Faces in Jakarta EE 10. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7310-4_14

Download citation

Publish with us

Policies and ethics