Both org.apache.myfaces.webapp.StartupServletContextListener.initMyFaces()
and org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces() check a
context attribute to see if MyFaces is initialized before invoking
org.apache.myfaces.config.FacesConfigurator.configure() but both actually
check and set a different attribute name.

StartupServletContextListener uses:

static final String FACES_INIT_DONE
            = StartupServletContextListener.class.getName() +
".FACES_INIT_DONE";


MyFacesGenericPortlet uses:

protected static final String FACES_INIT_DONE =
        MyFacesGenericPortlet.class.getName() + ".FACES_INIT_DONE";     


I find that if I override MyFacesGenericPortlet.initMyFaces() to do nothing,
everythings works and I avoid the duplicate managed bean warnings.

Is this is a configuration error on my part or an implementation oversight?


Thanks!
-Eric

--
View this message in context: 
http://www.nabble.com/MyFaces-1.1.4-is-initialized-twice-in-portlet.-t1794773.html#a4892250
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to