1

我在 IceFaces 1.8.2 上编写了 portlet。
由于我发现 PrimeFaces 更好,我决定用 JSF2 和 PrimeFaces 3.5 编写我的新 portlet。

另外,一切正常。但是当我试图将我的 PrimeFaces portlet 和 IceFaces portlet 放在一个页面上时,PrimeFaces 不起作用。

UI或多或少还可以,但是javascript中有很多错误。

我能以某种方式解决这个问题吗?

我正在使用 Liferay 6.0.6

4

1 回答 1

0

Do not include Primefaces and Icefaces portlets on the same portal page!

Since they both rely on jQuery, they will both include (potentially different versions of) jQuery on the page which will cause javascript conflicts. There may be workarounds for this (although I don't know of any), but it is an extremely bad idea.

于 2015-01-30T15:09:23.497 回答