Thanks very much...
i hope in your help to solve my question..
i want my application shows a datatable with a number of columns
variable(depending of user) and input fields,so each row is an inputText. 
Please help me,i don't know well datatables...
This is my jsp page.
I've a list or rows,a list of columns and a commandbutton for each row that
should allow to user to send each row of data to tb.
Question1) Is this correct for my scope?
<t:dataTable value="#{data.rows}" var="row" > 
          <t:columns value="#{data.columns}" var="column"> 
           </t:columns> 
        <t:commandButton value="Send row"/>
<t:commandButton value="Send row"/>
        </t:dataTable>  

If it's correct now i need to create list rows and list columns.....
i've read the examples but i don't understand....can you help me step by
step?
My rows list don't need values specified,beacuse i need input forms,so they
have to be empty..
how can i do it?
Suppose in this example(for semplicity) i have 3 columns and 5 rows
List rowList = new ArrayList();
    private DataModel data;
    private DataModel columnHeaders;
        for (int i = 0; i <5; i++)//cycle on rows
        {
            List colList = new ArrayList();
            colList.add(new Integer(i));//first value
            colList.add(null);//second value
            colList.add(null);//third value
           
        }
        data = new ListDataModel(rowList);

Is it correct?Please reply to my post and gives me more help...
If it is correct can you post me some idea or code for columns?
I hope you help me..
-- 
View this message in context: 
http://www.nabble.com/t%3Acolumns-help...-tf2298175.html#a6390682
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to