On Fri, Mar 2, 2012 at 3:11 PM, Justin Mclean <jus...@classsoftware.com>wrote:
> Hi, > > > But couldn't one component cover the logic of both the "us" way and the > > "iso" way, using some sort of locale property? > It could but then you end up will a very last case statement. > > Perhaps it better to be more flexible and: > 1. Allow the format to be specified > 2. Provide a method to return a suggested format for a locale > 3. If the locale is not specified use the suggested format based on the > current locale > > Reason being you may want to validate postcodes (or any else) for multiple > locales not just the one you are currently in. > > Thanks, > Justin This makes perfect sense to me, and seems to fit in with the Spark validators model where they have hooks to the new globalization APIs. I need to spend some time figuring that out. -- Omar Gonzalez s9tpep...@apache.org Apache Flex PPMC Member