O'Reilly logo

JavaServer Faces by Hans Bergsten

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<factory>

Synopsis

The <factory> element declares replacements for the factory classes for the application. The top-level nested elements can be declared in any order.

Syntax

<factory>
  [<application-factory>applicationFactory</application-factory>]
  [<faces-context-factory>facesContextFactory</faces-context-factory>]
  [<lifecycle-factory>lifecycleFactory</lifecycle-factory>]
  [<render-kit-factory>renderKitFactory</render-kit-factory>]
</factory>

The <application-factory> element contains the fully qualified class name for a customized javax.faces.application.ApplicationFactory class:

<application-factory>
  com.mycompany.jsf.MyApplicationFactory
</application-factory>

The <faces-context-factory> element contains the fully qualified class name for a customized javax.faces.context.FacesContextFactory class:

<faces-context-factory>
  com.mycompany.jsf.MyFacesContextFactory
</faces-context-factory>

The <lifecycle-factory> element contains the fully qualified class name for a customized javax.faces.lifecycle.LifecycleFactory class:

<lifecycle-factory>
  com.mycompany.jsf.MyLifecycleFactory
</lifecycle-factory>

The <render-kit-factory> element contains the fully qualified class name for a customized javax.faces.render.RenderKitFactory class:

<render-kit-factory>
  com.mycompany.jsf.MyRenderKitFactory
</render-kit-factory>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required