Re: TextResource vs Constant
On Thursday, July 19, 2012 7:12:06 PM UTC+2, Lars wrote:
Excellent advice... Thanks Thomas & Joseph.
I'm assuming when it comes down to deciding b/w using the Constants or Messages interfaces, the decision is based upon whether you need the substitution features available by using messages?
I'd rather base my choice on the type of values: Messages can only have String and SafeHtml, whereas Constants can have numbers and booleans (and lists or maps of them).
If you have only Strings and no parameter, then Constants or Messages will lead to the exact same code.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JqXBG243wTgJ.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home