Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.10
-
None
-
None
-
None
Description
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="#
"
rendered="#
">
<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="#
">
<f:facet name="layout">
<tc:gridLayout columns="fixed;" rows="fixed;" border="0" />
</f:facet>
<tc:form> <-- subform start
<tx:selectOneChoice value="#
"
label="#
">
<f:selectItems value="#
" />
<f:facet name="change">
<tc:command action="#
"/>
</f:facet>
</tx:selectOneChoice>
</tc:form> <-- subform end
<tc:cell />
<tc:selectOneRadio value="#
{contractHaltController.contractModType}"
disabled="#
">
<f:selectItems
value="#
" />
</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="#
" <-- outside of form, but validated as well
value="#
"
label="#
"
converter="DateConverter" />
<tc:cell />
<tx:in value="#
{contractHaltController.contractTradeUntil}" <-- outside of form, but validated as well
label="#
"
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="#
">
<%-<tc:attribute name="renderedPartially" value="popup-modify-contract" />-%>
<popup:confirmationPopup name="popup-modify-contract"
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>