Fórum

Liferay 7 How to write jsp hooks?

thumbnail
William Gosse, modificado 7 Anos atrás.

Liferay 7 How to write jsp hooks?

Liferay Master Postagens: 533 Data de Entrada: 04/07/10 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Liferay 7 How to write jsp hooks?

Junior Member Postagens: 32 Data de Entrada: 07/03/12 Postagens Recentes
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/overriding-a-modules-jsps
This would be helpful to you.
thumbnail
William Gosse, modificado 7 Anos atrás.

RE: Liferay 7 How to write jsp hooks?

Liferay Master Postagens: 533 Data de Entrada: 04/07/10 Postagens Recentes
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, modificado 7 Anos atrás.

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

Liferay Master Postagens: 533 Data de Entrada: 04/07/10 Postagens Recentes
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.