liferay-portlet.xml for Friendly URL mapping in Liferay
来源:互联网 发布:淘宝宝贝描述图片 编辑:程序博客网 时间:2024/04/29 06:29
When I configure friendly url based on Chapter 10 of Liferay in Action, it says place the following code right after <icon>. I think the book says that based on slogan project. If we configure other stuff after <icon>, it might be wrong.
<friendly-url-mapper-class>
com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper
</friendly-url-mapper-class>
<friendly-url-mapping>SpringBookReceiver</friendly-url-mapping>
<friendly-url-routes>
com/book/controller/book-friendly-url-routes.xml
</friendly-url-routes>
The thing is our elements must match dtd, the order is like below:
The content of element type "portlet" must match "(portlet-name,icon?,virtual-path?,struts-path?,parent-struts-path?,configuration-path?,configuration-action-class?,indexer-
class*,open-search-class?,scheduler-entry*,portlet-url-class?,friendly-url-mapper-class?,friendly-url-mapping?,friendly-url-routes?,url-encoder-class?,portlet-data-handler-class?,portlet-
layout-listener-class?,poller-processor-class?,pop-message-listener-class?,social-activity-interpreter-class?,social-request-interpreter-class?,webdav-storage-token?,webdav-storage-
class?,xml-rpc-method-class?,control-panel-entry-category?,control-panel-entry-weight?,control-panel-entry-class?,asset-renderer-factory*,atom-collection-adapter*,custom-attributes-
display*,permission-propagator?,workflow-handler*,preferences-company-wide?,preferences-unique-per-layout?,preferences-owned-by-group?,use-default-template?,show-portlet-
access-denied?,show-portlet-inactive?,action-url-redirect?,restore-current-view?,maximize-edit?,maximize-help?,pop-up-print?,layout-
cacheable?,instanceable?,remoteable?,scopeable?,user-principal-strategy?,private-request-attributes?,private-session-attributes?,autopropagated-parameters?,action-timeout?,render-
timeout?,render-weight?,ajaxable?,header-portal-css*,header-portlet-css*,header-portal-javascript*,header-portlet-javascript*,footer-portal-css*,footer-portlet-css*,footer-portal-
javascript*,footer-portlet-javascript*,css-class-wrapper?,facebook-integration?,add-default-resource?,system?,active?,include?)".
If you follow the order, you can't get error.
- liferay-portlet.xml for Friendly URL mapping in Liferay
- Liferay+Spring Friendly URL mapping
- Friendly URLs for Liferay Portlets
- Friendly URLs for Liferay Portlets
- Liferay-portlet.xml概要解释
- Adding Friendly URL Mapping to the Portlet
- How to create scheduler in liferay portlet
- liferay-portlet.xml的规则定义
- 由一个portlet配置错误引起对liferay的(iferay-portlet.xml,portlet.xml,liferay-display,web.xml)研究
- Liferay Struts Portlet 1
- Liferay Struts Portlet 2
- Liferay Struts Portlet 3
- Liferay-Portlet -------CI
- [Liferay]基于liferay开发百度地图portlet
- Liferay portlet Plug-in API变量的配置
- How does Twitter Portlet in Liferay Marketplace work?
- liferay portlet.xml配置顺序引起的错误
- [Liferay] Liferay 瘦身,Liferay 精简,取消加载 Portlet
- 工作流时序图(流程管理)
- Cocos2d-x初入学堂(4)-->CCSprite动画
- 关于Mathtype的格式中对齐的问题
- How to use binary mode for stdin/stdout in VC
- 11_5_3给people添加GetOldest()方法,使用上面定义的重载运算符,返回一个Age最大的对象数组
- liferay-portlet.xml for Friendly URL mapping in Liferay
- 使用jQuery插件-passwordStrength检查密码强度
- PowerDesigner中Table视图同时显示Code和Name
- 在Struts中使用displaytag标签的排序/分页数据
- 覆写onLayout进行layout,含自定义ViewGroup例子
- 照片
- 兼职创业在路上
- c语言链表出现一个错误
- vc++6.0断点调试