Internet explorer Internet Explorer中的Velocity Liferay问题

Internet explorer Internet Explorer中的Velocity Liferay问题,internet-explorer,liferay,liferay-6,velocity,liferay-velocity,Internet Explorer,Liferay,Liferay 6,Velocity,Liferay Velocity,我正在运行Liferay 6.2 GA2。 使用以下源创建了具有虚拟结构和模板的Web内容 #set($layoutServiceUtil = $serviceLocator.findService("com.liferay.portal.service.LayoutService")) #set($topPublicLayouts = $layoutServiceUtil.getLayouts($groupId,true)) #set($viewCountExpName = 'viewCoun

我正在运行Liferay 6.2 GA2。 使用以下源创建了具有虚拟结构和模板的Web内容

#set($layoutServiceUtil = $serviceLocator.findService("com.liferay.portal.service.LayoutService"))
#set($topPublicLayouts = $layoutServiceUtil.getLayouts($groupId,true))
#set($viewCountExpName = 'viewCount')
#set($viewCount = ${topPublicLayouts.get(0).getExpandoBridge().getAttribute($viewCountExpName)})
Works in Chrome-${topPublicLayouts.get(0).getExpandoBridge().getAttribute($viewCountExpName)}-
-${topPublicLayouts.get(0).getNameCurrentValue()}-
--${viewCount}--
创建自定义属性,从portal-ext.properties中删除速度限制

上面的代码在Chrome中有效,但在IE中不起作用

铬的响应:

在Chrome-1617工作---家---1617--

IE(8、9、10和11)中的响应:

工作于 Chrome-${TopPublicClayouts.get(0.getExpandoBridge().getAttribute($viewCountExpName)}- -主页---${viewCount}--

Velocity软件包上的调试仅为IE提供以下错误日志:

17:41:45,687 DEBUG [RuntimePageImpl-6][velocity:155] Null reference [template '10257#10297#12641', line 5, column 17] : ${topPublicLayouts.get(0).getExpandoBridge().getAttribute($viewCountExpName)} cannot be resolved.
17:41:45,688 DEBUG [RuntimePageImpl-6][velocity:155] Null reference [template '10257#10297#12641', line 7, column 3] : ${viewCount} cannot be resolved.

如何在IE浏览器中获得
$viewCount

您确定这不是“浏览器缓存”问题吗?不。已清除缓存。浏览器临时文件。在5台不同的机器上测试。脚本中的所有其他更改都得到了正确的反映。即使在服务器日志中,错误也只有在我刷新IE页面时才会出现