使用默认模板配置标记不起作用 [英] use-default-template configuration tag does not work

查看:69
本文介绍了使用默认模板配置标记不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了简单的"Hello world" portlet,并且刚刚添加了

I've created simple "Hello world" portlet and just added

<use-default-template>true</use-default-template>

到liferay-portlet.xml文件的portlet部分.

to the portlet section of liferay-portlet.xml file.

Portlet停止工作,但日志中出现以下异常

Portlet stopped to work with the following exception in the log

11:29:03,973错误[PortletLocalServiceImpl:656] com.liferay.portal.kernel.xml.DocumentException:文档第13行错误:元素类型"portlet"的内容必须与((portlet-name,icon ?,............等等

11:29:03,973 ERROR [PortletLocalServiceImpl:656] com.liferay.portal.kernel.xml.DocumentException: Error on line 13 of document : The content of element type "portlet" must match "(portlet-name,icon?,............ and so on

我的标签的名称出现在这里.

The name of my tag is present here.

这是为什么?这个标签过时了吗?

Why is this? Is this tag obsolete or something?

谢谢.

推荐答案

问题是liferay-portlet.xml上标签的顺序.您应该按照规范"( DTD >).

The problem is the order of the tags on the liferay-portlet.xml. You should put the tags on the right order following the "spec" (DTD).

这篇关于使用默认模板配置标记不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆