My favorites | Sign in
Project Home Wiki Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Notest  
This is a description of a record
Updated Oct 23, 2011 by denis.ha...@gmail.com

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

Powered by Google Project Hosting