> Can you confirm, Graeme, that the LocaleResolver implementation used
> by Grails is the SessionLocaleResolver? (not very clear from the
> docs).
My name isn't Graeme, but I can confirm that SessionLocaleResolver is
used. You can find out what Spring beans are used by looking inside
I18nGrailsPlugin.
> In particular, does the constraints allow the URL mapper resolver to
> discriminate on a optional parameter?
>
> Eg, for the mapping:
>
> "/$lang?/$controller/$action?"
> {
> constraints
> {
> lang(matches:/[a-z]{2}/)
> }
> }
>
> will the code checks if I have a 2 letter string after the first
> slash, in that case fill the $lang parameter, and in the other case
> assume the $lang parameter is not present? I am not sure if such
> advanced conditional mappings currently work with Grails.
I'm afraid I don't know, but I don't think you can even have an option
parameter appearing ahead of a required one.
Regards,
Peter
--
Software Engineer
G2One, Inc.
http://www.g2one.com/---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email