I’m
getting XML back from the
database. The XML contains a bunch of elements, all containing
children
elements that tell me what type of component to display, i.e.:
…
At any
rate…one of the reports the
user can select returns XML that contains 104 elements, i.e.: 104
various
filters they can set for this report. Well…needless to say my form
takes a long time to generate and the browser hangs while it’s being
created. I should mention that when I get the XML from the database
and
it’s sent to my ViewHelper class, I use the XMLObjectOutput utility
class
to convert the XML to an object. That part, even for the 104 element
XML
is SO quick. It’s when the form elements begin to get generated on
the fly is where the browser hangs. (I’ve tried removing the creation
of the elements that require my custom Range form field component and
that
holds very little bearing on the length of time it takes to dynamically
generate my form, as an aside).
Is there a
more elegant way to
dynamically generate children so it’s not so memory-taxing? Is
there a better approach altogether for this dynamic generation of
children for
my Form component?
Any help
is greatly appreciated.
Thanks,