Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Liferay:无法从Dockbar添加portlet_Javascript_Liferay_Portlet_Control Panel - Fatal编程技术网

Javascript Liferay:无法从Dockbar添加portlet

Javascript Liferay:无法从Dockbar添加portlet,javascript,liferay,portlet,control-panel,Javascript,Liferay,Portlet,Control Panel,我使用的是与Tomcat 7.0.23捆绑在一起的Liferay 6.1.1 GA2。 我无法使用“添加”按钮将portlet添加到Liferay页面 在firebug控制台中,我看到了这个错误:TypeError:portletBound在portlet.js文件中为空 如果运行调试器,我会看到var portletBound在此函数中为NULL var addPortletReturn = function(html) { var container = placeHolder.get('p

我使用的是与Tomcat 7.0.23捆绑在一起的Liferay 6.1.1 GA2。 我无法使用“添加”按钮将portlet添加到Liferay页面

在firebug控制台中,我看到了这个错误:TypeError:portletBoundportlet.js文件中为空

如果运行调试器,我会看到var portletBound在此函数中为NULL

var addPortletReturn = function(html) {
var container = placeHolder.get('parentNode');
var portletBound = A.Node.create('<div></div>');
portletBound.plug(A.Plugin.ParseContent);
portletBound.setContent(html);
portletBound = portletBound.get('firstChild');
var id = portletBound.attr('id'); 
var addPortletReturn=function(html){
var container=placeHolder.get('parentNode');
var portletBound=A.Node.create(“”);
plug(A.Plugin.ParseContent);
setContent(html);
portletBound=portletBound.get('firstChild');
var id=portletBound.attr('id');
然后我只看到一个gif图像,什么也没发生。
有人能帮忙吗?

我有一个解决方案:在portal.property中,json.service.auth.token.enabled被设置为TRUE, 将其设置为FALSE后,一切正常