Can you create a custom component that
would be repeated? The component would have the binding and validation logic
within it and you’d simply tie it back to the larger model. There isn’t
really a way of setting up binding for dynamically created elements.
Matt
I've created a form using <mx:Repeater> that I populate using an
array
of objects. I've been trying to use
<mx:Binding> tags to bind the
properties of the controls back into the array,
but I haven't been
able to figure out how to do that, or if it is
even possible.
After banging my head against the problem for
awhile, I realized that
it might not be possible since the repeated
controls are made at
runtime, after Bindings would be created.
And I couldn't find anyway
to start a Binding using ActionScript.
Is this possible using <mx:Binding>?
If not, what should I do to get
the data from the components? I really want
to use some form of
binding for validation purposes (data is
automatically re-validated
after changes), and for ease of updates, etc.
Thanks,
Moishe Groger
Yahoo! Groups Links
|