You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Pan Li <Pa...@Prominic.NET> on 2016/10/08 09:15:24 UTC
[FlexJS] DateChooser in FlexJS 0.7 fails in swf mode, doesn't render
correctly in javascript mode
Hi everyone!
DateChooser control fails to me in FlexJS 0.7 in swf mode:
the problem can be reproduced with only two lines of code (There were
longer code but I removed not relevant codes to demonstrate the problem I
have)
-----------------
<js:DateChooser id="ddd"/>
<js:Label id="lbl" text="Hello World" width="200" />
-----------------
it pops error when starting the application in swf mode:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at org.apache.flex.html.beads::DateChooserView/set strand()[c:\Jenkins
\workspace\flex-asjs\frameworks\projects\HTML\src\main\flex\org\apache\flex
\html\beads\DateChooserView.as:71]
at org.apache.flex.core::UIBase/addBead()[c:\Jenkins\workspace
\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
\UIBase.as:1028]
at org.apache.flex.core::UIBase/addedToParent()[c:\Jenkins\workspace
\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
\UIBase.as:1319]
at org.apache.flex.core::UIBase/addElement()[c:\Jenkins\workspace
\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
\UIBase.as:1093]
....... (many others)
the exactly same code can start in javascript mode of FlexJS, but the date
chooser doesn't render perfectly, there are some random gaps between some
of the cells of "day".
I had seen similar issues in earlier FlexJS 0.6 using DateChooser control.
Thank you
Pan Li
My Apache Flex community contribution is working on the open source
Moonshine-IDE.com for FlexJS.
Re: [FlexJS] DateChooser in FlexJS 0.7 fails in swf mode, doesn't
render correctly in javascript mode
Posted by Peter Ent <pe...@adobe.com>.
I'm looking into it this morning.
Regards,
Peter Ent
Adobe Systems/Apache Flex Project
On 10/8/16, 5:15 AM, "Pan Li" <Pa...@Prominic.NET> wrote:
>
>
>Hi everyone!
>
>DateChooser control fails to me in FlexJS 0.7 in swf mode:
>the problem can be reproduced with only two lines of code (There were
>longer code but I removed not relevant codes to demonstrate the problem I
>have)
>-----------------
><js:DateChooser id="ddd"/>
>
><js:Label id="lbl" text="Hello World" width="200" />
>-----------------
>
>it pops error when starting the application in swf mode:
>TypeError: Error #1007: Instantiation attempted on a non-constructor.
> at org.apache.flex.html.beads::DateChooserView/set strand()[c:\Jenkins
>\workspace\flex-asjs\frameworks\projects\HTML\src\main\flex\org\apache\fle
>x
>\html\beads\DateChooserView.as:71]
> at org.apache.flex.core::UIBase/addBead()[c:\Jenkins\workspace
>\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
>\UIBase.as:1028]
> at org.apache.flex.core::UIBase/addedToParent()[c:\Jenkins\workspace
>\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
>\UIBase.as:1319]
> at org.apache.flex.core::UIBase/addElement()[c:\Jenkins\workspace
>\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
>\UIBase.as:1093]
>....... (many others)
>
>
>the exactly same code can start in javascript mode of FlexJS, but the date
>chooser doesn't render perfectly, there are some random gaps between some
>of the cells of "day".
>
>I had seen similar issues in earlier FlexJS 0.6 using DateChooser control.
>
>
>
>Thank you
>
>Pan Li
>My Apache Flex community contribution is working on the open source
>Moonshine-IDE.com for FlexJS.
Re: [FlexJS] DateChooser in FlexJS 0.7 fails in swf mode, doesn't
render correctly in javascript mode
Posted by santanu4ver <sa...@gmail.com>.
Alex Harui wrote
> I don't think we've even discussed a date. What would you want to see in
> the release and when?
The present nightly build probably has many other fixes other than one
discussed here. We're planning the use of FlexJS in real-life project and
for which we'll probably wants to depend on a stable release than a nightly
build. Since nightly build may has many other changes/fixes, we were
wondering if Apache can suggests us with any possible time by when we can
expect next stable release.
Santanu
My Apache Flex community contribution is working on the open source
Moonshine-IDE.com for FlexJS.
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-DateChooser-in-FlexJS-0-7-fails-in-swf-mode-doesn-t-render-correctly-in-javascript-mode-tp55675p56751.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] DateChooser in FlexJS 0.7 fails in swf mode, doesn't
render correctly in javascript mode
Posted by Alex Harui <ah...@adobe.com>.
On 11/24/16, 8:11 PM, "santanu4ver" <sa...@gmail.com> wrote:
>Peter Ent wrote
>> Please take a new nightly build which should include this fix.
>
>Can you give us a rough assumption by when we can expect 0.8.0 release?
I don't think we've even discussed a date. What would you want to see in
the release and when?
-Alex
Re: [FlexJS] DateChooser in FlexJS 0.7 fails in swf mode, doesn't
render correctly in javascript mode
Posted by santanu4ver <sa...@gmail.com>.
Peter Ent wrote
> Please take a new nightly build which should include this fix.
Can you give us a rough assumption by when we can expect 0.8.0 release?
Santanu
My Apache Flex community contribution is working on the open source
Moonshine-IDE.com for FlexJS.
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-DateChooser-in-FlexJS-0-7-fails-in-swf-mode-doesn-t-render-correctly-in-javascript-mode-tp55675p56716.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] DateChooser in FlexJS 0.7 fails in swf mode, doesn't
render correctly in javascript mode
Posted by Peter Ent <pe...@adobe.com>.
I've committed a fix to DateChooser. The problem was that DateChooser was
looking for background and border beads on the SWF side which were not
defined in the defaults.css. Further, had those beads been defined,
DateChooser would not have used them correctly.
Please take a new nightly build which should include this fix. If you want
to include background on the DateChooser, do it this way:
.MyDateChooser {
background-color: #CFCFCF;
}
@media -flex-flash
{
.MyDateChooser {
iBackgroundBead:
ClassReference("org.apache.flex.html.beads.SolidBackgroundBead");
}
}
‹peter
On 10/8/16, 5:15 AM, "Pan Li" <Pa...@Prominic.NET> wrote:
>
>
>Hi everyone!
>
>DateChooser control fails to me in FlexJS 0.7 in swf mode:
>the problem can be reproduced with only two lines of code (There were
>longer code but I removed not relevant codes to demonstrate the problem I
>have)
>-----------------
><js:DateChooser id="ddd"/>
>
><js:Label id="lbl" text="Hello World" width="200" />
>-----------------
>
>it pops error when starting the application in swf mode:
>TypeError: Error #1007: Instantiation attempted on a non-constructor.
> at org.apache.flex.html.beads::DateChooserView/set strand()[c:\Jenkins
>\workspace\flex-asjs\frameworks\projects\HTML\src\main\flex\org\apache\fle
>x
>\html\beads\DateChooserView.as:71]
> at org.apache.flex.core::UIBase/addBead()[c:\Jenkins\workspace
>\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
>\UIBase.as:1028]
> at org.apache.flex.core::UIBase/addedToParent()[c:\Jenkins\workspace
>\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
>\UIBase.as:1319]
> at org.apache.flex.core::UIBase/addElement()[c:\Jenkins\workspace
>\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core
>\UIBase.as:1093]
>....... (many others)
>
>
>the exactly same code can start in javascript mode of FlexJS, but the date
>chooser doesn't render perfectly, there are some random gaps between some
>of the cells of "day".
>
>I had seen similar issues in earlier FlexJS 0.6 using DateChooser control.
>
>
>
>Thank you
>
>Pan Li
>My Apache Flex community contribution is working on the open source
>Moonshine-IDE.com for FlexJS.