Fórumok

Convo Scope

thumbnail
David Matrai, módosítva 11 év-val korábban

Convo Scope

New Member Bejegyzések: 12 Csatlakozás dátuma: 2012.02.02. Legújabb bejegyzések
Can Conversational Scoped beans be used in a liferay portal ??
thumbnail
Neil Griffin, módosítva 11 év-val korábban

RE: Convo Scope (Válasz)

Liferay Legend Bejegyzések: 2655 Csatlakozás dátuma: 2005.07.27. Legújabb bejegyzések
At this time CDI (Weld) is not yet working with portlets. See FACES-1211 for more info. You might want to try MyFaces Orchestra and see if that works.
Satya Ranjan, módosítva 11 év-val korábban

RE: Convo Scope

New Member Bejegyzés: 1 Csatlakozás dátuma: 2011.07.07. Legújabb bejegyzések
Hi Neil,

I am trying to convert a JSF 2.0 application (deployed on JBoss 5) to portlet in Liferay. This application is using MyFaces orchestra for conversational scope. The first page of the application is working fine. But while clicking on any h:commandLink, it fails by throwing NullPointerException from bridge. I am using portlet-faces-bridge v2.0 .

Caused by: java.lang.NullPointerException
at org.portletfaces.bridge.BridgeImpl.indicateNamespacingToConsumers(BridgeImpl.java:594)
at org.portletfaces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:151)

Could you please let me know if the portlet faces bridge works with orchestra ?

Thanks for your help.

- Satya
thumbnail
Neil Griffin, módosítva 11 év-val korábban

RE: Convo Scope

Liferay Legend Bejegyzések: 2655 Csatlakozás dátuma: 2005.07.27. Legújabb bejegyzések
When you get a chance, I recommend upgrading to Liferay Faces Bridge because PortletFaces Bridge is no longer supported. Having said that, I've never tried Orchestra in a portlet before. It looks like Orchestra has a PortletExternalContextWrapper class which indicates that the MyFaces team has taken portlets into consideration, so there *might* be some reason to hope. Please let me know if you see the same problem after upgrading.