BeanModel throws exception when adding new field to model
---------------------------------------------------------

                 Key: TAP5-668
                 URL: https://issues.apache.org/jira/browse/TAP5-668
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0.18
            Reporter: Charles Fineman
            Priority: Minor


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.

        

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to