A
Andy Dingley
Any advice on how to internationalize a web app so that it supports a
sortable table, where clicking column headers sorts by that column?
The basic underlying tech for this is Java on the server and Ajax on
the web client.
The particular problem is in how to localize the sorting, as sorting
non-ASCII characters according to their locale is an important
requirement. Java's java.text.Collator can do this easily, as it
supports comparisons and sorts for a parameterized locale.
JavaScript's localeCompare() though picks this collation locale up
from the browser environment.
How robust is localeCompare() for this?
What's cross-platform support like for localeCompare() ?
What's localized support like for localeCompare() ? Will a browser
running in a call centre in India be able to correctly sort Arabic?
Another idea was to return the results of Java's
Collator.getCollationKey() along with the string data, and have the
local JavaScript sort on that instead. This just needs a simple byte
compare, not anything l10n-aware.
Thanks for any suggestions
sortable table, where clicking column headers sorts by that column?
The basic underlying tech for this is Java on the server and Ajax on
the web client.
The particular problem is in how to localize the sorting, as sorting
non-ASCII characters according to their locale is an important
requirement. Java's java.text.Collator can do this easily, as it
supports comparisons and sorts for a parameterized locale.
JavaScript's localeCompare() though picks this collation locale up
from the browser environment.
How robust is localeCompare() for this?
What's cross-platform support like for localeCompare() ?
What's localized support like for localeCompare() ? Will a browser
running in a call centre in India be able to correctly sort Arabic?
Another idea was to return the results of Java's
Collator.getCollationKey() along with the string data, and have the
local JavaScript sort on that instead. This just needs a simple byte
compare, not anything l10n-aware.
Thanks for any suggestions