留言板

Liferay 7 How to write jsp hooks?

thumbnail
William Gosse,修改在7 年前。

Liferay 7 How to write jsp hooks?

Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
Can some explain how to do hooks in Liferay 7. I tried using the SDK but it seems incomplete. I also look at doing it with the new Liferay workspace method as well. There's seems to be a lot conflicting and incomplete information on how this is done in 7.
thumbnail
Yogesh Sharma,修改在7 年前。

RE: Liferay 7 How to write jsp hooks?

Junior Member 帖子: 32 加入日期: 12-3-7 最近的帖子
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/overriding-a-modules-jsps
This would be helpful to you.
thumbnail
William Gosse,修改在7 年前。

RE: Liferay 7 How to write jsp hooks?

Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
I look at this and I don't get it. Just reading that I have know idea where to start or what tool I'm suppose to use. I really wished they just kept the SDK working the way it used to. Pretty much everything I've tried with the latest version is broken in one way or another.
thumbnail
William Gosse,修改在7 年前。

RE: Liferay 7 How to write post logon hook? (答复)

Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
I finally got the hook I wanted going OK . I really needed to create a post login look and I found an example here: https://github.com/liferay/liferay-blade-samples

I was able to use the provided pre login hook to create new post login hook. Then it was a matter change the Component annotation:
@Component(immediate = true, property = { "key=login.events.post" }, service = LifecycleAction.class)

I used the maven version so I had to play around with my pom and bnd files to include some external dependencies that my code required into the actual jar file that got deployed as an osgi module.