Foren

Liferay 7 How to write jsp hooks?

thumbnail
William Gosse, geändert vor 7 Jahren.

Liferay 7 How to write jsp hooks?

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: Liferay 7 How to write jsp hooks?

Junior Member Beiträge: 32 Beitrittsdatum: 07.03.12 Neueste Beiträge
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/overriding-a-modules-jsps
This would be helpful to you.
thumbnail
William Gosse, geändert vor 7 Jahren.

RE: Liferay 7 How to write jsp hooks?

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
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.