<commit_before><%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>

<h2>A AJAX based Double Select Box</h2>

<p class="text">
	Two select boxes with remote json content. The second select box content is dependent from the first one.
</p>
<strong>Reload example with two select boxes.</strong>
<s:form id="formSelectReload" action="echo" theme="simple" cssClass="yform">
	<fieldset>
		<legend>AJAX Form</legend>
		<div class="type-text">
			<label for="language">Language: </label>
			<s:url var="remoteurl" action="jsonsample"/>
			<sj:select
					href="%{remoteurl}"
					id="language"
					onChangeTopics="reloadsecondlist"
					name="language"
					list="languageObjList"
					listKey="myKey"
					listValue="myValue"
					emptyOption="true"
					headerKey="-1"
					headerValue="Please Select a Language"
					/>
		</div>
		<div class="type-text">
			<label for="echo">Framework: </label>
			<s:url var="remoteurl" action="jsonsample"/>
			<sj:select
					href="%{remoteurl}"
					id="selectWithReloadTopic"
					formIds="formSelectReload"
					reloadTopics="reloadsecondlist"
					name="echo"
					list="reloadList"
					emptyOption="true"
					headerKey="-1"
					headerValue="Please Select a Framework"
					/>
		</div>
		<div class="type-button">
			<sj:submit
					id="submitFormSelectReload"
					targets="result"
					value="AJAX Submit"
					indicator="indicator"
					button="true"
					/>
			<img id="indicator"
			     src="images/indicator.gif"
			     alt="Loading..."
			     style="display:none"
					/>
		</div>
	</fieldset>
</s:form>
<br/>
<strong>Reload example with one select box and an buttonset.</strong>
<s:form id="formSelectCheckBox" action="echo" theme="xhtml">
	<s:url var="remoteurl" action="jsonsample"/>
	<sj:select
			href="%{remoteurl}"
			id="languageSelect"
			onChangeTopics="reloadcheckboxes"<commit_msg>fixed type in explanatory text in doubleselect showcase example<commit_after><%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>

<h2>A AJAX based Double Select Box</h2>

<p class="text">
	Two select boxes with remote json content. The second select box content is dependent from the first one.
</p>
<strong>Reload example with two select boxes.</strong>
<s:form id="formSelectReload" action="echo" theme="simple" cssClass="yform">
	<fieldset>
		<legend>AJAX Form</legend>
		<div class="type-text">
			<label for="language">Language: </label>
			<s:url var="remoteurl" action="jsonsample"/>
			<sj:select
					href="%{remoteurl}"
					id="language"
					onChangeTopics="reloadsecondlist"
					name="language"
					list="languageObjList"
					listKey="myKey"
					listValue="myValue"
					emptyOption="true"
					headerKey="-1"
					headerValue="Please Select a Language"
					/>
		</div>
		<div class="type-text">
			<label for="echo">Framework: </label>
			<s:url var="remoteurl" action="jsonsample"/>
			<sj:select
					href="%{remoteurl}"
					id="selectWithReloadTopic"
					formIds="formSelectReload"
					reloadTopics="reloadsecondlist"
					name="echo"
					list="reloadList"
					emptyOption="true"
					headerKey="-1"
					headerValue="Please Select a Framework"
					/>
		</div>
		<div class="type-button">
			<sj:submit
					id="submitFormSelectReload"
					targets="result"
					value="AJAX Submit"
					indicator="indicator"
					button="true"
					/>
			<img id="indicator"
			     src="images/indicator.gif"
			     alt="Loading..."
			     style="display:none"
					/>
		</div>
	</fieldset>
</s:form>
<br/>
<strong>Reload example with one select box and a buttonset.</strong>
<s:form id="formSelectCheckBox" action="echo" theme="xhtml">
	<s:url var="remoteurl" action="jsonsample"/>
	<sj:select
			href="%{remoteurl}"
			id="languageSelect"
			onChangeTopics="reloadcheckboxes"
{'fraction_non_alphanumeric': 0.1584313725490196, 'fraction_numerical': 0.0020915032679738564, 'mean_word_length': 3.8005018820577163, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5566147', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1257, 'n_words': 269}