Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Problem with DropDownList
posted

I use a DropDownList in a grid like this :

<ig:column>

            <f:facet name="header">

                 <h:outputText value="Etat" />

             </f:facet>

 

             <ig:dropDownList valueChangeListener="#{operateurs.onChangeEtat}"

                 dataSource="#{operateursBean.view.etatsItems}" value="#{DATA_ROW.actif}"></ig:dropDownList>

</ig:column>

But it does not select the good value, for example if DATA_ROW.actif = 1 it does not select the option with value="1" if i use a classic jsf dropdownlist it works, but i would like to use ajax ability of your dropdownlist:

<ig:column>

<f:facet name="header">

<h:outputText value="Etat" />

</f:facet>

<h:selectOneMenu value="#{DATA_ROW.actif}">

<f:selectItem itemValue="0" itemLabel="Actif" />

<f:selectItem itemValue="1" itemLabel="Inactif" />

<f:selectItem itemValue="2" itemLabel="Simulation" />

</h:selectOneMenu>

 

</ig:column>

 

Victor