Icefaces IPC  XML
Forum Index -> Portals & Portlets
Author Message

Joined: 21/Jun/2011 04:09:01
Messages: 11

Hi I am trying to achieve JSR286 IPC between Icefaces Portlet and Icefaces Portlets. I am getting following two issues;

Issue 1) When the Icefaces Portlet is the Event Publisher Portlet, i am getting following exception;
com.liferay.portlet.ResourceResponseImpl cannot be cast to javax.portlet.ActionResponse

javax.portlet.ActionResponse aResponse = (javax.portlet.ActionResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();

which is the part of following method inside my EventPublisherBean java class;

public void publishIPCEvent(){
_log.info("inside publishIPCEvent");
String nameValue = this.name;
_log.info("Name Entered : "+nameValue);
QName qname = new QName("http:xyz.com/ipcevent","IPCEvent");
ActionResponse aResponse = null;
try {
aResponse = (ActionResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
} catch (Exception e) {
// TODO Auto-generated catch block
_log.info("created aResponse object");
//QName qname = new QName("http:cse-servelec.com/ipcevent","IPCEvent");
_log.info("publishing event");
try {
aResponse.setEvent(qname, nameValue);
} catch (Exception e) {
// TODO Auto-generated catch block

I have used the example available at http://www.portletfaces.org/projects/portletfaces-bridge/examples/jsf2-ipc-events

as the base to my experiment.

I have tried various solutions provided by different forums, but none of them are working, when Icefaces portlet is publishing Event.

Issue 2: When I used Liferay Portlet as the EventPublisher and and Icefaces Portlet as event consumer, then everything works fine.
What if I want to achieve Drag and drop between one Liferay Portlet and
Icefaces Portlet? In out scenario, the third party portlet communication should be possible. I struggle to share the Session and Application attributes between Liferay and Icefaces Portlets.

How can I achieve this?

Any help is appreciated.



Joined: 20/Oct/2010 04:26:27
Messages: 13

i have the same issue:
com.liferay.portlet.ResourceResponseImpl cannot be cast to javax.portlet.ActionResponse

have you solved this issue?

I need the ActionResponse instance to publish an event....

Thanks for any help.
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team