Message Boards

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Categories & tags are not saved
Answer
5/24/13 7:55 AM
Hi,

Categories & tags are not saved.

In fact, they are not in the ServiceContext object. (in method XXPortlet.addXXX(ActionRequest actionRequest, ActionResponse response) )

How can i fix that ?

RE: Categories & tags are not saved
Answer
5/28/13 8:18 AM as a reply to rémi.
Also had problems with upload : I had to replace many ActionRequest by UploadPortletRequest, and using method
 addXXX(ActionRequest actionRequest, ActionResponse response) throws Exception {
        UploadPortletRequest request = PortalUtil.getUploadPortletRequest(actionRequest);

actionRequest is used only in PortalUtil.copyRequestParameters(actionRequest, response);
Add to get rid of apache's FileItem, and using Liferay's.
(I use Liferay 6.1EE GA2)

RE: Categories & tags are not saved
Answer
5/29/13 7:37 PM as a reply to rémi.
How Remy,

Can you share you XMLPortletFactory and Liferay version, and XML definition file?

It would be great if you can provide a sample portlet too.

Did you uploaded a file at the same time?