
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<af:selectOneChoice id="sc1" clientComponent="true" required="false" immediate="true" shortDesc="#{bundle.TYPES}" showRequired="true" mode="default" contentStyle="width:30px" binding="#{pageFlowScope.myBean.types}" value="#{pageFlowScope.myBean.type}" unselectedLabel="#{bundle.SELECT_ONE}" label="#{sprportalBundle.TYPES}:" autoSubmit="false"> <af:forEach items="#{bindings.typeLOV.iteratorBinding.allRowsInRange}" var="item"> <f:selectItem id="sit1" itemLabel="#{item.type}" itemValue="#{item.type}"/> </af:forEach> </af:selectOneChoice>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<af:selectOneChoice label="#{bundle.MYLABEL}" id="xs1" required="false" immediate="true" valueChangeListener="#{pageFlowScope.myBean.typesVCL}" showRequired="true" value="#{pageFlowScope.myBean.type}" binding="#{pageFlowScope.myBean.typeBinding}" styleClass="classname"> <af:selectItem label="#{bundle.CHOICE_TYPE1}" value="#{pageFlowScope.myBean.typeValue1}" id="xs2"/> <af:selectItem label="#{bundle.CHOICE_TYPE1}" value="#{pageFlowScope.myBean.typeValue2}" id="xs3" rendered="#{pageFlowScope.myBean.typeValueShown}"/> </af:selectOneChoice>
Populating af:selectOneChoice using af:selectItems tag
1 2 3 4 5 6 7 8
<af:selectOneChoice value="#{bindings.Team.inputValue}" label="#{bundle.MYLABEL}" shortDesc="#{bindings.type.hints.tooltip}" id="xc2" binding="#{pageFlowScope.myBean.team}" autoSubmit="true" unselectedLabel="#{bundle.MYLABEL}" rendered="#{not pageFlowScope.myBean.noTeams}" simple="true"> <f:selectItems value="#{bindings.Team.items}" id="xc3"/> </af:selectOneChoice>
No comments :
Post a Comment
your comments welcomed !