3 Replies Latest reply on May 13, 2008 1:26 PM by zemanel

    DataTable inputtext binding

    zemanel

      Hi,

      I have my dataTable populated via an ArrayList of ArrayLists but that table row cells are editable (inputText).
      How can i associate each inputText field with one position of my ArrayList of ArrayLists to make changes in the list if the cell inputText changes?

      Any ideas/help are welcome

      Regards

        • 1. Re: DataTable inputtext binding
          ilya_shaikovsky

          You want to tell that if you just submit the form - data not saved in corresponding items?

          B.t.w. basic case, almost nothing required to implement.
          Just dataTable, inputs with #{var.item}-like values, and some submiot control :)

          • 2. Re: DataTable inputtext binding
            zemanel

            It's even before submiting the form.

            I understood the basic case, but I'm a bit confused if the values came from a multidimensional array for example, i would have something like #{var.item.value[j]} ?

            Thanks

            • 3. Re: DataTable inputtext binding
              zemanel

              I need to bind something like this:

              ValueBinding myItem = FacesContext.getCurrentInstance().getApplication().createValueBinding(
              "#{((ICell) matrix.get(1).get(i)).getValue()}");