-<page xmlns:ft="http://apache.org/cocoon/forms/1.0#template" xmlns:fi="http://apache.org/cocoon/forms/1.0#instance" xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<h4 class="samplesGroup" xmlns:bu="http://apache.org/cocoon/browser-update/1.0">Union widget sample (with AJAX)</h4>
<title>Datasource chooser</title>
<script type="text/javascript"> //cocoon.ajax.BrowserUpdater.highlight = cocoon.ajax.Fader.fade; </script>
-<content>
-<fi:form-template ajax="true" action="19232f3d3857680340203559517e3e7f21516e77.continue" method="POST">
-<p>
Datasource name:
-<bu:replace id="name">
-<fi:field id="name" state="active" required="true">
<fi:datatype type="string"/>
</fi:field>
</bu:replace>
</p>
-<fieldset>
-<legend>
Type:
-<bu:replace id="sourcetype">
-<fi:field id="sourcetype" state="active" listening="true" required="false">
-<fi:selection-list>
-<fi:item value="">
<fi:label/>
</fi:item>
-<fi:item value="SQL">
<fi:label>SQL</fi:label>
</fi:item>
-<fi:item value="file">
<fi:label>file</fi:label>
</fi:item>
</fi:selection-list>
<fi:datatype type="string"/>
</fi:field>
</bu:replace>
</legend>
-<bu:replace id="datasource">
-<fi:union id="datasource">
<span>Please choose a datasource type.</span>
</fi:union>
</bu:replace>
</fieldset>
<br/>
-<bu:replace id="ok">
-<fi:action id="ok" state="active">
<fi:label>OK</fi:label>
</fi:action>
</bu:replace>
<br/>
<a href="./do-datasourceChooser.flow">Restart this sample</a>
-
<a href="./">Back to Forms samples</a>
</fi:form-template>
</content>
</page>