Stupi / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Support means to get array of all form fields. #138

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
(moved from https://github.com/flyingsaucerproject/flyingsaucer/issues#issue/6 
reported by https://github.com/jheid)

Hi. Please add

     public FormField[] getFormFields () {
       Object[] objects = _componentCache.values ().toArray ();
       FormField[] fields = new FormField[objects.length];
       System.arraycopy (objects, 0, fields, 0, objects.length);
       return fields;
       }

to org.xhtmlrenderer.simple.extend.XhtmlForm.

I use this to get the form values without having to submit the entire form.

Cheers,
Jörn

Original issue reported on code.google.com by pdoubl...@gmail.com on 26 Mar 2011 at 9:27