<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">


<faces-config>
	<factory>
		<render-kit-factory>org.ajax4jsf.renderkit.ChameleonRenderKitFactory</render-kit-factory>
		<lifecycle-factory>org.ajax4jsf.application.DebugLifecycleFactory</lifecycle-factory>
	</factory>
	<application>
	<!-- 
		<variable-resolver>org.richfaces.skin.SkinVariableResolver</variable-resolver>
		<property-resolver>org.richfaces.skin.SkinPropertyResolver</property-resolver>
	-->
		<view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>
		<state-manager>org.ajax4jsf.application.AjaxStateManager</state-manager>
	</application>
  <lifecycle>
  	<phase-listener>org.ajax4jsf.event.AjaxPhaseListener</phase-listener>
  	<phase-listener>org.ajax4jsf.event.InitPhaseListener</phase-listener>
  </lifecycle>
    <managed-bean>
       <managed-bean-name>a4j</managed-bean-name>
       <managed-bean-class>org.richfaces.VersionBean</managed-bean-class>
       <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <managed-bean>
       <managed-bean-name>a4jSkin</managed-bean-name>
       <managed-bean-class>org.richfaces.skin.SkinBean</managed-bean-class>
       <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <managed-bean>
       <managed-bean-name>richSkin</managed-bean-name>
       <managed-bean-class>org.richfaces.skin.SkinBean</managed-bean-class>
       <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <managed-bean>
    	<managed-bean-name>ajaxContext</managed-bean-name>
    	<managed-bean-class>org.ajax4jsf.context.AjaxContextImpl</managed-bean-class>
    	<managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <component>

        <component-type>javax.faces.ViewRoot</component-type>
        <component-class>org.ajax4jsf.component.AjaxViewRoot</component-class>

        <component-extension>
            <component-family>javax.faces.ViewRoot</component-family>
        </component-extension>

    </component>

  <render-kit>

    <renderer>
      <description>
        override the viewroot
      </description>
      <component-family>javax.faces.ViewRoot</component-family>
      <renderer-type>javax.faces.ViewRoot</renderer-type>
      <renderer-class>org.ajax4jsf.renderkit.AjaxViewRootRenderer</renderer-class>
    </renderer>
      <!-- 
          <renderer>
          <component-family>javax.faces.Form</component-family>
          <renderer-type>javax.faces.Form</renderer-type>
          <renderer-class>org.ajax4jsf.renderkit.html.AjaxFormRenderer</renderer-class>
      </renderer>
      <renderer>
          <component-family>javax.faces.Command</component-family>
          <renderer-type>javax.faces.Link</renderer-type>
          <renderer-class>org.ajax4jsf.renderkit.html.HtmlCommandLinkRenderer</renderer-class>
      </renderer>
     -->
   </render-kit>
</faces-config>
