Introduction
Record is a wrapper around Java object which is either POJO or an instance of Map. It contains data and a description of data
Record record=new Record(model:model,data:data,view:'grid');
Purpose of the view parameter resembles Jackson's view parameter. During serialization only fields with matching view will be taken into account
def fields=[
{
name:'field1',
jbind:'someProperty'
},
{
name:'field2',
jbind:'someOther'
}
]By default, each created bean is a singleton. That means that state can not be maintained between request. If state has to be maintained, bean has to be additionally annotated with @Stateful annotation
Details
Add your content here. Format your content with:
- Text in bold or italic
- Headings, paragraphs, and lists
- Automatic links to other wiki pages