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

    selectOneMenu in dataTable

    mladen.babic

      Hi,
      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">
      
       <t:column>
       <h:outputText value="#{productProperty.name}"></h:outputText>
       </t:column>
       <t:column>
       <h:selectOneMenu id="selectStatus"
       value="#{adminNewOrderAction.property}">
       <s:convertEntity />
       <s:selectItems var="item" label="#{item.name}" noSelectionLabel="------------"
       value="#{adminNewOrderAction.getPropertyValues(productProperty)}" />
       </h:selectOneMenu>
      
       </t:column>
       </t:dataTable>
      


      Best regards,
      mb