3 Replies Latest reply on Aug 30, 2007 7:29 PM by Pete Muir

    selectOneMenu in dataTable

    mladen babic Newbie

      Is is possible to put h:selectOneMenu component in data table when value of selectitems of selectOneMenu is list created by call to bean method and parameter of that function is row of datatable. When page is displayed list of selectOneMenu component is populated correctly only for first row of datatable. While debuging I noticed that bean's method is called only ones.
      SelectOneMenu in other rows are populated with same value as first one.This is fragment of my code:

      <t:dataTable value="#{productPropertyList}" var="productProperty">
       <h:outputText value="#{productProperty.name}"></h:outputText>
       <h:selectOneMenu id="selectStatus"
       <s:convertEntity />
       <s:selectItems var="item" label="#{item.name}" noSelectionLabel="------------"
       value="#{adminNewOrderAction.getPropertyValues(productProperty)}" />

      Best regards,