5 Replies Latest reply: Apr 27, 2010 5:05 AM by Ilya Shaikovsky RSS

    RichFaces 3.3.3 and JSF 2.0 & annotations scanning

    Kto ToTaki Newbie



      During initialization JSF 2 ConfigManager checks for faces-config presence and looks if it's version is equals to 2.0

      My faces-config.xml is placed as usual at WEB-INF and namespace is upgradet to 2.0 and looks like this :

      <?xml version="1.0"?>
          xmlns="http://java.sun.com/xml/ns/javaee"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" version="2.0">



         <!-- declaration under is necessary but without it the code does not work : should be replaced by  @ManagedBean(name="eksempelBean") -->



      The bean is using annotations, but ConfigManager to JSF cannot find this.

      public class EksempelBean extends BaseBean {



      Question : how to get rid of managed-bean declarations in the faces-config ?