Skip to Main Content

Select Many Choice Pre-Selected values

DLopezJul 7 2016 — edited Jul 7 2016

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

This post has been answered by AMeireles on Jul 7 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Aug 4 2016
Added on Jul 7 2016
2 comments
317 views