Grails - Data Binding One to One Association Not Working -


i'm trying straight forward data bind involved 2 domain classes in 1 one association. here's 2 classes:

class request {   static hasone = [form: form]    form form }  class form {   static belongsto = [request: request]    string string } 

i following data binding (this demonstrate problem ... real data bind comes form):

request request = new request() request.properties = ['form.string': 'string value'] 

however, end request object has null form property instead of request object has form object form property along string value.

try this

class request {   form form }  class form {   static belongsto = [request: request]    string string } 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -