Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rahul Pande
Custom portlet on users public page
September 16, 2012 4:26 AM
Answer

Rahul Pande

Rank: Expert

Posts: 308

Join Date: July 6, 2010

Recent Posts

Hi,

I have developed a custom portlet which I want to put on all users public page.

I have used these properties to put my portlet whenever new user is getting created.

default.user.public.layout.column-1=73,userprofile_WAR_userprofile

The portlet is working fine if I put it manually on any page, but if I create new user and go to his public page them it is throwing error and the log is as follows.

 1Caused by: com.liferay.portal.NoSuchResourceActionException: userprofile_WAR_userprofile#ADD_TO_PAGE
 2        at com.liferay.portal.service.impl.ResourceActionLocalServiceImpl.getResourceAction(ResourceActionLocalServiceImpl.java:80)
 3        at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
 4        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 5        at java.lang.reflect.Method.invoke(Method.java:597)
 6        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
 7        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 8        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 9        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
10        at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionInterceptor.invoke(DynamicDataSourceTransactionInterceptor.java:44)
11        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
12        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
13        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
14        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)


I tried all the solutions given on forums but nothing worked.

Does anyone know the cause of this problem and what will be the solution. emoticon
Bart Simpson
RE: Custom portlet on users public page
September 17, 2012 1:56 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

Rahul,

I did a quick check, I am able to get the portlet correctly added to the public page of a newly created user. I am using Liferay 6.1.20
Please mention if you made changes to default liferay code by ext or something. Also try to check this on a default liferay instance. If you could reproduce please provde the liferay version you are using.
Rahul Pande
RE: Custom portlet on users public page
September 24, 2012 5:44 AM
Answer

Rahul Pande

Rank: Expert

Posts: 308

Join Date: July 6, 2010

Recent Posts

Hi Paul,

Thanks for the reply. I am able to put my custom portlet on users public page too. Actually problem was I was putting wrong portlet id in portlet-ext.properties file.

Thanks
Rahul Pande