1 Reply Latest reply on Sep 21, 2017 4:36 AM by michpetrov

    (richfaces) set value from list in column

    sengul

      0down votefavorite

       

       

      I have crated a dataTable. This Table has an action which returns a list. This List is saved as var="list". The Table has 4 columns. All column names should be taken from the list.
      The first column name should be list.get(0).getDescription(), the second column name shoul be list.get(0).getCompanyname(), the third should be list.get(1).getCompanyname() and the last list.get(2).getCompanyname().

      Now, I don't know how I can access each object with the index fromList and set this as a column name?

      Can I write java code in richfaces? i mean like this <h:outputText value="#{list.get(0).getDescription()}" /> or can I access this value in richfaces?