All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.faces.jsf-ri-config.xml Maven / Gradle / Ivy

Go to download

This is the master POM file for Sun's Implementation of the JSF 1.2 Specification.

There is a newer version: 1.2-20
Show newest version
<?xml version='1.0' encoding='UTF-8'?>

<!--
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
 Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
 
 The contents of this file are subject to the terms of either the GNU
 General Public License Version 2 only ("GPL") or the Common Development
 and Distribution License("CDDL") (collectively, the "License").  You
 may not use this file except in compliance with the License. You can obtain
 a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
 or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
 language governing permissions and limitations under the License.
 
 When distributing the software, include this License Header Notice in each
 file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
 Sun designates this particular file as subject to the "Classpath" exception
 as provided by Sun in the GPL Version 2 section of the License file that
 accompanied this code.  If applicable, add the following below the License
 Header, with the fields enclosed by brackets [] replaced by your own
 identifying information: "Portions Copyrighted [year]
 [name of copyright owner]"
 
 Contributor(s):
 
 If you wish your version of this file to be governed by only the CDDL or
 only the GPL Version 2, indicate your decision by adding "[Contributor]
 elects to include this software in this distribution under the [CDDL or GPL
 Version 2] license."  If you don't indicate a single choice of license, a
 recipient has the option to distribute your version of this file under
 either the CDDL, the GPL Version 2 or to extend the choice of license to
 its licensees as provided above.  However, if you add GPL Version 2 code
 and therefore, elected the GPL Version 2 license, then the option applies
 only if the new code is made subject to such option by the copyright
 holder.
-->

<!-- =========== RI CONFIGURATION FILE ===================================== -->

<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">


  <!-- Configure Object Factories -->

  <factory>
    <application-factory>
      com.sun.faces.application.ApplicationFactoryImpl
    </application-factory>
    <faces-context-factory>
      com.sun.faces.context.FacesContextFactoryImpl
    </faces-context-factory>
    <lifecycle-factory>
      com.sun.faces.lifecycle.LifecycleFactoryImpl
    </lifecycle-factory>
    <render-kit-factory>
      com.sun.faces.renderkit.RenderKitFactoryImpl
    </render-kit-factory>
  </factory>


  <!-- Configure Application Objects -->

  <application>
    <action-listener>
      com.sun.faces.application.ActionListenerImpl
    </action-listener>     
    <navigation-handler>
      com.sun.faces.application.NavigationHandlerImpl
    </navigation-handler>     
    <state-manager>
      com.sun.faces.application.StateManagerImpl
    </state-manager>
    <view-handler>
      com.sun.faces.application.ViewHandlerImpl
    </view-handler>
  </application>


  <!-- Configure Standard By-Id Converters -->

  <converter>
    <converter-id>javax.faces.BigDecimal</converter-id>
    <converter-class>javax.faces.convert.BigDecimalConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.BigInteger</converter-id>
    <converter-class>javax.faces.convert.BigIntegerConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Boolean</converter-id>
    <converter-class>javax.faces.convert.BooleanConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Byte</converter-id>
    <converter-class>javax.faces.convert.ByteConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Character</converter-id>
    <converter-class>javax.faces.convert.CharacterConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.DateTime</converter-id>
    <converter-class>javax.faces.convert.DateTimeConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Double</converter-id>
    <converter-class>javax.faces.convert.DoubleConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Float</converter-id>
    <converter-class>javax.faces.convert.FloatConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Integer</converter-id>
    <converter-class>javax.faces.convert.IntegerConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Long</converter-id>
    <converter-class>javax.faces.convert.LongConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Number</converter-id>
    <converter-class>javax.faces.convert.NumberConverter</converter-class>
  </converter>
  <converter>
    <converter-id>javax.faces.Short</converter-id>
    <converter-class>javax.faces.convert.ShortConverter</converter-class>
  </converter>

  <!-- Configure Standard By-Class Converters -->

  <converter>
    <converter-for-class>java.math.BigDecimal</converter-for-class>
    <converter-class>javax.faces.convert.BigDecimalConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.math.BigInteger</converter-for-class>
    <converter-class>javax.faces.convert.BigIntegerConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Boolean</converter-for-class>
    <converter-class>javax.faces.convert.BooleanConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Byte</converter-for-class>
    <converter-class>javax.faces.convert.ByteConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Character</converter-for-class>
    <converter-class>javax.faces.convert.CharacterConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Double</converter-for-class>
    <converter-class>javax.faces.convert.DoubleConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Float</converter-for-class>
    <converter-class>javax.faces.convert.FloatConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Integer</converter-for-class>
    <converter-class>javax.faces.convert.IntegerConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Long</converter-for-class>
    <converter-class>javax.faces.convert.LongConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Short</converter-for-class>
    <converter-class>javax.faces.convert.ShortConverter</converter-class>
  </converter>
  <converter>
    <converter-for-class>java.lang.Enum</converter-for-class>
    <converter-class>javax.faces.convert.EnumConverter</converter-class>
  </converter>
    
    <!-- Add our implementation specific PhaseListeners -->
    <lifecycle>
        <phase-listener>com.sun.faces.lifecycle.ELResolverInitPhaseListener</phase-listener>
        <phase-listener>com.sun.faces.renderkit.JsfJsResourcePhaseListener</phase-listener>
    </lifecycle>

  <!-- Configure Standard Validators -->

  <validator>
    <validator-id>javax.faces.DoubleRange</validator-id>
    <validator-class>
      javax.faces.validator.DoubleRangeValidator
  </validator-class>
  </validator>
  <validator>
    <validator-id>javax.faces.Length</validator-id>
    <validator-class>javax.faces.validator.LengthValidator</validator-class>
  </validator>
  <validator>
    <validator-id>javax.faces.LongRange</validator-id>
    <validator-class>javax.faces.validator.LongRangeValidator</validator-class>
  </validator>

  <!-- Add our implementation specific Validators -->
  <validator>
      <validator-id>com.sun.faces.ext.validator.RegexValidator</validator-id>
      <validator-class>com.sun.faces.ext.validator.RegexValidator</validator-class>
  </validator>
  <validator>
      <validator-id>com.sun.faces.ext.validator.CreditCardValidator</validator-id>
      <validator-class>com.sun.faces.ext.validator.CreditCardValidator</validator-class>
  </validator>

  <!-- Add our implementation specific Components  -->
    <component>
        <component-type>com.sun.faces.ext.focus</component-type>
        <component-class>com.sun.faces.ext.component.UIFocus</component-class>
    </component>
    
    <!-- Add our implementation specific Renderers -->
    <render-kit>
        <renderer>
            <component-family>FocusFamily</component-family>
            <renderer-type>com.sun.faces.ext.render.FocusHTMLRenderer</renderer-type>
            <renderer-class>com.sun.faces.ext.render.FocusHTMLRenderer</renderer-class>
        </renderer>
    </render-kit>
</faces-config>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy