HamzaNTFS
HamzaNTFS

Reputation: 103

com.liferay.portlet.ResourceResponseImpl cannot be cast to javax.portlet.ActionResponse

I'am using Liferay 6.1.1 and Primefaces 3.5 with Inter Portlet Communication and i have this error. This is my code

public void onRowSelect(SelectEvent event) {
Projects project = (Projects) event.getObject();
QName qName = new QName("http://liferay.com/events", "ipc.projectSelected");
ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
ActionResponse actionResponse = (ActionResponse) externalContext.getResponse();
Serializable eventPayload = project;
eventPayload = new EventPayloadWrapper(project, true);
actionResponse.setEvent(qName, eventPayload);
}

an in My View.xhhtm i have a dataTable :

<p:ajax event="rowSelect" listener="#{MyBean.onRowSelect}" />

Upvotes: 0

Views: 844

Answers (1)

Neil Griffin
Neil Griffin

Reputation: 822

This question may have been answered in the Liferay Forums.

Upvotes: 1

Related Questions