You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2004/12/20 16:14:35 UTC

binding form model to map

Suppose you do not know the exact widget names (the form model is flat - 
no repeaters). Is there a possibility to bind the form to a Map 
(widgetName -> value)? The only thing I miss from implementing a custom 
binding is enumerating all form's widgets.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Re: binding form model to map

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Leszek Gawron wrote:
> Suppose you do not know the exact widget names (the form model is flat - 
> no repeaters). Is there a possibility to bind the form to a Map 
> (widgetName -> value)? The only thing I miss from implementing a custom 
> binding is enumerating all form's widgets.
> 
stupid is stupid does. should have checked first if there is 
Form.getChildren() .. of course there is :)

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65