Re: [T5] how to get a dynamic localized key value

2007-08-31 Thread 蝈蝈龙
Thanks Nick. 2007/8/31, Nick Westgate <[EMAIL PROTECTED]>: > > I know it's a bit painful without OGNL, but we have to make do. > If you can't do it in the template, call a Java method. > Something like ... > > ${userState} > ... > > @Inject > private Messages messages; > ... > > String getUserSta

Re: [T5] how to get a dynamic localized key value

2007-08-31 Thread Nick Westgate
I know it's a bit painful without OGNL, but we have to make do. If you can't do it in the template, call a Java method. Something like ... ${userState} ... @Inject private Messages messages; ... String getUserState() { return messages.get(getUser().getState()); } Cheers, Nick. Allen Guo

[T5] how to get a dynamic localized key value

2007-08-30 Thread Allen Guo
Hi All, I have a question on how to get a dynamic localized key value Below is a scenario [ ${message:} I hope similar codes above can get the localized key from properties file dynamiclly There may be following data in properties file // **_zh_CN.properties california=加利福尼亚 indiana=印第安那 //