RE: Liferay 6.x : Seam 3 Modules !

Manoj Pardeshi, modified 13 Years ago. New Member Posts: 7 Join Date: 4/26/12 Recent Posts
Is it possible to use Seam 3 in JSF 2 portlet ? If yes please tell me how to use Seam3 in Liferay portal?

Thanks,
Manoj
thumbnail
Neil Griffin, modified 13 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
Before considering using Seam 3, we need to make sure that CDI (Weld) is compatible with portlet environments. Recently WELD-510 was fixed so I spent some time today testing JSF2 + CDI (Weld 1.1.7) in Liferay 6.1.0. Unfortunately it didn't work in Tomcat 7 or GlassFish 3.1.1. I was only able to get it working in JBoss AS 7.1.1. Since Liferay Portal currently only comes bundled JBoss AS 7.0.2, I had to install the Liferay Portal WAR into JBoss AS 7.1.1 manually. Although the portlet worked with @Inject on the initial render, I wasn't able to navigate from one Facelet view to another without getting an exception thrown by Weld.

Also, if you want to use JSF2 @ViewScoped in combination with Weld, you would need to add the Seam Faces module. Unfortunately SEAMFACES-222 is not yet fixed (as of the time I'm writing this) and so Seam Faces isn't yet working in portlet environments.

So until CDI (Weld) and Seam Faces module are working, the full blown Seam 3 framework can't be used either. emoticon
thumbnail
Neil Griffin, modified 13 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
For more information on compatibility with CDI/Weld/SeamFaces, please refer to FACES-1211.
Manoj Pardeshi, modified 13 Years ago. New Member Posts: 7 Join Date: 4/26/12 Recent Posts
Thanks Neil.
Prathamesh Gaddam, modified 13 Years ago. New Member Posts: 7 Join Date: 11/7/11 Recent Posts
Hi Neil,

Please update !

Further, which all Seam 3 modules are supported in Liferay 6.x. Towards, Seam 3: Module's support with Liferay 6.X and Seam 3: Forge.

Regret any inconvenience caused because of cross-posting.

Regards
thumbnail
Neil Griffin, modified 13 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
Hi Prathamesh,

I updated FACES-1211 with the latest news. Unfortunately the issue is blocked right now -- please "watch" the issue for future updates.

Kind Regards,

Neil