Re: Dynamic form generation

Stefan Armbruster <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi,

take a look at my contrib package (sam). There's a form generation
mechanism.
You specify a form using a XML description and hold some templates for
various form types in the HTML presentation. 
Before the model directives are resolved, the form fields are copied
using the above noted templates.

Any comments or change request for the contrib are welcome.

Regards,
Stefan


Am Mon, den 24.11.2003 schrieb Martin Paoletta um 23:24:
> Hi,
> 
> I need to generate forms dynamically. A form is a collection of controls 
> (input elements, grids, buttons). The exact composition of the form 
> (what elements it does include) is known only at runtime (it changes).
> 
> I came up with the following approach:
> My FormModel should have an item elements that returns an iterative 
> model with the form elements. Those elements are components. The problem 
> I currently have is that components should bind to html nodes that my 
> template doesn´t have (I only have a <span id="Form">[Form]</span> 
> node). How can I import those nodes (I do have additional templates for 
> each element (text, select, grids, etc) that I want to use) into the 
> master template. Models return strings, components or nodes. I want to 
> return processed nodes or components that generate their nodes by 
> importing them from other templates.
> 
> Perhaps there is another aproach that I haven´t thought of.
> 
> Thanks in advance,
> Martin Paoletta
> 
> 
> 
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
-- 
Systemberatung & Softwareentwicklung
Stefan Armbruster        mail: [email protected]
Neithardtstr. 7          Tel.: +49 (89) 45670791
85540 Haar               Fax.: +49 (89) 45670965
                         Mobil: +49 (163) 4711712
PGP Fingerprint: 3B80 C47A 2631 4253 52C9  3010 E096 1B9F B3BB ADE8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.