Details

      Description

      As part of this task, it is necessary to add the following servlet-mapping to demo portlet WEB-INF/web.xml descriptors because MyFaces will not initialize unless a servlet-mapping to the Faces Servlet is present:

      <servlet-mapping>
      	<servlet-name>Faces Servlet</servlet-name>
      	<url-pattern>*.xhtml</url-pattern>
      </servlet-mapping>
      

      Additionally, the following dependencies must be removed from the pom.xml files for the demo portlets, or else both Mojarra and MyFaces JARs will show up in portlet WAR deployments:

      <dependency>
      	<groupId>com.sun.faces</groupId>
      	<artifactId>jsf-api</artifactId>
      </dependency>
      <dependency>
      	<groupId>com.sun.faces</groupId>
      	<artifactId>jsf-impl</artifactId>
      </dependency>
      

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: