Yes, sorry :) I meant FieldUpdater. I will check your magic later thanks! But currently I'm still getting > > java.lang.IllegalStateException: The AutoBean has been frozen
:( I've updated to 2.2.0-M1, and I see that Thomas's patch is in. So I'm not sure, what's going on. The other fields can be edited correctly and saved to DB (so I guess .edit() and .flush() works correctly). But when I edit one cell of the CellTable, I get the exception. What am I doing wrong? I can send chunk of code if more needed, but currently I have no more idea, what can be wrong at my side. Thanks for your advice! On Sat, Jan 29, 2011 at 11:33 PM, Colin Alworth <niloc...@gmail.com> wrote: > The other question: Is there a way to not to write custom FieldCustomizer >> for columns? Can't GWT know which proxy/property I am editing? Or am I doing >> something wrong? Thanks! >> > > Assuming by FieldCustomizer you mean FieldUpdater... It seems not – the > Column.getValue method must be implemented to load data and > the FieldUpdater.update call to put it back again. I am trying to make a > simple generator to turn an interface like > > interface RouteColumns extends Columns<MyBean> { > > @Header("Name") > > @Editable() > > EditTextCell name(); > > @Header("Description") > > @Alignment(horizontal=HorizontalAlign.JUSTIFY) > > TextCell description(); > > } > > into a set of columns where the MyBean class has get/set calls for name and > description. The Columns marker interface has a .configure call which goes > through and adds each column in order to the CellTable. > > > It isn't perfect by any stretch, but it seems to fill a hole that code > generation can solve. One remaining issue I would be interested in feedback > on is how to i18n the header text. I've thought about requiring that the > Constants interface this would use (probably indicated via an annotation to > this type) have methods named the same as the methods in the interface... > > > Hope this sparks some thoughts in others – let me know if you are > interested, and I will share a working version in the next few days. > > > -Colin > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- Üdv, Kriván Bálint -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.