Foros de discusión

Error on submit without reloading

Gaël Paruta, modificado hace 9 años.

Error on submit without reloading

New Member Mensajes: 13 Fecha de incorporación: 5/05/14 Mensajes recientes
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
Neil Griffin, modificado hace 9 años.

RE: Error on submit without reloading

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
What type of IPC are you using? Events or Public Render Parameters?
Gaël Paruta, modificado hace 9 años.

RE: Error on submit without reloading

New Member Mensajes: 13 Fecha de incorporación: 5/05/14 Mensajes recientes
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
Neil Griffin, modificado hace 9 años.

RE: Error on submit without reloading

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Can you expand on what you mean by:

several times without reloading


Thanks.
Gaël Paruta, modificado hace 9 años.

RE: Error on submit without reloading

New Member Mensajes: 13 Fecha de incorporación: 5/05/14 Mensajes recientes
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
Neil Griffin, modificado hace 9 años.

RE: Error on submit without reloading

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
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?