Re: What is wrong with this code

2005-12-09 Thread Harald Müller
- not the content. What are we doing wrong? Thanks, Harry -Ursprüngliche Nachricht- Von: Onur Tokan [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 09. Dezember 2005 08:22 An: MyFaces Discussion Betreff: Re: What is wrong with this code Yes Volker, It's exacly the way I wanna do. I want

Re: What is wrong with this code

2005-12-09 Thread Volker Weber
Hi Harald, you don't set any content to your UIData component, so you can't expect any content rendered. Setting the var property without using it in the coulum content is useless. But it makes no sense to have content without valuebindings using the 'var'. But to force your table to display

Re: What is wrong with this code

2005-12-09 Thread Onur Tokan
Hi, Thank you very much for your interests. Volker, this solves my problem. I will post the running implementation for further reference. Best regards, Onur On 12/9/05, Volker Weber [EMAIL PROTECTED] wrote: Hi Harald, you don't set any content to your UIData component, so you can't expect

AW: What is wrong with this code

2005-12-09 Thread Harald Müller
Hi! Volker, you've made my day ... works perfect! Thank you! Harry -Ursprüngliche Nachricht- Von: Volker Weber [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 09. Dezember 2005 12:34 An: MyFaces Discussion Betreff: Re: What is wrong with this code Hi Harald, you don't set any content

What is wrong with this code

2005-12-08 Thread Onur Tokan
Hi, I have a problem about creating dynamic HtmlDataTable component. The following code renders only the column's facets. NOT the CONTENTS... Thanks... HtmlDataTable dataTable = new HtmlDataTable(); for (int i = 1; i = 10 i++) { UIColumn column = new UIColumn(); HtmlOutputText

Re: What is wrong with this code

2005-12-08 Thread Enrique Medina
Try not to create the components through the new mechanism, but using FacesContext.getApplication.createComponent...2005/12/8, Onur Tokan [EMAIL PROTECTED]:Hi,I have a problem about creating dynamic HtmlDataTable component. The following code renders only the column's facets. NOT the

Re: What is wrong with this code

2005-12-08 Thread Onur Tokan
No Enrique, it's not the point. I am creating a vector of these components and I am using FacesContext over vector. I think the problem is about HtmlDataTable component, any ideas please... On 12/8/05, Enrique Medina [EMAIL PROTECTED] wrote: Try not to create the components through the new

Re: What is wrong with this code

2005-12-08 Thread Simon Kitching
Onur Tokan wrote: I have a problem about creating dynamic HtmlDataTable component. The following code renders only the column's facets. NOT the CONTENTS... Thanks... HtmlDataTable dataTable = new HtmlDataTable(); for (int i = 1; i = 10 i++) { UIColumn column = new UIColumn();

Re: What is wrong with this code

2005-12-08 Thread Onur Tokan
Thank you simon, I've already tried to set unique id. I think we are missing something. Maybe expert team members may show the way to do it. I've read all the forum postings before asking here. There is no exact answer about this topic. Maybe UIData component doesn't not support dynamic columns.

Re: What is wrong with this code

2005-12-08 Thread Mike Kienenberger
Have you looked at using t:columns for creating dynamic sets of columns? If nothing else, you can use this a reference code. On 12/8/05, Onur Tokan [EMAIL PROTECTED] wrote: Thank you simon, I've already tried to set unique id. I think we are missing something. Maybe expert team members may

Re: What is wrong with this code

2005-12-08 Thread Simon Kitching
Hi Onur, Having dynamic columns, and setting the DataModel are two unrelated issues. The first controls the width of the table. The second controls its height (ie the number of rows rendered). Even when all the columns have only static text the table will still render the number of rows

Re: What is wrong with this code

2005-12-08 Thread Volker Weber
Hi, Simon Kitching wrote: Onur Tokan wrote: I have a problem about creating dynamic HtmlDataTable component. The following code renders only the column's facets. NOT the CONTENTS... Thanks... HtmlDataTable dataTable = new HtmlDataTable(); for (int i = 1; i = 10 i++) { UIColumn

Re: What is wrong with this code

2005-12-08 Thread Volker Weber
Hi, Onur Tokan wrote: Thank you simon, I've already tried to set unique id. I think we are missing something. Maybe expert team members may show the way to do it. I've read all the forum postings before asking here. There is no exact answer about this topic. Maybe UIData component doesn't

Re: What is wrong with this code

2005-12-08 Thread Onur Tokan
Yes Volker, It's exacly the way I wanna do. I want to display 100 rows, 10 columns table with header on each column. Supposed to see the following result. Column Header 1 # Column Header 2 ... 10 columns here