Matthias Wessendorf wrote:
> Hi,
>
> in Trinidad we have a "Configurator" framework (invoked by a filter).
> That does a setup for the ExternalContext.
>
> In that we do things like this:
>
> public static void init(Application app, ExternalContext extContext)
> {
> GenericConverter conv = new DomainConverter();
> GenericConverterFactory.getCurrentInstance(extContext).registerConverter(conv);
>
> app.addConverter(oracle.jbo.domain.Number.class,
>
> "org.apache.myfaces.trinidadinternal.convert.NumberConverter");
> .....
> }
>
> Now I am seeing this:
>
> com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:123)
> at
> com.sun.faces.application.ApplicationImpl.addPropertyEditorIfNecessary(ApplicationImpl.java:705)
> at
> com.sun.faces.application.ApplicationImpl.addConverter(ApplicationImpl.java:673)
> at
> blah.mw.SomeClass.init(SomeClass.java:37)
>
>
> Was there a "FacesContext.getCurrentInstance()" introduced in the
> WebConfiguration ?
>
FacesContext.getCurrentInstance() is called from there, but that's not a
recent change. Last time WebConfiguration.getInstance() was modified
was 7/26/07.
> Thanks,
> Matthias
>
>