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

<application>

Synopsis

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

Syntax

<application>
  [<action-listener>actionListener</action-listener>]
  [<default-render-kit>defaultRenderKit</default-render-kit>]
  [<message-bundle>messageBundle</message-bundle>]
  [<navigation-handler>navigationHandler</navigation-handler>]
  [<view-handler>viewHandler</view-handler>]
  [<state-manager>stateManager</state-manager>]
  [<property-resolver>propertyHandler</property-resolver>]
  [<variable-resolver>variableResolver</variable-resolver>]
  [<locale-config>
     [<default-locale>defaultLocale</default-locale>]
     [<supported-locale>supportedLocale</supported-locale>]*
   </locale-config>]
</application>

The <action-listener> element contains the fully qualified class name for a class implementing the javax.faces.event.ActionListener interface, used as the default ActionListener for the application:

<action-listener>
  com.mycompany.jsf.MyActionListener
</action-listener>

The <default-render-kit> element contains identifier for a default render kit to use instead of the JSF HTML basic render kit:

<default-render-kit>myFancyHTMLKit</default-render-kit>

The <message-bundle> element contains base name for the message resource bundle containing custom message texts for the JSF standard messages (see the java.util.ResourceBundle JavaDocs and Chapter 7 for details):

<message-bundle>myMessages</message-bundle>

The <navigation-handler> ...

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