Grid uses BeanModel, no need to mess with javassist you can create default one by injecting BeanModelSource and create it with it after that you can play with the model.
or you can provide a list of columns to the grid to include/exclude Davor Hrg On Sun, Mar 16, 2008 at 4:47 PM, Alec Leamas <[EMAIL PROTECTED]> wrote: > Trying the hard parts first, I'm trying to create a table where the > columns are not known until runtime. The application is basically a > viewer, and the underlying database schema varies from time to time. > > My question: is it somehow possible to define what columns to use in the > Grid component in runtime? The T4 variant accepts a list, so it's no > problem. The T5 variant uses a bean to define the columns, and this is > trickier. > > I've tried to use javassist to modify a a bean dynamically, but the Grid > complains that it cannot find the source for the getter method I added > to the bean. This might just be the wrong way to do it, something wrong > with my first attemps to use javassist, or some problem with the idea to > use these kind of modified beans as source for the Grid. > > Thanks for any help... > > --Alec > > --------------------------------------------------------------------- > 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]