dev@javaserverfaces.java.net

recent changes to ApplicationImpl or WebConfiguration ?

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Mon, 1 Dec 2008 23:24:27 +0100

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 ?

Thanks,
Matthias

-- 
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf