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 as
in the examples. I'm missing something?
Thanks
Andreas Andreou escribió:
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<colNum; i++)
{
if (i!=0)
sb.append(", ");
sb.append("[").append(i).append("]");
}
return sb.toString();
}
Jorge Quiroga wrote:
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 problem is that I cannot found an example with these
characteristics, always is a List with known number of columns, and
known data type. Someone has an example were I can see how to show
results got from a dynamically generated query or what alternatives I
have to show this information in a Tapestry way, preferably using
contrib:Table?
Thanks in advance
Jorge
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ing. Jorge Enrique Quiroga
Analista programador
PCT LTDA
Teléfonos: 4800069-4800046-4811984
Dirección: Carrera 28 bis Nº 51-08
Bogota D.C. - Colombia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]