liferay - 定制liferay日历portlet

标签 liferay liferay-6 liferay-ide

我正在尝试使用以下说明自定义日历 portlet。 https://www.liferay.com/it/documentation/liferay-portal/6.2/development/-/ai/creating-plugins-to-extend-plugins-liferay-portal-6-2-dev-guide-03-en

它基本上是创建插件来扩展插件。 为了实现上述目标,我需要 "Calendar-portlet.war" 。我没有找到适合我的版本的日历 portlet 的任何 war 文件。所以我决定自己打造。然后我从这里下载了Portal插件源代码。 https://github.com/liferay/liferay-plugins/tree/6.2.x

一切正常,但 JSP 页面中存在一些错误。

initi.jsp ---> The import com.liferay.compat.portal cannot be resolved.
view_calender.jsp--> Duplicate local variable editCalendarURL, Syntax error on token "if", delete this token, ...

所以,我无法编译和部署。我不确定构建路径是否存在问题。我也关注了这个 https://www.liferay.com/community/forums/-/message_boards/message/47489449

请帮助我解决其中任何一项问题。

1) 解决错误问题,成功构建calendar-portlet并创建war文件。

2)帮我找到calendar-portlet.war文件。

3) !?我可以从位于\liferay-portal-6.2-ce-ga3\tomcat-7.0.42\webapps 下的现有日历 portlet 创建 war 文件

版本:liferay-portal-6.2-ce-ga3

提前致谢。

Liferay 论坛中相同问题的链接。 https://www.liferay.com/community/forums/-/message_boards/message/54348563

最佳答案

Then i downloaded Portal plugins source code from here. https://github.com/liferay/liferay-plugins/tree/6.2.x

不要从主干下载。从特定标签获取。

我们定制日历 portlet 的方法是下载特定版本的日历 portlet 的源代码并从中修复-n-build。

https://github.com/liferay/liferay-plugins/tree/master/portlets/calendar-portlet

您可以从这里下载日历插件源代码。

关于liferay - 定制liferay日历portlet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30457050/

相关文章:

liferay - 如何在 Liferay Portlet 中通过结构名称获取 Web 内容?

Liferay jsonws API : how do I get p_auth from a client?

properties - 向 Liferay 添加额外的语言属性

java - 生命射线;将其他参数传递给 jQuery UI aotocompleter

java - 自定义 JSP 搜索为空?

java - 无法创建 Liferay 插件项目

liferay - 根据 Liferay 搜索容器中数据库的条件禁用行

liferay - 向用户隐藏 Liferay 控制面板选项

java - Liferay IDE portlet 更改未在服务器上同步

mysql - 如何从我的 liferay 自定义 portlet 使用自定义 mysql 查询?