Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Anonymous
RE: Very urgent
December 20, 2012 8:31 AM
Answer

Anonymous

can you give some more details to the code used for the hook?
hamza jemai
RE: Very urgent
December 21, 2012 5:27 AM
Answer

hamza jemai

Rank: Junior Member

Posts: 40

Join Date: December 4, 2012

Recent Posts

Custom jsp not deployed for a Liferay Hook plugin using maven :
I'm working on a Liferay Hook plugin built with Maven. My problem is after I put the folder custum_jsp sources under src/main/webapp and I put this line <custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir> in the src/main/webapp/WEB-INF/liferay-hook.xml, and add the following between <hook></hook> ( Overriding a JSP ).
The custom jsp is not applied after deployment. What am I doing wrong?
Bijan Vakili
RE: Very urgent
December 21, 2012 5:31 AM
Answer

Bijan Vakili

Rank: Regular Member

Posts: 141

Join Date: March 10, 2009

Recent Posts

Hi hamza jemai,
You can compare it with:
https://github.com/liferay/liferay-plugins/blob/master/hooks/social-bookmarks-hook/docroot/WEB-INF/liferay-hook.xml
See following URI for a list of hook plugins offered by Liferay:
https://github.com/liferay/liferay-plugins/tree/master/hooks
Otherwise, attach the hook WAR file so we can further help you.
hamza jemai
RE: Very urgent
December 21, 2012 6:41 AM
Answer

hamza jemai

Rank: Junior Member

Posts: 40

Join Date: December 4, 2012

Recent Posts

Thanks, but my probleme is when i do the liferay hook with Maven, this is my war file.Thanks emoticon
Attachments: bluemind-hook-0.0.1.war (129.1k)
Bijan Vakili
RE: Very urgent
December 21, 2012 1:43 PM
Answer

Bijan Vakili

Rank: Regular Member

Posts: 141

Join Date: March 10, 2009

Recent Posts

Hey hamza,
Change line 12 in "/WEB-INF/liferay-hook.xml" file from:

<custom-jsp-dir>/webapp/custom_jsps</custom-jsp-dir>
to:

<custom-jsp-dir>/custom_jsps</custom-jsp-dir>
hamza jemai
RE: Very urgent
December 24, 2012 7:01 AM
Answer

hamza jemai

Rank: Junior Member

Posts: 40

Join Date: December 4, 2012

Recent Posts

Hi again thanks Bijan Vakili, for your help it did finally work emoticon