< Day Day Up > |
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> element contains the fully qualified class name for a customized javax.faces.application.NavigationHandler class: <navigation-handler> com.mycompany.jsf.MyNavigationHandler </navigation-handler> The <view-handler> element contains the fully qualified class name for a customized javax.faces.application.ViewHandler class: <view-handler> com.mycompany.jsf.MyViewHandler </view-handler> The <state-manager> element contains the fully qualified class name for a customized javax.faces.application.StateManager class <view-handler> com.mycompany.jsf.MyViewHandler </view-handler> The <property-resolver> element contains the fully qualified class name for a customized javax.faces.el.PropertyResolver class: <property-resolver> com.mycompany.jsf.MyPropertyResolver </property-resolver> The <variable-resolver> element contains the fully qualified class name for a customized javax.faces.el.VariableResolver class: <variable-resolver> com.mycompany.jsf.MyVariableResolver </variable-resolver> The <locale-config> element contains one optional <default-locale> element declaring the default locale for the application and any number of <supported-locale> elements declaring additional supported locales. A locale is specified as a language code, optionally followed by a country code, optionally followed by a variant, with the pieces separated by a dash or an underscore: <locale-config> <default-locale>en-US</default-locale> <supported-locale>fr</supported-locale> <supported-locale>sv</supported-locale> </locale-config> |
< Day Day Up > |