Forum Stats

  • 3,853,207 Users
  • 2,264,192 Discussions
  • 7,905,286 Comments

Discussions

Select Many Choice Pre-Selected values

DLopez
DLopez Member Posts: 278
edited Jul 7, 2016 12:51PM in JDeveloper and ADF

Hi,

I'm using JDev 12.2.

I'm adding a selectManyChoice to a page, based on values from my dataBase and I want to set 1 of those values as a selected value and disable it after so it cannot be unchecked.

I have this so far but I haven't found a property to set it as checked.

<af:selectManyChoice value="#{bindings.languages.inputValue}" id="smc2" attributeChangeListener="#{TranslationsBean.checkDefaultLanguage}">
    <!--<f:selectItems value="#{bindings.languages.items}" id="si3"/>-->
    <af:forEach items="#{bindings.languages.items}" var="item">
        <af:selectItem label="#{item.label}" id="si2" value="#{item.value}" disabled="#{item.label eq 'English'}"/>
    </af:forEach>
    <f:validator binding="#{bindings.languages.validator}"/>
</af:selectManyChoice>

Any suggestions to accomplish this?

Thanks

Tagged:

Answers

This discussion has been closed.