dev@javaserverfaces.java.net

Re: recent changes to ApplicationImpl or WebConfiguration ?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 01 Dec 2008 15:04:55 -0800

Ryan Lubke wrote:
> 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.
Actually, ApplicationImpl does now call WebConfiguration to see if a
particular feature
is enabled or disabled (the one related to converter/PropertyEditory
support).

If it's an issue, please log a bug.
>
>> Thanks,
>> Matthias
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>