We use FacesConverters and annotate them with CODI's @Advanced annotation in order to be able to use CDI injection. This works with normal requests. But on AJAX requests the injected CDI beans are null. And the FacesContext parameter in
public Object getAsObject(FacesContext context, UIComponent component, String value)
is org.apache.myfaces.context.servlet.FacesContextImpl instead of org.apache.myfaces.extensions.cdi.jsf2.impl.listener.request.CodiFacesContextWrapper as it is on normal requests when injection works.
Does anyone know how to make injection work in FacesConverters with AJAX requests? Thanks.