On 4/7/06, John Slave <[EMAIL PROTECTED]> wrote:
Yeah i know. But how can do it? I want to replicate the behaviour with
my custom components...how can it automatically register phase listener?

If you place a faces-config.xml file in the "META-INF" directory of a jar file that contains your custom components, it will be automatically processed as the application starts up.  You can register your own phase listener there (as well as your components and renderers) -- or anything else that can be configured in such a file.

Registering a phase listener would mean putting something like this in META-INF/faces-config.xml:

    <lifecycle>
        <phase-listener>com.mycompany.mypacakge.MyPhaseListener</phase-listener>
    </lifecycle>

Thank you
John Slave


Craig

Reply via email to