myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Hauser (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (TOBAGO-326) Submit in subform leads to validation of values outside of the subform
Date Fri, 16 Mar 2007 13:07:09 GMT
Submit in subform leads to validation of values outside of the subform
----------------------------------------------------------------------

                 Key: TOBAGO-326
                 URL: https://issues.apache.org/jira/browse/TOBAGO-326
             Project: MyFaces Tobago
          Issue Type: Bug
    Affects Versions: 1.0.10
            Reporter: Dennis Hauser


This is an example to reproduce the bug:
a tx:selectOneChoice inside a subform submits on every change. All entry fields outside of
this subform should be ignored, but instead they are validated as well.


<tc:tab id="details_contracts"
	label="#{label.adminRefdata_contracts_tabLabel}"
	rendered="#{controller.msAdminUser}">

	<f:facet name="layout">
		<tc:gridLayout rows="fixed;*" columns="710px;*" />
	</f:facet>
	<tc:form>
		<tc:panel>
			<f:facet name="layout">
				<tc:gridLayout columns="350px;350px;*" rows="fixed;*" />
			</f:facet>
			<tc:box label="#{label.adminRefdata_contracts_haltBoxLabel}">
				<f:facet name="layout">
					<tc:gridLayout columns="fixed;*" rows="fixed;*" border="0" />
				</f:facet>

				<tc:form>											                                                    <-- subform
start
					<tx:selectOneChoice value="#{contractHaltController.contractName}"
						label="#{label.adminRefdata_contracts_contract}">
						<f:selectItems value="#{contractHaltController.contractItems}" />
						<f:facet name="change">
							<tc:command action="#{contractHaltController.reloadContract}"/>
						</f:facet>
					</tx:selectOneChoice>
				</tc:form>                                                                     
                                                                         <-- subform end
				<tc:cell />

				<tc:selectOneRadio value="#{contractHaltController.contractModType}"
					disabled="#{contractHaltController.contract.inactive || marketHaltController.marketHalt}">
					<f:selectItems
						value="#{contractHaltController.contractModTypeItems}" />
				</tc:selectOneRadio>

				<tc:cell />
			</tc:box>

			<tc:box label="#{label.adminRefdata_contracts_boxLabel}">
				<f:facet name="layout">
					<tc:gridLayout columns="fixed;*" rows="fixed;fixed;*" border="0" />
				</f:facet>
				<tx:in disabled="#{!contractHaltController.contract.inactive}"			<-- outside of
form, but validated as well
					value="#{contractHaltController.contractTradeFrom}"
					label="#{label.adminRefdata_contracts_startTime}"
					converter="DateConverter" />
				<tc:cell />

				<tx:in value="#{contractHaltController.contractTradeUntil}"			<-- outside of form,
but validated as well
					label="#{label.adminRefdata_contracts_endTime}"
					converter="DateConverter" />
				<tc:cell />
			
				<tc:cell spanX="2" />

			</tc:box>
			<tc:cell />
			<tc:cell spanX="3" />

		</tc:panel>
		<tc:cell />

		<tc:panel>
			<f:facet name="layout">
				<tc:gridLayout columns="*;100px;*" rows="fixed;*" />
			</f:facet>
			<tc:cell />
			<tc:button label="#{label.adminRefdata_contracts_submitButton}">
				<%--<tc:attribute name="renderedPartially" value="popup-modify-contract" />--%>
				<popup:confirmationPopup name="popup-modify-contract"
					text="#{label.adminRefdata_contracts_modifyContractPopup_text}"
					onConfirm="contractHaltController.submitContract"
					onCancel="contractHaltController.closeModifyContractPopup" />
			</tc:button>
			<tc:cell />
			<tc:cell spanX="3" />
		</tc:panel>
		<%--</tc:cell>--%>
		<tc:cell />
	</tc:form>
</tc:tab>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message