Bonjour à tous,
tout est dans le titre.
J'ai un custom converter :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| @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) {
............
}
} |
Et j'ai la belle erreur :
javax.faces.FacesException: Expression Error: Named Object: listShuttleConverter not found.
J'ai beau googler tant que je peux, pas la moindre trace de ce problème.
Où est-ce que j'ai faux ?
Merci d'avance
PS: bien sur quand je déclare le converter dans le faces-config ça marche, mais il faut alors que je déclare mon service.
C'est quand même embêtant de perdre tout l'intérêt des annotations ...
Partager