Questions tagged [liferay-hook]

47 questions
1
vote
0 answers

sendRedirect in custom action class

I am overriding one of the actions of the calendar portlet . I want to do some functionality then redirect to another JSP after that. I tried using the sendRedirect function as follows: 1. String redirect = ParamUtil.getString(actionRequest ,…
girlintech
  • 11
  • 6
1
vote
1 answer

liferay process files which are uploaded

I'm new to Liferay, and I need to create hook which will intercept file and process it before save to the filesystem. Is it possible to do with hooks or I need to make ext?
pimezone
  • 113
  • 1
  • 1
  • 5
1
vote
1 answer

Liferay 6.2 + Spring @Autowired not working in a hook

I am using Spring 4.0.6 with Liferay 6.2. Spring isn't able to inject autowired components in to the hook, object comes as null. I have also tried with spring version 3.1 that comes with liferay. Same code works in portlets but not in hooks. private…
Chirdeep Tomar
  • 4,281
  • 8
  • 37
  • 66
1
vote
2 answers

Get keyword of the search with struts Liferay

I want get the keywords of the search with the portlet of Search. I saw that in the url appear: "struts_action=/search/seach" then I looked for in strut-config.xml and find: action path="/search/search" forward="portlet.search.search" I am…
sandra
  • 179
  • 7
  • 15
1
vote
1 answer

How to know profile changes in Liferay?

I need to know when the users modify some attribute in their profile. I made a hook, but some fields like the birthday is the same value in onAfterUpdate and onBeforeUpdate function. I don't know how I can do this for knowing when the user fields…
sandra
  • 179
  • 7
  • 15
1
vote
2 answers

How to move the Liferay hooks into a directory inside webapps?

I have created many hooks for Liferay with Eclipse Java EE IDE for Web Developers. The problem is that when I create a hook is deployed inside the webapps folder. My webapps folder tree: There are many hooks. How can how can I move them into a new…
Mustapha Aoussar
  • 5,833
  • 15
  • 62
  • 107
0
votes
1 answer

Role based Login in liferay?

How can I implement Role based Login in Liferay. I have already created a Login Hook which redirects users to their site at the time of login. Ex: User 1 will got to site 1. User 2 will got to site 1. User 3 will got to site 2. User 4 will got to…
SnIpEr ReLoAdEd
  • 72
  • 1
  • 10
0
votes
0 answers

Liferay 7 Login Fragment error

I have created login fragment for login.jsp which is working perfectly fine. Now I need to add some code to fetch some data from custom tables so I have added XYZLocalServiceUtil call using scriptlet. Now service call is working but problem is when…
pratik
  • 93
  • 1
  • 6
0
votes
1 answer

Unable to import service wrapper module in other module in Liferay-7 GA5

I am new in life-ray.I created a service wrapper UserLocalServiceWrapper name test wrapper .Now i Tried to use test wrapper in different module.But it's giving dependency issue.And the strange thing is i can not able to see the errors.I have…
Sachin Singh
  • 201
  • 4
  • 11
0
votes
1 answer

Overwrite my profile portlet in liferay 7.0 ga3

I'm trying to overwrite my profile portlet in Liferay, I read that I can do it with hooks, but I can't find the original .jsp, of this portlet. and in the documentation:…
A. Serrano
  • 19
  • 5
0
votes
1 answer

liferay-7 dynamic data lists hook

Hi I would like to create hook on Dynamic data lists in liferay 7. Unfortunately I am not able to achieve DDLRecordServiceWrapper, according to source code it should be accessible under import…
user2925656
  • 383
  • 4
  • 17
0
votes
2 answers

Add Custom Portlet in my Header Liferay 6.2

I want to add a custom porlet in my header of my liferay, but I don't know how to do it. I know I can add just content in portal....vm. But for a entire portlet.. Is it possible ? Thanks in advance.
DyM
  • 628
  • 1
  • 6
  • 16
0
votes
1 answer

Liferay redirect to user's entered page post login

I have created a custom landing page hook in Liferay6.2. Suppose user enters abc.com/xyz. Then after login he should not be redirected to my custom landing page. Instead he should be redirected to xyz post login. My landing page should be selected…
Dhruv Pandey
  • 482
  • 6
  • 18
0
votes
2 answers

Get portlet type in Liferay 6.2 Hook

Inside Liferay 6.2 hook I want to know the portlet type(Asset Publisher/Web Content Display). Portlet name wont help me because User may have used custom title and in that case "Asset Publisher"/"Web Content Display" wont be accessible to me. Exact…
Dhruv Pandey
  • 482
  • 6
  • 18
0
votes
2 answers

Ajax Pagination in Liferay Search Container

I am trying to Ajax Call on Search Container Pagination. As there are more than one portlet on same page I don't want to each portlet to forcefully call render every time when I do Pagination. There could be 2 possible solutions but I am facing some…
Harsh Kanakhara
  • 909
  • 4
  • 13
  • 38