<?xml version="1.0" encoding="${velocityEncodingOutput}"?>
<!DOCTYPE page-specification
      PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
      "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<!-- generated by Spindle, http://spindle.sourceforge.net -->

<page-specification class="${entity.getPackage('tapestry.page')}.${tapestryPageDetailPrefix}${entity.getName()}${tapestryPageDetailSuffix}">
    
#set( $servicePackage = ${entity.getPackage('service')} )
#set( $serviceName = "${servicePrefix}${entity.getName()}${serviceSuffix}" )
	<property-specification name="${stringUtils.uncapitalize($serviceName)}" 
			type="${servicePackage}.${serviceName}">
		global.s2container.getComponent(@${servicePackage}.${serviceName}@class)
	</property-specification>

	<bean name="delegate" class="org.apache.tapestry.valid.ValidationDelegate"/>

	<component id="form" type="Form">
        <binding name="delegate" expression="beans.delegate"/>
    </component>

#foreach($ety in ${entity.getSuperClasses()} )
    <component id="detail${ety.getName()}" type="${tapestryComponentDetailPrefix}${ety.getName()}${tapestryComponentDetailSuffix}">
	    <binding name="target" expression="target" />
	</component>
#end

</page-specification>