dynamic.
Just let me know and I will start to work when I found the time. :)
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60611.html
Sent from the Apache Flex
oing to get updated across other available components to MDL, i.e.
Table item renderer, toast etc. (?)
Thanks!
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60606.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60564.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
bject = window["componentHandler"];
> > componentHandler["upgradeElement"](c.positioner);
> > }
> > element.appendChild(c.positioner);
> > (c as IUIBase).addedToParent();
> > }
> > }
>
> T
var componentHandler:Object = window["componentHandler"];
> componentHandler["upgradeElement"](c.positioner);
> }
> element.appendChild(c.positioner);
> (c as IUIBase).addedToParent();
> }
> }
Thanks!
-
l start work and you shouldn't have
problem for dynamic creation of component even in mxml. - I hope ;)
Thanks,
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p
cally adding
component in "bin-release" version!
I didn't able to test your latest updates yet, I shall do that hopefully
soon.
Thanks!
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60493.html
Sent from the A
Carlos,
I'm bringing back to live this thread with question about default upgrade.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60154.html
Sent from
Hi Piotr,
Congratulations on finding the problem. You might want to make a set of
externs or typedefs for MDL. That would prevent renaming of these
functions and type check those functions as well. See the way I put
together the BarcodeScanner.swc in the flex-tourjs repo.
-Alex
On 3/4/17,
:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60068.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60046.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60045.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
On 3/3/17, 8:00 AM, "piotrz" wrote:
>I didn't think about such scenario, so it look like we should expose
>isDynamic also to MXML.
That might work, although it can't be a constructor parameter. MXML
doesn't allow constructor parameters.
I would rather explore why
I didn't think about such scenario, so it look like we should expose
isDynamic also to MXML.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p60043.html
Sent
Yeah. Debugging these things are not fun.
Chrome also allows you to set breakpoints on DOM elements.
I’ve found this useful in breaking at a specific place in the lifecycle to see
what’s going on.
> On Mar 3, 2017, at 7:24 AM, Alex Harui wrote:
>
>
>
> On 3/2/17, 8:51 PM,
On 3/2/17, 8:51 PM, "piotrz" wrote:
>I will try to fight with this. The problem is that in this case I don't
>have
>any exception in the console. :)
Yuk. I think I would next examine the DOM. Compare it against the
js-debug version. If DOM objects are missing in
I will try to fight with this. The problem is that in this case I don't have
any exception in the console. :)
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem
On 3/2/17, 5:59 PM, "piotrz" wrote:
>Alex,
>
>What could help you to fix that. Should I try to find in minified JS my
>potential class and show it here?
I don't know how much time you have, but it would be great if you simply
tried to debug into it on your own.
Alex,
What could help you to fix that. Should I try to find in minified JS my
potential class and show it here?
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem
On 3/2/17, 9:19 AM, "piotrz" wrote:
>Alex,
>
>Do you think because it is something with variable renaming in release
>version?
>I remember that this problem come back to us.
Almost every time js-debug works and js-release doesn't, it has to do with
renaming. It is
Alex,
Do you think because it is something with variable renaming in release
version?
I remember that this problem come back to us.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic
xt:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59989.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Piotr,
Santanu may be right that there are dynamic MXML scenarios involving
states and includeIn/excludeFrom. In those cases, the instances are
created by MXMLDataInterpreter just like other MXML tags, but may not be
added to the DOM until much later, or removed and re-added as states
change.
I
this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59983.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
basic test case where I added a MDL button to one GridCell after a button
click:
https://kobra.io/#/e/-KeE-9-OM5UGpVORDPwt
Thanks!
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59982.html
Sent from the Apache F
/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59981.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
bin-release" version?
I did a small test by adding a button the way constructor demands it; it
does well in "bin-debug" version though but "bin-release".
Thanks!
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dyna
:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59979.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
fields etc. and want to add that component at runtime, I shall basically
needs to set "isDynamic=true" to every components in it, is that right?
Thanks!
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p
> and in some
> situations, it might need to be the parent document's body if you are in
> an IFrame.
That’s not going to work unless there’s some way to create elements in the
outer document which we currently don’t have.
I think the simplest way to go about it, is to leave it as-is for now.
On 2/24/17, 3:00 AM, "Harbs" wrote:
>Having two discussions in one thread is confusing… ;-)
>
>I guess we could make a custom object, but I’m not sure what the point
>is. AIUI, the purpose of IPopUpHost is to support many levels of popups.
>Assuming we are right that
Having two discussions in one thread is confusing… ;-)
I guess we could make a custom object, but I’m not sure what the point is.
AIUI, the purpose of IPopUpHost is to support many levels of popups. Assuming
we are right that dialog must be attached to , the simplest way to handle
that is to
this Bead
UpgradeElement.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59848.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Do you want to know when a component has been added to the DOM or when the
page is considered loaded?
-Alex
On 2/23/17, 10:47 PM, "piotrz" wrote:
>Alex,
>
>Do you know about the event which can tell me when component has been
>loaded
>in DOM?
>
>I may try to use
Alex,
Do you know about the event which can tell me when component has been loaded
in DOM?
I may try to use that.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem
On 2/23/17, 12:12 AM, "Harbs" wrote:
>It could return the body, but the body is not an IPopUpHost and it does
>not have addElement().
>
>The element of an embedded app will not be the body, so addElement() to
>that will blow up if it needs to be added to the body.
This
FWIW, MXML cannot set constructor arguments. All components instantiated
via MXML must have no constructor arguments or optional constructor
arguments.
I still think the lifecycle should be able to tell you whether an addChild
is happening "dynamically" or not. Has that been explored and
to constructor to each component which will be
dynamic.
var textField:TextField = new TextField(true);
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59836.html
It could return the body, but the body is not an IPopUpHost and it does not
have addElement().
The element of an embedded app will not be the body, so addElement() to that
will blow up if it needs to be added to the body.
> On Feb 23, 2017, at 9:57 AM, Alex Harui wrote:
>
>
On 2/22/17, 11:18 PM, "Harbs" wrote:
>That’s not going to work for an embedded app because the body element can
>be outside the app completely.
What would it take to make it work? If we ask each parent if it is an
IPopUpHost and if it answers yes and it gives us an
That’s not going to work for an embedded app because the body element can be
outside the app completely.
> On Feb 23, 2017, at 9:01 AM, Alex Harui wrote:
>
>
>
> On 2/22/17, 9:49 AM, "Harbs" wrote:
>
>> It looks like my change works.
>>
>> I just
On 2/22/17, 9:49 AM, "Harbs" wrote:
>It looks like my change works.
>
>I just committed a change where instead of Dialog being added to
>Application, the Dialog HTML element is added to . I needed to
>manually call addedToParent() to make sure the children render, and it
Alex:
Replies below...
On 2/21/2017 22:20, Alex Harui wrote:
That said, we don't want the compiler generating code. Everything else
is converted to data structures so the framework can interpret the data
structures. The reason is mostly practical. It is scary for most folks to
change the
- let me know about concerns.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59795.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
It looks like my change works.
I just committed a change where instead of Dialog being added to Application,
the Dialog HTML element is added to . I needed to manually call
addedToParent() to make sure the children render, and it all seems to work. :-)
Harbs
> On Feb 22, 2017, at 5:24 PM,
> On Feb 22, 2017, at 6:08 PM, Alex Harui wrote:
>
>
>
> On 2/22/17, 7:24 AM, "Harbs" wrote:
>
>> So, this is going to be a problem.
>>
>> Right now Application is always attached to , but that is probably
>> going to change. A very common use case
On 2/22/17, 7:24 AM, "Harbs" wrote:
>So, this is going to be a problem.
>
>Right now Application is always attached to , but that is probably
>going to change. A very common use case of RIAs is embedded in web pages.
>In that case, the base element will not be unless
So, this is going to be a problem.
Right now Application is always attached to , but that is probably going
to change. A very common use case of RIAs is embedded in web pages. In that
case, the base element will not be unless it’s in an iframe. iframes are
not always a good solution. For
Hi Harbs
I asked here for the best way to reference tag from Dialog. I did
the actual implementation as a workaround since at that moment you
discussed it but no definite solution was opted. So considere it as a
temporal code.
If you see Dialog:
I just looked at that code for the first time.
I’m confused. Why are you attaching it to Application? Why not just add dialog
to ? I don’t see why you need a reference to Application at all.
Unless, of course the dialog should be centered in the application (which might
not be ).
> Maybe I'm missing some point..
>>
>> 2017-02-21 14:59 GMT+00:00 yishayw <yishayj...@hotmail.com>:
>>
>>> I agree. If you think this bead will be used very often you can create
>>>a
>>> subclass that bakes it in. ImageButton in Express is probab
eate a
subclass that bakes it in. ImageButton in Express is probably a good
example, though I would use StrandUtils to save some code lines.
--
View this message in context: http://apache-flex-
development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-
Problem-tp59595p59712.html
Sent from the Apache Flex Develo
component is created - logic will fire.
I will wait for others voice also...
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59733.html
Sent from the Apache Flex D
> If user set it we will add Bead appropriately.
>
> Is it more PAYG ?
>
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-
.
(of course I'm open for naming)
If user set it we will add Bead appropriately.
Is it more PAYG ?
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59726.html
Sent
add
anything but if not -> cbx.addBead(new UpgradeElement());
var span = new Span();
span.addBead(new UpgradeElement());
etc.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Ch
is message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59723.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
.
For example for RadioButton - ripple options wasn't work when I upgrade only
one part of RadioButton.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59722.html
Sent
at bakes it in. ImageButton in Express is probably a good
> example, though I would use StrandUtils to save some code lines.
>
>
>
> --
> View this message in context: http://apache-flex-development
> .247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59712.html
&
bably a good
> example, though I would use StrandUtils to save some code lines.
>
>
>
> --
> View this message in context: http://apache-flex-development
> .2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59712.html
> Sent from the Apache Flex Development mailin
lines.
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-
> Problem-tp59595p59712.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59712.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59711.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
OM, but you may
> want
> to keep an eye on "bin-release" version. The above code throws me exception
> as this:
>
> TypeError: document.defaultView.componentHandler.Cf is not a function
>
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-
Thanks!
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59708.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59694.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
.
Thanks!
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59692.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59688.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Sounds good, Piotr.
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59685.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59683.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
didn't tooltip but
other features seems good to my initial tests!
Thanks!
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59680.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
will
resolve soon.
Thanks!
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59672.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59669.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
when FlexJS adds component to the HTML, they
anyway get registered or maybe they don't need to be explicitly registered
to get called for 'componentHandler' codes.
Thanks.
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp5
Hi Om,
Thank you. I will give a try tomorrow and let you know!
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59662.html
Sent from the Apache Flex Development
Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-
> Problem-tp59595p59658.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59658.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
FWIW, one approach Peter and I often take is to start with the HTML that
you want to change, then write some JS to make it work. That way, no Flex
code is getting in your way. As Adobe employees we get to use Dreamweaver
for free so we use that, but I'm sure any other HTML/JS editor will work,
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59652.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59651.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
: https://paste.apache.org/WLPu
[3] Script: https://paste.apache.org/B2Qr
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59649.html
Sent from the Apache Flex
Carlos,
I will try to explore it, your focus on AMF is crucial. :)
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59636.html
Sent from the Apache Flex
this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-
> Problem-tp59595p59620.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopi
/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59620.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
ounds can be called /after/ adding the component to HTML
stage.
--
View this message in context:
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59618.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
On 2/17/17, 7:51 AM, "Josh Tynjala" wrote:
>I used in MDL in a JS project recently, and I found that if I created MDL
>components after the initial page load, I needed to run the following code
>once they were added to the DOM:
>
>if("componentHandler" in window)
>{
>
ld creation
> in
> > MDL structure.
> >
> > I've reported this to JIRA at:
> > https://issues.apache.org/jira/browse/FLEX-35269.
> >
> > Request to look into this once.
> >
> > Thanks!
> >
> >
> >
> > --
> > View this m
-development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59611.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
to JIRA at:
> https://issues.apache.org/jira/browse/FLEX-35269.
>
> Request to look into this once.
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Dynamic-Child-
> Problem-tp59595
.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
90 matches
Mail list logo