Hi Carlos,

I just get back to this one, cause I would like to go to some direction. 

What was the problem:
Most components in MDL need to be refreshed in some way by library.
Initially I thought that we should add such ability by Bead (UpgradeElement)
- which decrease unneeded refresh by library.

I added such bead but it occurs that sometimes components in MDL are
contains sub components which also need to be updated. Since UpgradeElement
bead do not carry out for a children in some cases this bead is not enough. 

I've added than "isDynamic" property which is setted up by constructor (ex.
Button, TextField) and inside component it's being checked and upgrade
process occur. 

However Santanau point us some scenario where dynamic component creation
it's not necessary should occur in ActionScript code by new Button(true) -
it can occur also inside MXML (state changes etc.).

I've started to look deeper in MDL library and found that upgrade is not
being performed on components which is already upgraded - In that case I
could by default add such ability to our existing components without
thinking that something will be called to much time.

That is my summarize after some tests and attempt of finding best solution.

Piotr



-----
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Ability-to-create-dynamic-components-tp60255p60378.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to