Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2997

ContextNotActiveException thrown when trying to use JSF 2.3 EL keywords registered via CDI producers

    Details

      Description

      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)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-impl-6.0.0