3 Replies Latest reply on Jan 17, 2011 5:51 AM by pieuvre

    [RichFaces 3.3.3 | JSF 2.0 | SPRING 2.0] annotation @FacesConverter not recognized

    pieuvre

      Hi everyone,

       

       

      I'm using a custom converter :

      [code]@FacesConverter(value="listShuttleConverter" , forClass = Appareil.class)

      public class ListShuttleConverter implements Converter{

       

       

                public static final String CONVERTER_ID = "listShuttleConverter";

       

                @Autowired

                private ServiceAdmin service;

       

                public ListShuttleConverter() {

                          super();

                }

       

                public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {

      ............

                }

       

       

                public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {

      ............

                }

       

       

      }

      [/code]

       

       

      And I get :

      [code]javax.faces.FacesException: Expression Error: Named Object: listShuttleConverter not found.[/code]

       

       

      Where did I do wrong ? 

       

      Thanks in advance

       

       

       

      PS: sure when I declare the converter in faces-config it works, but then I must declare my service.

      It's a little bit annoying to lose the interest of annotations