"Hacking" the beanmodel is definitely possible. You can actually dump all the columns that bean model picks up, and re-add them to the beanmodel's list in the order you want. You'd probably want something more streamlined if you are letting your users reorder the columns at run time.
This is pretty essential since we should never rely on the order of getters/setters in the code to determine the order of visual output. It's great to get started, but if you are like me and let your IDE sort your class members for you, you'll need more than the default order. I was able to do this with much help from this list, btw. I'll try and post some code later, but you can search the list for now. On 8/28/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > > On Tue, 28 Aug 2007 17:39:30 -0300, Christoph Jaeger > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > is there a simple example of how to use the grid component, which is > > just a bit more complex than > > > > <t:grid source="items"/> > > Something I really miss in Grid that is present in T4's contrib:Table > flexibility > ( > http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html > ), > specifically the columns parameter. That's why I'm developing an > application en T5 and I'm not using Grid yet: it doesn't allow me to > reorder the columns easily. I tried to grok the BeanModel default > implementation, but I had to have a working code quickly and then I > postponed my BeanModel hackings. :) > > -- > Thiago H. de Paula Figueiredo > Desenvolvedor, Instrutor e Consultor de Tecnologia > Eteg Tecnologia da Informação Ltda. > http://www.eteg.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >