我尝试将自定义导航 portlet 包含到主题的第一列所以我尝试在布局模板中使用以下代码: (\ROOT\layouttpl\custom\3_columns.tpl)
$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
$theme.runtime("71_INSTANCE_MAIN", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
它工作正常,期望,当进入管理 - >页面,并在页面树中选择一个页面(当前页面的不同)然后在配置面板上选择布局它返回javascript错误并停止工作
Timestamp: 06/09/2012 7:08:59 PM
Error: TypeError: j._container is null
Source File: http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6100&t=1345609853640&p=/html/js&m=/aui/aui-state-interaction/aui-state-interaction-min.js&m=/aui/widget-child/widget-child-min.js&m=/aui/aui-button-item/aui-button-item-min.js&m=/aui/aui-char-counter/aui-char-counter-min.js&m=/aui/aui-data-set/aui-data-set-min.js&m=/aui/widget-parent/widget-parent-min.js&m=/aui/aui-toolbar/aui-toolbar-min.js&m=/aui/aui-panel/aui-panel-min.js&m=/aui/dd-ddm-base/dd-ddm-base-min.js&m=/aui/dd-drag/dd-drag-min.js&m=/aui/dd-constrain/dd-constrain-min.js&m=/aui/dd-ddm/dd-ddm-min.js&m=/aui/dd-ddm-drop/dd-ddm-drop-min.js&m=/aui/dd-drop/dd-drop-min.js&m=/aui/dd-drop-plugin/dd-drop-plugin-min.js&m=/aui/dd-delegate/dd-delegate-min.js&m=/aui/aui-resize/aui-resize-base-min.js&m=/aui/aui-resize/aui-resize-constrain-min.js&m=/aui/aui-dialog/aui-dialog-min.js&m=/aui/aui-resize-iframe/aui-resize-iframe-min.js&m=/aui/aui-dialog-iframe/aui-dialog-iframe-min.js&m=/aui/aui-tree/aui-tree-data-min.js&m=/aui/aui-tree/aui-tree-node-min.js&m=/aui/dd-proxy/dd-proxy-min.js&m=/aui/aui-tree/aui-tree-view-min.js&m=/aui/dataschema-base/dataschema-base-min.js&m=/aui/dataschema-xml/dataschema-xml-min.js&m=/aui/sortable/sortable-min.js&m=/liferay/undo_manager.js&m=/liferay/auto_fields.js&m=/liferay/form_navigator.js&m=/aui/querystring-parse-simple/querystring-parse-simple-min.js&m=/aui/history-base/history-base-min.js&m=/aui/history-html5/history-html5-min.js&m=/liferay/history.js&m=/liferay/history_html5.js&m=/liferay/history_manager.js&m=/liferay/panel.js&m=/aui/aui-paginator/aui-paginator-min.js&m=/liferay/panel_floating.js&m=/liferay/search_container.js
Line: 1
Timestamp: 06/09/2012 7:08:59 PM
Error: TypeError: l is undefined
Source File: http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6100&t=1345609853640&p=/html/js&m=/aui/aui-state-interaction/aui-state-interaction-min.js&m=/aui/widget-child/widget-child-min.js&m=/aui/aui-button-item/aui-button-item-min.js&m=/aui/aui-char-counter/aui-char-counter-min.js&m=/aui/aui-data-set/aui-data-set-min.js&m=/aui/widget-parent/widget-parent-min.js&m=/aui/aui-toolbar/aui-toolbar-min.js&m=/aui/aui-panel/aui-panel-min.js&m=/aui/dd-ddm-base/dd-ddm-base-min.js&m=/aui/dd-drag/dd-drag-min.js&m=/aui/dd-constrain/dd-constrain-min.js&m=/aui/dd-ddm/dd-ddm-min.js&m=/aui/dd-ddm-drop/dd-ddm-drop-min.js&m=/aui/dd-drop/dd-drop-min.js&m=/aui/dd-drop-plugin/dd-drop-plugin-min.js&m=/aui/dd-delegate/dd-delegate-min.js&m=/aui/aui-resize/aui-resize-base-min.js&m=/aui/aui-resize/aui-resize-constrain-min.js&m=/aui/aui-dialog/aui-dialog-min.js&m=/aui/aui-resize-iframe/aui-resize-iframe-min.js&m=/aui/aui-dialog-iframe/aui-dialog-iframe-min.js&m=/aui/aui-tree/aui-tree-data-min.js&m=/aui/aui-tree/aui-tree-node-min.js&m=/aui/dd-proxy/dd-proxy-min.js&m=/aui/aui-tree/aui-tree-view-min.js&m=/aui/dataschema-base/dataschema-base-min.js&m=/aui/dataschema-xml/dataschema-xml-min.js&m=/aui/sortable/sortable-min.js&m=/liferay/undo_manager.js&m=/liferay/auto_fields.js&m=/liferay/form_navigator.js&m=/aui/querystring-parse-simple/querystring-parse-simple-min.js&m=/aui/history-base/history-base-min.js&m=/aui/history-html5/history-html5-min.js&m=/liferay/history.js&m=/liferay/history_html5.js&m=/liferay/history_manager.js&m=/liferay/panel.js&m=/aui/aui-paginator/aui-paginator-min.js&m=/liferay/panel_floating.js&m=/liferay/search_container.js
Line: 1
我曾尝试使用另一个 portlet(例如 webcontent display(56)),但它仍然返回相同的 javascript 错误。
请帮我。