Forums de discussion

Requests Portlet

Christopher Eggert, modifié il y a 10 années.

Requests Portlet

New Member Publications: 6 Date d'inscription: 08/04/13 Publications récentes
Hi there,
I know that this issue was discussed quite a few times in this community, but I wasn't able to finde any solution emoticon

I'm facing two problems with the requests portlet in Liferay 6.0.6.

First, the requests portlet shows no border when there is no friend request. It would be nice if somebody has a hint for this issue. Maybe I can fix this with a css hack or something. All i could find on the internet was this ticket wich offerd me no solution:
http://issues.liferay.com/browse/LPS-1743?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

Second, and this is the real problem. When using the IE 8 or 9 and click on confirm for a frend request the portlet throws an exception and shows a warning message.
Same issue was posted in this thread about 2 years ago but again i couldn't find any solution for this. I guess it has something to do with the URL and IE which can't handle to many characters emoticon

This is the warning message and exception which is thrown in catalina.out:

Request is temporarily unavailable"

WARN [PortletRequestProcessor:160] This URL can only be invoked using POST: /de/user/bruno/social?p_auth=7jCh1rsP&p_p_id=121&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=3&p_p_col_count=5&_121_struts_action=%2Frequests%2Fupdate_request&_121_redirect=http%3A%2F%2Flocalhost%3A8080%2Fde%2Fuser%2Fbruno%2Fsocial%3Fp_p_id%3D121%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_pos%3D3%26p_p_col_count%3D5&_121_requestId=4&_121_status=1
15:07:49,970 ERROR [jsp:154] com.liferay.portal.security.auth.PrincipalException: /de/user/bruno/social?p_auth=7jCh1rsP&p_p_id=121&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=3&p_p_col_count=5&_121_struts_action=%2Frequests%2Fupdate_request&_121_redirect=http%3A%2F%2Flocalhost%3A8080%2Fde%2Fuser%2Fbruno%2Fsocial%3Fp_p_id%3D121%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_pos%3D3%26p_p_col_count%3D5&_121_requestId=4&_121_status=1
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:165)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:186)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652)
at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:687)
at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:360)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:784)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:582)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:232)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:153)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)



l8er,
and big thanks,
Chris
thumbnail
Sandeep Nair, modifié il y a 10 années.

RE: Requests Portlet

Liferay Legend Publications: 1744 Date d'inscription: 06/11/08 Publications récentes
Hi,

For problem 1 create a JSP hook for \html\portlet\requests\view.jsp and comment out the following line. It's upto you to give some custom message in that block.

<%
		renderRequest.setAttribute(WebKeys.PORTLET_CONFIGURATOR_VISIBILITY, Boolean.TRUE);
		%>


Issue 2 can be a bug which is resolved in latest version. http://issues.liferay.com/browse/LPS-18312

Regards,
Sandeep
Christopher Eggert, modifié il y a 10 années.

RE: Requests Portlet

New Member Publications: 6 Date d'inscription: 08/04/13 Publications récentes
Hi there,
it seems we fount a solution for the first problem the exception gave us a hint, that the request should be a POST request instead of a GET request. So wie changed the Link form ui-icon to submit buttons in a form tag which has the POST method attribute.

This seems to work for us. emoticon

So now we are still facing the first problem since there is no renderRequest in our view JSP emoticon

greetings,
Christopher
thumbnail
Sandeep Nair, modifié il y a 10 années.

RE: Requests Portlet

Liferay Legend Publications: 1744 Date d'inscription: 06/11/08 Publications récentes
Hi,
Can you update the view.jsp and replace the c:if block with "choose when otherwise" block. The logic inside current if will be wrapped in when block and in the otherwise block you can add a custom message saying No New Friend Request or something.

Regards,
Sandeep