Tuesday, October 26, 2010

using two DefaultStringMapValue in the same constants file

Quite sute this is a gwt bug -

in one constants file i have two DefaultStringMapValue annotations:

@DefaultStringMapValue(
{
"w","Week",
"m","Month",
"d","Day"
})

Map<String,String> periods();


and

@DefaultStringMapValue(
{
"n","No",
"y","Yes",
"m","Maybe"
})
Map<String,String> answers();

now when i try to use periods() in some class, i get the following
map:
{"w","Week", "m","Maybe", "d","Day" }

The problem is that "m" is translated to maybe, but should be
translated to month...

Thanks

Zemer

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment