<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE ohtml-config PUBLIC
       "-//Objective Html//DTD Objective Html Configuration 1.0//EN"
       "http://objectivehtml.sourceforge.net/dtds/ohtml-config_1_0.dtd">

<ohtml-config>

	<ohtml-result>ohtml.result</ohtml-result>

	<ohtml-forms>

		<ohtml-form>
			<name>CustomerForm</name>
			<type>mypackage.CustomerForm</type>

			<update-orders>

				<update-order>
					<name>m_txtPostCode</name>
					<order>10</order>
				</update-order>

				<update-order>
					<name>m_btnSave</name>
					<order>20</order>
				</update-order>

			</update-orders>

			<connections>

				<connection>
					<slot-obj>this</slot-obj>
					<slot>saveForm()</slot>
					<signal-obj>m_btnSave</signal-obj>
					<signal>clicked()</signal>
				</connection>

				<connection>
					<slot-obj>this</slot-obj>
					<slot>updatePostCodeFields(String)</slot>
					<signal-obj>m_txtPostCode</signal-obj>
					<signal>valueChanged(String,String)</signal>
					<set-error-handler>false</set-error-handler>
				</connection>

				<connection>
					<slot-obj>this</slot-obj>
					<slot>checkException(javax.servlet.http.HttpServletRequest)</slot>
					<signal-obj>this</signal-obj>
					<signal>afterUpdateData(javax.servlet.http.HttpServletRequest)</signal>
				</connection>

			</connections>

		</ohtml-form>

		<ohtml-form>
			<name>CustomerListForm</name>
			<type>mypackage.CustomerListForm</type>

			<connections>

				<connection>
					<slot-obj>this</slot-obj>
					<slot>checkException(javax.servlet.http.HttpServletRequest)</slot>
					<signal-obj>this</signal-obj>
					<signal>afterUpdateData(javax.servlet.http.HttpServletRequest)</signal>
				</connection>

			</connections>

		</ohtml-form>

	</ohtml-forms>

	<ohtml-actions>

		<ohtml-action>
			<path>/customerlistload</path>
			<create-forms>
				<create-form>
					<name>CustomerListForm</name>
					<session-ref>myapp.customerlist</session-ref>
					<condition>always</condition>
				</create-form>

			</create-forms>

			<invoke-methods>

				<invoke-method>
					<session-ref>myapp.customerlist</session-ref>
					<method-signature>getAllCustomers()</method-signature>
					<method-params>
					</method-params>
				</invoke-method>

				<invoke-method>
					<session-ref>myapp.customerlist</session-ref>
					<method-signature>checkException(javax.servlet.http.HttpServletRequest)</method-signature>
					<method-params>
						<request-obj />
					</method-params>
				</invoke-method>

			</invoke-methods>

			<default-forward>success</default-forward>
		</ohtml-action>

		<ohtml-action>
			<path>/customerload</path>

			<create-forms>
				<create-form>
					<name>CustomerForm</name>
					<session-ref>myapp.customer</session-ref>
					<condition>always</condition>

					<connections>
						<connection>
							<slot-session-ref>myapp.customer</slot-session-ref>
							<slot>populateForm(long)</slot>
							<signal-session-ref>myapp.customerlist</signal-session-ref>
							<signal>customerSelected(long)</signal>
						</connection>

					</connections>

				</create-form>

			</create-forms>

			<update-form>myapp.customerlist</update-form>

			<default-forward>success</default-forward>

		</ohtml-action>

		<ohtml-action>
			<path>/customersave</path>

			<update-form>myapp.customer</update-form>

		</ohtml-action>

	</ohtml-actions>

</ohtml-config>