Form diving in the code it seems that subforms are not aware of their full belongsTo key; only when the FormElements decorator of the main form is fired it set the right belongsTo on subforms before rendering it. My approach for generating forms in the client will be rendering a hidden subform to clone.
-- Giorgio Sironi Piccolo Principe & Ossigeno Scripter http://ossigeno.sourceforge.net
