Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.0.18
-
None
Description
Following examples I've found on the web I created the following method in a Page class so I could have additional columns appear in the grid component:
public BeanModel getModel()
{ BeanModel<Experiment> model = beanModelSource.createDisplayModel(Experiment.class, resources.getMessages()); model.add("edit"); model.add("delete"); return model; }A RuntimeException is throw within the call to model.add("edit"). It complains that the "edit" property does not exist. If I pass 'null' as the conduit (i.e. model.add("edit", null) ) It works fine.
The JavaDoc seems to indicate that I can just add a new property to the model using the original form of the call but it seems to not working that way in 5.0.18.