@Duncan: altered myfaces.jar

Well, that's exactly why you use <lifecycle-factory> instead of trying
to change LifecycleFactory.DEFAULT_LIFECYCLE in the source.

Implement your own subclass of LifecycleFactory (or
LifeCycleFacoryImpl) that does what you need, and you won't have to
modify myfaces.jar.


@David: "what would you do with a new lifecycle Factory?"

I don't remember what I was tryiing to do at the time :)  I think I
was looking for a hook to create a new BeanManager so I could add
init()/destroy() methods to managed-beans.  I don't think I was doing
anything in particular with LifeCycle (although I've considered it for
optional validation) -- it was just listed as a configuration option
out there along side
Application-factory/faces-context-factory/variable-resolver, etc,
which I was trying to get a hook into.


On 11/9/05, Duncan Krebs <[EMAIL PROTECTED]> wrote:
> You got me looking in the right direction.
>
> In the constructor of LifeCycleFacoryImpl() I see the following line of
> code.
>
> addLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE, new LifecycleImpl());
>
> To change the LifeCycle implementation I could easily change this line but
> then I get tied to having to use an altered myfaces.jar in my app which is
> what I'm trying to steer away from. I wonder if there is a way to specify
> the DEFAULT_LIFECYCLE implementation in either web.xml or
> faces-config.xml. - Duncan
>
>
>
> ----- Original Message -----
> From: "Mike Kienenberger" <[EMAIL PROTECTED]>
> To: "MyFaces Discussion" <[email protected]>
> Sent: Tuesday, November 08, 2005 1:45 PM
> Subject: Re: Changing the default LifeCycle
>
>
> I looked at this a week or two ago.   I think it was lifecycle-factory.
>
> On 11/9/05, Duncan Krebs <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I figured out how to change the viewHandler in my faces config using the
> > <view-hanlder>myviewhandler</view-handler> element, does
> > anyone know what element I'd use to set my own LifeCycle class? Thanks
> >
>
>

Reply via email to