掲示板

Error on submit without reloading

9年前 に Gaël Paruta によって更新されました。

Error on submit without reloading

New Member 投稿: 13 参加年月日: 14/05/05 最新の投稿
Hello,

I have two portlets.
The first one is a classic portlet witch contains a form with a submit button.
The second portlet uses the Liferay-bridge 3.2.4-GA5 with Primefaces 3.5 and retrieves the data thanks to IPC communication.

BUT, when I submit data several times with the button without reloading the page, I get an ERROR


17:43:23,463 ERROR [BridgePhaseBaseImpl:248] Found render parameter name=[trackingcommandcom.liferay.faces.bridge.bridgeRequestScopeId] value=[trackingcommand:::733FF17F64C1D4231B74E1B89FC59E02:::1400168575210] BUT bridgeRequestScope is NOT in the cache


How can I avoid this error ? Does it endanger the JSF workflow ?

I saw an issue about this : https://issues.liferay.com/browse/FACES-1445
But it should be corrected in the 3.2.4-GA5 version of the bridge
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: Error on submit without reloading

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
What type of IPC are you using? Events or Public Render Parameters?
9年前 に Gaël Paruta によって更新されました。

RE: Error on submit without reloading

New Member 投稿: 13 参加年月日: 14/05/05 最新の投稿
I am using Events with javax.portlet.faces.bridgeEventHandler in portlet XML


@Override
	public EventNavigationResult handleEvent(FacesContext fCtx, Event evt) {
		String myParam= "";
		EventNavigationResult eventNavigationResult = null;
		String eventQName = evt.getQName().toString();
		if (eventQName.equals("{http://com.azenn}tracking")) {
			myParam= (String)evt.getValue();
		}
                 getViewScopeJsfBean(fCtx).doStuff();
		return eventNavigationResult;


The parameter "myParam" is correctly transmitted. But if I do it several times without reloading my view I get the Error in the log.
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: Error on submit without reloading

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Can you expand on what you mean by:

several times without reloading


Thanks.
9年前 に Gaël Paruta によって更新されました。

RE: Error on submit without reloading

New Member 投稿: 13 参加年月日: 14/05/05 最新の投稿
I have a page with two portlets, let's call it "myPortletPage"
When I display myPortletPage I can see a form and a submit button.

I fill in the form and then click on the button >> No error

After that, two choices :
- Put another value in the form and click again on the submit button >> I get the Error mentioned.
- Go to another page (for example Home), do some CTRL+F5, go back to myPortletPage, fill in the form and then click on the submit button >> No error
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: Error on submit without reloading

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Thanks so much for reporting this issue. When you get a chance, could you please download the jsf2-ipc-events-customers-portlet and jsf2-ipc-events-bookings-portlet and see if it can be reproduced there as well?