留言板

How to customize Calendar in Liferay version 6.2

Chiến Ngọc,修改在10 年前。

How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 35 加入日期: 13-10-9 最近的帖子
In liferay 6.1.2 GA3, I created a hook for Calendar and it was OK. But, when I upgraded to version 6.2 GA1, my hook does not work any longer

I found that Calendar in Liferay's 6.2 is separated to a portlet. And now I don't know how to custom this Calendar portlet, Does anyone know how to do this, help me please? Many thanks.
thumbnail
Juan Gonzalez,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Maybe you can try this wiki page to extend a plugin from Calendar Portlet:

https://www.liferay.com/community/wiki/-/wiki/Main/Plugin+to+extend+a+plugin
Chiến Ngọc,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 35 加入日期: 13-10-9 最近的帖子
Thanks Juan, but I couldn't find where is Calendar WAR. And I think I will customize Calendar source code. Could you help me?
thumbnail
Juan Gonzalez,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
It's in liferay-plugins/portlets/calendar-portlet. You can try this branch:

https://github.com/liferay/liferay-plugins/tree/6.2.x
Chiến Ngọc,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 35 加入日期: 13-10-9 最近的帖子
Thank you very much. I downloaded this source code and import to Liferay IDE. But the first, I saw this version is 7.0.0+ and I changed to 6.2.0+. Then I deployed to WAR file.
When Liferay is deploying, I met this error:

<code>
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portl
ets for calendar-portletcalendar-portlet
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDe
ployException(BaseHotDeployListener.java:46)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(P
ortletHotDeployListener.java:127)
at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDepl
oyImpl.java:205)
at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeploy
Impl.java:96)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(Ho
tDeployUtil.java:27)
at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEve
nt(PluginContextListener.java:164)
at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(
PluginContextListener.java:154)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePor
talLifecycle.java:44)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLif
ecycleUtil.java:64)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLif
ecycleUtil.java:56)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLife
cycle(BasePortalLifecycle.java:54)
at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitia
lized(PluginContextListener.java:116)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1113)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1671)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: com.liferay.portal.kernel.xml.DocumentException: Connection timed out
: connect Nested exception: Connection timed out: connect
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:426)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:444)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:1
61)
at com.liferay.portlet.PortletBagFactory.newFriendlyURLRouter(PortletBag
Factory.java:751)
at com.liferay.portlet.PortletBagFactory.newFriendlyURLMapper(PortletBag
Factory.java:735)
at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:1
30)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy
(PortletHotDeployListener.java:369)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(P
ortletHotDeployListener.java:124)
... 24 more
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exc
eption: Connection timed out: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:423)
... 31 more
</code>

Please help me. Thank you.
thumbnail
Juan Gonzalez,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Guess you didn't do what I said.

You have to clone the 6.2.x branch, not master.
Chiến Ngọc,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 35 加入日期: 13-10-9 最近的帖子
Thank you very much. I could customize. Nice weekend.
thumbnail
Juan Gonzalez,修改在10 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Great! Thanks for confirming..
Luis Silva,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 42 加入日期: 13-4-18 最近的帖子
Hi,
I'm posting in this thread because my issue involves the calendar portlet.
I'm going to use the calendar for room scheduler, but I don't need (want) to have the My Calendars and Other Calenders option on the portlet. Only Current Site Calendars.

First this can be bone by settings in configuration file?

If not can you give me a hand how to extend/custom the portlet? Its best than changing the source code right?
Specially in my case that I'm using a development server and its easier to deploy a new war file on production.
But there is no calendar.war file... in order to use the Juan sugestion, https://www.liferay.com/community/wiki/-/wiki/Main/Plugin+to+extend+a+plugin
Its possible to make one from the existing sources on Liferay portal or should I use the sources from Git?

I appreciate any help.

Regards,
Luis Silva
thumbnail
Zsigmond Rab,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Master 帖子: 728 加入日期: 10-1-5 最近的帖子
Hi Luis,

you can download the plugin from here.

Regards,
Zsigmond
Luis Silva,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 42 加入日期: 13-4-18 最近的帖子
Hi Zsigmond,
I have the calendar installed, but without an war file.
I customized the calendar like I need, but changing the source files. But for putting in production I have also to change the sources there instead of deploying an extension.

Regards,
Luis Silva
thumbnail
Zsigmond Rab,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Master 帖子: 728 加入日期: 10-1-5 最近的帖子
Hi Luis,

I'm not sure I understand what is the situation. How have you installed without war file?

Why cannot you download the war file?

Could you please elaborate your problem more?

Regards,
Zsigmond
Luis Silva,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 42 加入日期: 13-4-18 最近的帖子
Hi Zsigmond,

The calendar is installed by the app manager and if I go to the file system and try to locate a donwloaded calendar*.war file there is none (linux SO).
All installed files are on tomcat-7.0.42/webapps/calendar-portlet, and is where I'm chaging what I need, but the issues is that I have to make the same changes in the production environment.


Regard,
Luis Silva
thumbnail
Zsigmond Rab,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Liferay Master 帖子: 728 加入日期: 10-1-5 最近的帖子
Hi Luis,

then, you should be able to download the plugin through the Control Panel. See the user guide for more information.

Regards,
Zsigmond
Luis Silva,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Junior Member 帖子: 42 加入日期: 13-4-18 最近的帖子
Hi Zsigmond,
I have download the plugin, and I'm taking a look on the Resources importer app.

Regards,
Luis Silva
thumbnail
Antoine Comble,修改在9 年前。

RE: How to customize Calendar in Liferay version 6.2

Regular Member 帖子: 232 加入日期: 12-9-7 最近的帖子
Hello all,

I've cloned liferay-plugin 6.2.x branch in order to hook calendar portlet (jsp and java classes).

I've imported project in eclipse and build it as Maven project.

Compilation is good, but when i deploy war file in deploy folder, i'm not able to see portlet.
in log, there is a loop like :

08:45:34,194 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployImpl:217] Deploying calendar-portlet from queue
08:45:34,197 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginPackageUtil:1016] Reading plugin package for calendar-portlet
08:45:34,972 WARN  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginContextListener:87] Preventing the replacement of the plugin class loader
08:45:34,975 WARN  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PluginContextListener:72] Preventing the removal of the plugin class loader
08:45:34,978 INFO  [ContainerBackgroundProcessor[StandardEngine[Catalina]]][HotDeployEvent:145] Plugin calendar-portlet requires marketplace-portlet


I attach my war file.

Can you help me telling what step failed ?

Regards,

Antoine