Re: [NEWB] contrib:Table dynamic columns

2006-02-15 Thread Jorge Quiroga
Hello: Yes, I saw it just after I sent the message and put it into "for" loop, but the same, with or without .toString() :-( again, the information is into the List and I can see it via debugger in both cases. even I put the Object[] actRow = new Object[numColumns]; into the loop but the same

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread andyhot
It seems your result list contains the same actRow over and over. So, even if you could see data in the table, you would see the same row over and over. Could it be that your very last row contains empty values?? Anyway, try moving the Object[] actRow = ... line inside the for (t =

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread Jorge Quiroga
Hello Andreas: this is the java code that generate the List: try { try { rs = pstmt.executeQuery(); NumColumnas = 0; rsMeta = rs.getMetaData(); NumColumnas = rsMeta.getColumnCount(); }

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread Andreas Andreou
What exactly are the objects of your list? [0] calls toString() on the first item and prints it. Perhaps you want to try [0].getName() or something... Jorge Quiroga wrote: > Hi Andreas: > > I done what you recommend, with source (the List of > Object[NumColumns]) and columns parameters (as you sa

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread Jorge Quiroga
Hi Andreas: I done what you recommend, with source (the List of Object[NumColumns]) and columns parameters (as you said), the pagination links appear but no data is showed. I don“t know if the List cannot contain an array for each row and should be the data directly with the corresponding type

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread Andreas Andreou
use columns="[0], [1], [2]", or if number of columns is unknown, build it at runtime: columns="ognl:funnyColumns" // colNum is number of columns public String getFunnyColumns() { StringBuffer sb = new StringBuffer(colNum*5); for (int i=0; i Hi Folks: > > I'm trying to put information extracted

Re: [NEWB] contrib:Table dynamic columns

2006-02-14 Thread Jean-Yves Sironneau
If i remember well enough you can create your table model programmatically, so basically define the columns you want at runtime based on what you retrieve from DB. 2006/2/14, Jorge Quiroga <[EMAIL PROTECTED]>: > > Hi Folks: > > I'm trying to put information extracted from a DB into contrib:Table >

[NEWB] contrib:Table dynamic columns

2006-02-14 Thread Jorge Quiroga
Hi Folks: I'm trying to put information extracted from a DB into contrib:Table unsuccessfully, because the query is generated dynamically. The Query works, and return an ArrayList composed by Object[], each Object[] represents a row and the output is the pointer not the data inside. The probl