Software Reality
Programming with
a dose of satire.

Site Map Search


Agile Development
 
Extreme Programming
 
Code Generation


Articles
Lifecycle
Design
Programming
Soapbox
Reviews
Cthulhu

Java Swing
Swing's greatest threat isn't SWT, it's Flash
Swing Survival Guide


 
Check out our ageing Reviews Section


Use Case Driven
Use Case Driven Object Modeling with UML: Theory and Practice
Get from use cases to working, maintainable source code. Examples use Spring Framework, JUnit and Enterprise Architect

Agile UML
Agile Development with ICONIX Process
A practical subset of agile development techniques, illustrated by example

Get Controversial!
Extreme Programming Refactored
Extreme Programming with a dose of satire
Available now:



Programming

JavaServer Faces 1.0 Early Access Draft (Page 6)

<< Page 5 (Validation and Error Messages)


Internationalization

Section JSF 5.1.2 covers the use of Locales with the FacesContext in order to support localization of UIComponents (and error messages, I'm assuming). This has a major impact on Internationalization. It seems as though it is impossible to render different UIComponents with different Locales. Multi-lingual applications will need this functionality.

Let's assume that you can Localize each UIComponent. When different UIComponents encode using different Locales and the HttpServletResponse's content type supports one locale but not another, there could be rendering problems on the client side in the browser.

Section JSF 5.1.5 talks about the Message classes and how error messages are added to the FacesContext. This section however forgets a major step in internationalization. Messages that are added to the message queue (during validation or processing) contain Unicode String Objects and therefore could be written in any language. The Message Object does not contain information about the Locale that the message needs to be converted to - and this is needed for internationalization.

It seems as though the specification wants to force all localization into the Locale set into the FacesContext, which as I've already mentioned can be detrimental. JSF, as it stands, does not seem to support error messages in multiple languages. The use of multiple languages is something that needs to be addressed and carefully considered because of the problems inherent to it (such as determining the encoding when two locales require different encodings).

>> Page 7 (Nice to have / Readability)

<< Back to Programming

All trademarks and copyrights on this page are owned by their respective owners.
Stories and articles are owned by the original author.
All the rest Copyright © 1998-2008 Matt Stephens. ALL RIGHTS RESERVED.