留言板

Alloy datatable (aui-datatable) in Liferay CE 6.1.2 GA3?

Rob Hall,修改在9 年前。

Alloy datatable (aui-datatable) in Liferay CE 6.1.2 GA3?

Junior Member 帖子: 47 加入日期: 11-11-30 最近的帖子
I've been trying to do some simple datatable usage on a page in a portlet deployed to Liferay CE 6.1.2 GA3. I've tried both using the YUI3 datatable (YUI 3.11.0) and the AUI datatable---I followed the tutorial here (http://alloyui.com/tutorials/datatable/) and set up a simple example.

The behavior I'm seeing is the table is never rendering--I get a blank space in my portlet page. I see in the Chrome browser developer console a message: yui: NOT loaded: aui-datatable

I've used AUI for a couple of years now w/ Liferay portlets, but this is my first time with the datatable. I feel like there is some fundamental Liferay-specific configuration I'm missing. I also tried adding this to the liferay-portlet.xml portlet for YUI:
<header-portlet-javascript>http://yui.yahooapis.com/3.11.0/build/yui/yui-min.js</header-portlet-javascript>

and for AUI:
<header-portlet-javascript>http://cdn.alloyui.com/2.5.0/aui/aui-min.js</header-portlet-javascript>

Neither seems to help. I know the script with the data table is run, because I've tested it with alerts at various points.

Thoughts?

Attached is my simple data table jsp.
thumbnail
bhargavi m,修改在9 年前。

RE: Alloy datatable (aui-datatable) in Liferay CE 6.1.2 GA3?

Junior Member 帖子: 47 加入日期: 12-4-5 最近的帖子
http://alloyui.com/tutorials/datatable/