I have a ObservableList that will be holding a bunch of Elements. As I add() to the ObservableList I use a <template repeat>
to show the element.
When I make the element I would like to pass some data (in this case a VO) straight into the Constructor of the new element, then I run the add() on ObservableList. Everything seems to work the way I want until I add(), then I get an error "Exception: No constructor 'MyAlert.' declared in class 'MyAlert'." - where MyAlert is the class name (this constructor definitely exists).
I can print out the VO within the new element, but as soon as it is added to the I get issues. Can this just not be done and I'll have to pass the data I need via the HTML template?
Thanks,
Robbie