Thanks for taking time for silly me :-)

Should have said that, but I tried to add a property to a BeanModel. However, this seems to fail if the class which was fed to the model's constructor doesn't have the property getter. As I understand it, I can enable/disable existing properties on a bean, but not create new ones?!

-----
BeanModel model = beanModelSource.create( LdapRow.getClass(), false, componentResources);
model.add( "orvar");   -> Exception:
--------------------
Error: Render queue error in SetupRender[ReportPage:grid]: Failure reading parameter 'model' of component ReportPage:grid: Class net.kln.yalt.pages.ReportPage$LdapRow does not contain a property named 'orvar' (within property expression 'orvar'). Available properties: class.





Davor Hrg wrote:
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


--
--------------------------------------------------------------------------
Michael Kolmodin                        Fredsgatan 2
Phone:  +46 920 269413                  S-972 35 Lulea
Mobile  +46 70 551 6507                 Sweden

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to