You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2009/04/28 18:45:30 UTC

[jira] Assigned: (TAP5-668) BeanModel throws exception when adding new field to model

     [ https://issues.apache.org/jira/browse/TAP5-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-668:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> 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
>            Assignee: Howard M. Lewis Ship
>            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.