掲示板

JSF IPC using Public Parameters

7年前 に Jatinderveer Singh によって更新されました。

JSF IPC using Public Parameters

New Member 投稿: 21 参加年月日: 17/02/24 最新の投稿
I am using IPC in two JSF portlets to communicate one java class. I seem to be missing something and I am getting the following error ::
13:54:39,583 ERROR [IPCPhaseListener:301] null
java.lang.IllegalStateException
	at com.liferay.portlet.StateAwareResponseImpl.setRenderParameter(StateAwareResponseImpl.java:173)
	at com.liferay.faces.bridge.event.IPCPhaseListener.processOutgoingPublicRenderParameters(IPCPhaseListener.java:279)
	at com.liferay.faces.bridge.event.IPCPhaseListener.afterPhase(IPCPhaseListener.java:83)
	at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at com.liferay.faces.bridge.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:81)
	at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:81)
	at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:152)



The changes i have done are the following ::
Portlet.xml ::
<portlet>
		<portlet-name>Sender</portlet-name>
		<supported-public-render-parameter>communicationBean</supported-public-render-parameter>
	</portlet>
<portlet-name>Reciever</portlet-name>
		<supported-public-render-parameter>communicationBean</supported-public-render-parameter>
	
<public-render-parameter>
    <identifier>communicationBean</identifier>
    <qname xmlns:x="http://liferay.com/pub-render-params">x:communicationBean</qname>
</public-render-parameter>



Faces-config.xml ::


<application>
		<application-extension>
			<bridge:public-parameter-mappings>
				<bridge:public-parameter-mapping>
					<parameter>Sender:communicationBean</parameter>
					<model-el>#{senderManagedBean.communicationBean}</model-el>
				</bridge:public-parameter-mapping>
				<bridge:public-parameter-mapping>
					<parameter>Reciever:communicationBean</parameter>
					<model-el>#{recieverManagedBean.communicationBean}</model-el>
				</bridge:public-parameter-mapping>
			</bridge:public-parameter-mappings>
		</application-extension>
	</application>






Is there something that I am missing in this?
I saw this exactly from the demo given in website and it looks quite simple and should work? is there any more configuration required? or is it because i am passing a class that it is failing?
thumbnail
7年前 に Neil Griffin によって更新されました。

RE: JSF IPC using Public Parameters

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
This question is being answered in a different message thread with the same title.