4 Replies Latest reply: Nov 19, 2012 7:23 AM by Edward D.G. RSS

    af:inputListOfValues into a table (repeats values)

    Edward D.G.
      Hello, i have a table for types detail's orders. The probles is: when i create a new record and i type a new code id (or select from lov: af:inputListOfValues) the field in all rows get the same values, but when i commit the values save correctly into a database. Has ever anybody this problem????

      My jdev version is 11.1.2.3.0

      <af:table value="#{bindings.voOrderDetail1.collectionModel}"
      var="row" rows="#{bindings.voOrderDetail1.rangeSize}"
      emptyText="#{bindings.voOrderDetail1.viewable ? 'No data to display.' : 'Access Denied.'}"
      fetchSize="#{bindings.voOrderDetail1.rangeSize}"
      rowBandingInterval="0"
      selectedRowKeys="#{bindings.voOrderDetail1.collectionModel.selectedRow}"
      selectionListener="#{bindings.voOrderDetail1.collectionModel.makeCurrent}"
      rowSelection="single" id="t1"
      binding="#{backingBeanScope.backing_Solicitud.t1}"
      width="1051px" inlineStyle="height:200px;"
      allDetailsEnabled="false">
      <af:column sortProperty="#{bindings.voOrderDetail1.hints.IdProduct.name}"
      sortable="false"
      headerText="#{bindings.voOrderDetail1.hints.IdProduct.label}"
      id="c1" width="75">
      <af:inputListOfValues label="#{bindings.IdProduct.hints.label}"
      popupTitle="Search and Select: #{bindings.IdProduct.hints.label}"
      id="IdProductId"
      value="#{bindings.IdProduct.inputValue}"
      model="#{bindings.IdProduct.listOfValuesModel}"
      required="#{bindings.IdProduct.hints.mandatory}"
      columns="#{bindings.IdProduct.hints.displayWidth}"
      shortDesc="#{bindings.IdProduct.hints.tooltip}"
      autoSubmit="true">
      <f:validator binding="#{bindings.IdProduct.validator}"/>
      </af:inputListOfValues>
      </af:column>
      <af:column sortProperty="#{bindings.voOrderDetail1.hints.TipoComponente.name}"
      sortable="false"
      headerText="#{bindings.voOrderDetail1.hints.TipoComponente.label}"
      id="c2" width="75">
      <af:inputText value="#{row.bindings.TipoComponente.inputValue}"
      label="#{bindings.voOrderDetail1.hints.TipoComponente.label}"
      required="#{bindings.voOrderDetail1.hints.TipoComponente.mandatory}"
      columns="#{bindings.voOrderDetail1.hints.TipoComponente.displayWidth}"
      maximumLength="#{bindings.voOrderDetail1.hints.TipoComponente.precision}"
      shortDesc="#{bindings.voOrderDetail1.hints.TipoComponente.tooltip}"
      id="it1" autoSubmit="true"
      partialTriggers="IdProductId">
      <f:validator binding="#{row.bindings.TipoComponente.validator}"/>
      </af:inputText>
      </af:column>
      <af:column sortProperty="#{bindings.voOrderDetail1.hints.Descripcion.name}"
      sortable="false"
      headerText="#{bindings.voOrderDetail1.hints.Descripcion.label}"
      id="c3" width="250">
      <af:outputText value="#{row.Descripcion}" id="ot3"
      partialTriggers="IdProductId it1"/>

      </af:table>