form表单级联



 

                <af:selectOneChoice value="#{bindings.Dwh.inputValue}" label="#{bindings.Dwh.label}" autoSubmit="true"
                                    required="#{bindings.Dwh.hints.mandatory}" shortDesc="#{bindings.Dwh.hints.tooltip}"
                                    id="soc1">
                    <f:selectItems value="#{bindings.Dwh.items}" id="si1"/>
                    <f:validator binding="#{bindings.Dwh.validator}"/>
                </af:selectOneChoice>
                <af:selectOneChoice value="#{bindings.Xznj.inputValue}" label="#{bindings.Xznj.label}" autoSubmit="true"
                                    required="#{bindings.Xznj.hints.mandatory}"
                                    shortDesc="#{bindings.Xznj.hints.tooltip}" id="soc2">
                    <f:selectItems value="#{bindings.Xznj.items}" id="si2"/>
                    <f:validator binding="#{bindings.Xznj.validator}"/>
                </af:selectOneChoice>
                <af:selectOneChoice value="#{bindings.Zydm.inputValue}" label="#{bindings.Zydm.label}"
                                    required="#{bindings.Zydm.hints.mandatory}" partialTriggers="soc1 soc2"
                                    shortDesc="#{bindings.Zydm.hints.tooltip}" id="soc3">
                    <f:selectItems value="#{bindings.Zydm.items}" id="si3"/>
                    <f:validator binding="#{bindings.Zydm.validator}"/>
                </af:selectOneChoice>

在fom表单中的级联,需要设置autoSubmit以及partialTriggers

猜你喜欢

转载自563432906.iteye.com/blog/2212435