Forums de discussion

Icefaces non ajax push ipc

PortletFaces Community Member, modifié il y a 12 années.

Icefaces non ajax push ipc

Regular Member Publications: 199 Date d'inscription: 03/04/12 Publications récentes
Hi . I am trying to use ipc with bridge and icefaces without icepush.

QName qName = new QName("http://domain.com/events",
"ipc.Starter");

ExternalContext externalContext = FacesContext
.getCurrentInstance().getExternalContext();

ActionResponse actionResponse = (ActionResponse) externalContext
.getResponse(); // here is error

actionResponse.setEvent(qName, ipcTask);


i am getting an error



ClassCastException: Cannot cast com.liferay.portlet.ResourceResponseImpl (id=17050) to javax.portlet.ActionResponse

if i remove icefaces libs there is no problem

Thx
thumbnail
Neil Griffin, modifié il y a 12 années.

RE: Icefaces non ajax push ipc

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
If you add icefaces-2.0.2.jar as a dependency in WEB-INF/lib then ICEfaces will auto-ajaxify all the buttons on your page. This is a great convenience feature for 99.9% of the time. The use-case that you're trying to attempt is that 0.01% case. emoticon

In order to keep ICEfaces in your portlet and not have the auto-ajaxify feature happen, you need to add the following your view:

<icecore:config render="false"/>

For more information, see: http://wiki.icefaces.org/display/ICE/Core+Tags
PortletFaces Community Member, modifié il y a 12 années.

RE: Icefaces non ajax push ipc

Regular Member Publications: 199 Date d'inscription: 03/04/12 Publications récentes
emoticon i just want to use ice tree on personal private page. And my portlets are adding and removing by users. I have (addportlet) function from server side. So My destination portlet adding from server side and after initiliaze with ipc parameter i am trying to add portlet after ipc.This is the reason that use case

sorry my english emoticon

Thx for your answer