Liferay IPC Addon Usage

I cannot get the example in the documentation for Liferay IPC Addon to compile

import com.vaadin.addon.ipcforliferay.LiferayIPC;


LiferayIPC liferayIPC_1 = new LiferayIPC();
myLayout.addComponent(liferayIPC_1); // Must be added to a layout to be active

Basically LiferayIPC extends com.vaadin.server.AbstractJavaScriptExtension

So, This is not a component so that can be added to any layout.

Please note. This is a compilation problem and not a runtime issue. If I ignore the step of adding LiferayIPC to a layout, I get null pointer exception at runtime.

Am I missing something or is there updated documentation?

Thanks

Looked at the example and source it refers to on the addon site. In there, this is the signature for LiferayIPC

public class LiferayIPC extends AbstractComponent implements Serializable {
}

which now seems to have changed to

public class LiferayIPC extends AbstractJavaScriptExtension {
}

So, now there is no real sample for us to work with.

Regards,

It seems you are looking at documentation for the Vaadin 6 version. See https://vaadin.com/directory#addon/vaadin-ipc-for-liferay:vaadin the second example, which is for Vaadin 7

Basically do liferayIPC.extend(myUI); instead of

myLayout.addComponent(liferayIPC_1);

Thanks . That worked!!

Hi… how did you achieve this? I am stuck with the same problem … pleae suggest