[html-formfu] form and dynamic loading of part of it

Mario Minati mario.minati at googlemail.com
Tue Jun 23 20:24:05 GMT 2009


Am Dienstag 23 Juni 2009 14:47:30 schrieb Ferruccio Zamuner:
> Hello,
>
> I'm writing because I don't know how to solve this problem:
>
> Usually I declare
>   a single formfu with a single file,
>   one file => one form
>   some fields declared in config, some other programmatically.
>
> But now I need to render a form with some fields and an accordion widget
> containing more
> form fields, and only fields in active pane can be loaded at start with
> html page, others fields on other
> accordion pane can be lazy loaded on demand even if they are in the same
> form.
>
> Some of them are <select> with many options or dijit.filteringselect
> with related dojo.datastore and lazy loading
> can perform very well when only some of them are requested.
>
> How such parts of the same form can be created and handled with
> html::formfu?

Hi Ferruccio,

this is a quite complex task.

FormFu cannot handle this by itself, so you have to support it 
programmaticaly.

I would suggest to create different form config files for each part of your 
form. You could then laod the parts of the form that your website requests on 
demand.
For checking the form you could load all parts of the form or the required 
ones, just as you like.

Mybe you canwrite somewrapper classes which abstract that work away, something 
like that what Moritz and myself are doing for the ExtJS framework.

Greets,

Mario



More information about the HTML-FormFu mailing list