JBoss Community

Design of AS7 multi-JSF feature

new comment by Stan Silvert View all comments on this document

These two related Jiras are about problems of integrating CDI with an installed JSF implementation that is not the default. 

https://issues.jboss.org/browse/AS7-1628

https://issues.jboss.org/browse/AS7-6129

 

There is a workaround, however.  If I remember correctly, the workaround is to change the JSF impl that Weld is looking at.  Go into modules/org/jboss/as/weld/main/modules.xml and add your slot to the JSF API.

<module name="javax.faces.api" slot="myfaces-2.1.10"/>

 

Note that with this change you can only use Weld/CDI with one JSF impl at a time.  This limitation is slated to be fixed in AS7.2.x.