IceFaces javascript 无法在 liferay portlet 中运行
我将一个在 weblogic 中的 Liferay5 上运行的应用程序(用 Ice faces 1.8 制作)部署到带有 tomcat 的 Liferay6 中。应用程序和一切看起来都很好......唯一不起作用的是javascript......当我单击按钮,更改选择时,当应该进行ajax调用时什么也没有发生。我对 javascript 进行了一些调试,发现在函数 iceSubmit 和 iceSubmitPartial 中调用了方法 H.sendOn(currentConnection($element(B) ), $element(D)));
并且此方法的实现如下:
sendOn: function(B) { B.send(this); }
传递的对象(HtmlDiv)的方法 send 是使用 noop 函数实现的:
Function.NOOP = function() { };
问题是……为什么会发生这种事???
我不了解 JSF,而且真诚地我不知道从哪里开始搜索一些东西......
I deployed an application (made with ice faces 1.8) that works on Liferay5 in a weblogic into a Liferay6 with tomcat. The application and everything seems good....the only thing that won't works is the javascript...when i click on a button, change a select, when an ajax call should be made nothing is made. I debbugged a little bit the javascript and see that in the function iceSubmit and iceSubmitPartial there is the call to the method H.sendOn(currentConnection($element(B), $element(D)));
and this method is implemented as follows:
sendOn: function(B) { B.send(this); }
and the method send for the object passed (an HtmlDiv) is implemented with the noop function:
Function.NOOP = function() { };
The question is...why can happens this???
I don't know JSF and sincerely I don't know where I can start to search something...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.liferay.com/web/nathan.cavanaugh/blog/-/blogs/using-jquery-or-any-javascript-library-in-liferay-6-0
我有类似的问题升级到Liferay 6。修改主题以加载portal_normal.vm 中的所有javascript 文件后,一些损坏的功能得到恢复(在我的例子中是jQuery)。
http://www.liferay.com/web/nathan.cavanaugh/blog/-/blogs/using-jquery-or-any-javascript-library-in-liferay-6-0
I had a similar issue upgrading to Liferay 6. After modifying the theme to load all the javascript files in portal_normal.vm, some of the broken functionality got restored (in my case it was jQuery).