-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: bridge-impl-6.0.0
-
Fix Version/s: bridge-impl-6.0.0
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
This issue was first recorded in the Mojarra issue tracker as JAVASERVERFACES-4208 but was closed as "Won't Fix" since it is a problem that can be solved in the bridge using alternate CDI producers.
Steps to Reproduce:
1. Replace the <head/> component tag in the portletViewMode.xhtml view of the jsf-cdi-applicant-portlet demo with the following:
<h:head> <script src="#{resource['javax.faces:jsf.js']}"></script> </h:head>
2. Add the following Java class to the demo portlet in order to enable Mojarra's dynamic CDI producers to be registered at deploy time:
package com.liferay.faces.demos.bean; import javax.faces.annotation.FacesConfig; @FacesConfig( version = JSF_2_3 ) public class ConfigurationBean { }
3. Deploy the portlet and add it to a portal page
4. View the portal page
Expected Results
The portlet renders normally
Actual Results
The following error appears in the browser:
org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:687)