Hello All,

I am new to tapestry & facing lot of problem in understanding internal
working of grid.

I have a requirement where I need to display certain data from database
obtained as result list using grid.  

1.       I use query to retrieve certain column names of a particular table
depending on some criteria & those selected columns are to be displayed, so
the number & column names are decided at runtime.

2.       I need to Use Grid component. As far as I know each row of grid is
stored as objects & grid uses getters to retrieve the values.

Ex. Assume a table named TableA consists of Col1, Col2, Col3, Col4, Col5,
Col6, Col7, Col8, Col9 and Col10. Using query, I select say 4 columns (Col1,
Col5, Col7 and Col8) 

I came across Tapestry’s Bean Model class which says we can dynamically add
new columns. I tried that & was able to add new column but was unable to
display any value in that column. 

1.       Can I add those column names at runtime using BeanModel in the pojo
so that grid automatically displays value?
2.        If not is there any way to display the values.

Please help me in this regard


-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Creating-Grid-component-at-runtime-tp2847820p2847820.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to