<?xml version="1.0" encoding="iso-8859-1" ?>
<engine-configurations>
	<configuration id = "demonstration_11:setup">
	
		<h2>Setup Application Component</h2>

		<p>
			<input type = "button" value = "Load Component" acid = "ac_load" />
			<input type = "button" value = "Destroy Component" acid = "ac_destroy" />
		</p>

<!--		
		<import-xml
			id = "import_applicationcomponents_xml"
			src = "/projects/engine/demonstrations/demonstration_11/application_components.xml"
			context_path = "/application-components/application-component[@id = 'communique']"
		/>
-->
	</configuration>


	<object-definitions>

		<definition id="import-xml">
			<implementation context-switch = "1" context-path = "ora:context_path_attr">
				<package pid="org.cote.js.xml" />
				<constructor name="getXml">
					<param value="ora:src_attr" />
					<param value="ora:integer_0" />
					<param value="ora:integer_0" />
					<param value="ora:id_attr" />
					<param value="ora:integer_1" />
				</constructor>
			</implementation>
		</definition>

		<definition id="application-component">
			<implementation>
				<package pid="org.cote.js.appcomp.ApplicationComponent" />
				<constructor name="newInstance">
					<param value="ora:integer_0" />
					<param value="ora:node_context" />
					<param value="ora:engine_id" />
					<param value="ora:integer_0" />
					<param value="ora:partid_attr" />
				</constructor>
			</implementation>
		</definition>

		<!--
			Even though a context path is specified for child nodes in application-components,
			the root node must be handled because the tree gets copied
		-->
		<definition id = "application-components">
			<implementation abstract = "1" />
		</definition>


		<!--
			Though component-fragment isn't used, it will match <p /> and <input /> elements,
			which provides the  hooks for binding the elements to XHTML Components.
		-->
		<definition id = "component-fragment">

			<matdef rid = "p" />
			<matdef rid = "input" />
			<implementation>
				<package pid = "org.cote.js.xhtml.XHTMLComponent" />
				<constructor name = "newInstance">
					<param value="ora:parent_element" />
					<param value="ora:node_context" />
					<param value="ora:rid_attr" />
					<param value="ora:engine_id" />
					<param value = "org.cote.js.xhtml.form.XHTMLFormComponent" />
				</constructor>
			</implementation>
		</definition>
		<definition id = "html-fragment">
			<implementation abstract = "1" />
		</definition>
	</object-definitions>
</engine-configurations>
