Re: Question about dataTable

2005-10-20 Thread PATRICIA GUEDES
Forget it!!! I found the problem. I was constructing the valuesEmbque variable with a Fields Array in the RemessaBean's Constructor. Thanks any way!!! Guedes On 10/20/05, PATRICIA GUEDES <[EMAIL PROTECTED]> wrote: > That's what I did. But something is wrong, because the error > "[ServletExcepti

Re: Question about dataTable

2005-10-20 Thread PATRICIA GUEDES
That's what I did. But something is wrong, because the error "[ServletException in:/eservices/layout/layout.jsp] null' " appears. public DataModel getFieldsEmbque() { if(fieldsEmbqueModel == null) { fieldsEmbqueModel = new ArrayDataModel(fieldsEmbque); } return fieldsEmbqueModel;

Re: Question about dataTable

2005-10-20 Thread PATRICIA GUEDES
Sorry, but I don't understand (I am learning yet). How can I fill the row data? With an Array? Thanks, Guedes On 10/18/05, Mathias Brökelmann <[EMAIL PROTECTED]> wrote: > try to use an instance of DataModel as the value for either > valuesEmbque or fieldsEmbque. You can then determine with > Data

Re: Question about dataTable

2005-10-18 Thread Mathias Brökelmann
try to use an instance of DataModel as the value for either valuesEmbque or fieldsEmbque. You can then determine with DataModel.getRowData() the current value of the List to determine which value you should return for each cell: public class RemessaBean { private DataModel fieldsEmbqueModel; p

Re: Question about dataTable

2005-10-18 Thread PATRICIA GUEDES
Thanks for your reply! That's exactly what I needed. But, now I have another problem. How can I reference an Object's attribute in a ArrayList? Follow a simple example (very ugly) : private static final Fields[] fiel

Re: Question about dataTable

2005-10-18 Thread Mathias Brökelmann
try out the t:columns component which allows you to have NxM tables. Take a look into the myfaces-examples (opendatatable) 2005/10/18, PATRICIA GUEDES <[EMAIL PROTECTED]>: > Hi, I´m from Brazil (sorry my bad English) and I need to build a > table where the columns are dynamics. The columns came f

Question about dataTable

2005-10-18 Thread PATRICIA GUEDES
Hi, I´m from Brazil (sorry my bad English) and I need to build a table where the columns are dynamics. The columns came from a ArrayList of "fields" and the lines came from each field's values. How can I do that? Ex: field1 field2 field3 field4 field5 (colunas vêm de um ArrayList de