【发布时间】:2014-06-03 09:44:18
【问题描述】:
我最近开始在我的 spring mvc 4 + hibernate 4 + tiles 3 项目中集成datatables。
我希望它显示具有各种语言支持的标题。
所以我从link开始。
根据此页面建议,我的标题显示???key??? 消息。
我想在列标题中显示Id,但它显示的是???table.header.id???。
这个link 说
如果在捆绑包中找不到密钥,则 ???key???消息将显示在列标题中。
但我已经关注datatables.properties
i18n.locale.resolver=com.github.dandelion.datatables.extras.spring3.i18n.SpringLocaleResolver
global.i18n.message.resolver=com.github.dandelion.datatables.extras.spring3.i18n.SpringMessageResolver
还有global_en.properties
table.header.id=Id
我还复制了与 global.properties.. 相同的文件,但没有成功。
我的jsp文件包含
<datatables:table id="users" ...>
<datatables:column titleKey="table.header.id" property="userId" />
<datatables:table />
我的资源文件夹结构是
我应该把table.header.id=Id放在哪里??
需要任何帮助。提前致谢。
注意:我使用的是AJAX source + server-side processing。
【问题讨论】:
标签: spring spring-mvc internationalization datatables dandelion