You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by OmPrakash Muppirala <bi...@gmail.com> on 2013/10/03 01:55:57 UTC
Re: [FlexJS] IFlexInfo
On Thu, Sep 26, 2013 at 6:17 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 9/25/13 11:57 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
> >On Wed, Sep 25, 2013 at 8:41 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> Turns out there is a bug in the Falcon code that the search for
> >>IFlexInfo
> >> only is in the baseclass and not deeper.
> >>
> >> JQuery's app does not directly implement IFlexInfo. Adding that is
> >> probably the cheapest workaround for you.
> >
> >
> >Awesome, thanks for looking into this. So, what exactly should the get
> >info() method look like? I dont see an example anywhere.
> org.apache.flex.core.Application defines this stub:
>
> public function get info():Object
> {
> return {};
> }
>
> The compiler overrides it to return an object with some properties in it.
> I don't believe we've documented what goes in it. You shouldn't need to
> know that to get the jQuery_Sample to run, just add "implements IFlexInfo"
> to the jQuery Application class.
>
>
> The contents of the info() structure have changed from release to release,
> and FlexJS currently ignores most of it (RSLs, ResourceBundle list etc).
> You can see it by using -keep with MXMLC. Falcon doesn't support -keep.
>
> HTH,
> -Alex
>
>
Hi,
I am still trying to get the jQuery_Sample app to run. I added 'implements
IFlexInfo' to the jquery application class. Now I am getting this error:
=====================================================================================================================
13 beads
5 beads
8 id
11 beads
14 _id
[SWF]
C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\FlexJSTest_jquery\bin-debug\jQuerySample_flexjs.swf
- 74,377 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCSSValuesImpl.as:237]
at org.apache.flex.core::UIBase/get
model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:173]
at org.apache.flex.html.staticControls::Label/set
text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\html\staticControls\Label.as:46]
at org.apache.flex.binding::SimpleBinding/set
strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\binding\SimpleBinding.as:51]
at
org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:153]
at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:224]
at
org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
at
org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:133]
at
org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:63]
=====================================================================================================================
It seems like the iBeadModel property is not available in the Label
instance. I see that in defaults.css, we do set IBeadModel, though:
Label
{
width: 95;
height: 18;
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
iMeasurementBead:
ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMeasurementBead");
}
I did spend quite a bit of time figuring out why it is not being set. Any
idea what is going on here?
Also, there seems to be an inconsistent usage of "iSomething" vs.
"ISomething" throughout the codebase. Could that be causing these issues?
Maybe we should standardize on one naming convention.
Thanks,
Om
Re: [FlexJS] IFlexInfo
Posted by Peter Ent <pe...@adobe.com>.
I can confirm that the new FlexJSOverlay.zip does run the jQuerySample and
DataBindingTest.
--peter
On 10/11/13 6:30 PM, "Alex Harui" <ah...@adobe.com> wrote:
>I uploaded a new FlexJSOverlay.zip. It builds and runs the
>DataBindingTest and JQuerySample.
>
>I discovered that if you don't specify the compiler argument
>-compiler.mxml.children-as-data you will also get the model error, but
>that argument should be baked into the external tool configurations.
>
>-Alex
>________________________________________
>From: Alex Harui [aharui@adobe.com]
>Sent: Thursday, October 10, 2013 11:17 AM
>To: dev@flex.apache.org
>Subject: Re: [FlexJS] IFlexInfo
>
>Hmm, looks like something broke in the current overlay's compiler. I'll
>try to get everything re-synced and publish a new overlay after I finish
>up on some of these SDK mustella failures.
>
>-Alex
>
>On 10/9/13 12:22 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
>>I am trying to build out a Dojo based component set (like jquery,
>>createjs,
>>etc.) Which is why getting the jquery based app running is crucial for
>>me.
>>
>>Are you sure you haven't made changes to the example code?
>>
>>Or, perhaps you publish a new overlay zip? I am not sure if you have
>>been
>>pushing new builds.
>>
>>Thanks,
>>Om
>>
>>
>>On Wed, Oct 9, 2013 at 12:12 PM, Alex Harui <ah...@adobe.com> wrote:
>>
>>> Om,
>>>
>>> It ran for me, so I don't know what else to fix. I'm thinking you have
>>> some sort of config problem. What does the console output look like?
>>> Maybe there's a clue in there.
>>>
>>> Peter and I are using the DataBindingTest app that doesn't use JQuery.
>>> I'm not sure what your goal is and whether JQuery is required or not,
>>>but
>>> you might want to work with DataBindingTest if you can.
>>>
>>> -Alex
>>> ________________________________________
>>> From: omuppi1@gmail.com [omuppi1@gmail.com] On Behalf Of OmPrakash
>>> Muppirala [bigosmallm@gmail.com]
>>> Sent: Wednesday, October 09, 2013 11:48 AM
>>> To: dev@flex.apache.org
>>> Subject: Re: [FlexJS] IFlexInfo
>>>
>>> Bump...
>>>
>>> Alex/Peter, if you can take some time to fix the jquery example app
>>>that
>>> would be great. Or, if you want me to switch to any other app for
>>> reference, please advice.
>>>
>>> Thanks,
>>> Om
>>>
>>>
>>> On Thu, Oct 3, 2013 at 4:01 PM, OmPrakash Muppirala
>>><bigosmallm@gmail.com
>>> >wrote:
>>>
>>> > On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
>>> >
>>> >> My defaults CSS is pasted below. Label's type selector has an
>>> IBeadModel.
>>> >> I could be out of date though, but it wouldn't make sense for Label
>>>to
>>> >> not have an IBeadModel entry.
>>> >>
>>> >>
>>> > My defaults.css has the same identical entry for Label. Somehow that
>>> does
>>> > not seem to get populated.
>>> >
>>> > Thanks,
>>> > Om
>>> >
>>> >
>>> >> ------- defaults.css ----------
>>> >>
>>> >> /*
>>> >> *
>>> >> * Licensed to the Apache Software Foundation (ASF) under one or
>>>more
>>> >> * contributor license agreements. See the NOTICE file distributed
>>> with
>>> >> * this work for additional information regarding copyright
>>>ownership.
>>> >> * The ASF licenses this file to You under the Apache License,
>>>Version
>>> >> 2.0
>>> >> * (the "License"); you may not use this file except in compliance
>>>with
>>> >> * the License. You may obtain a copy of the License at
>>> >> *
>>> >> * http://www.apache.org/licenses/LICENSE-2.0
>>> >> *
>>> >> * Unless required by applicable law or agreed to in writing,
>>>software
>>> >> * distributed under the License is distributed on an "AS IS"
>>>BASIS,
>>> >> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>> >> implied.
>>> >> * See the License for the specific language governing permissions
>>>and
>>> >> * limitations under the License.
>>> >> *
>>> >> */
>>> >>
>>> >> @namespace "library://ns.apache.org/flexjs/basic";
>>> >> @namespace h5 "library://ns.apache.org/flexjs/html5";
>>> >> @namespace jq "library://ns.apache.org/flexjs/jquery";
>>> >> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>>> >>
>>> >> /* Global style declaration */
>>> >> *
>>> >> {
>>> >> font-family: "Arial";
>>> >> font-size: 12px;
>>> >> }
>>> >>
>>> >> Button
>>> >> {
>>> >> background-color: #d8d8d8;
>>> >> border: 1px solid #000000;
>>> >> padding: 4px;
>>> >> }
>>> >>
>>> >> Button:hover
>>> >> {
>>> >> background-color: #9fa0a1;
>>> >> border: 1px solid #000000;
>>> >> padding: 4px;
>>> >> }
>>> >>
>>> >> Button:active
>>> >> {
>>> >> background-color: #929496;
>>> >> border: 1px solid #000000;
>>> >> padding: 4px;
>>> >> }
>>> >>
>>> >> @media -flex-flash
>>> >> {
>>> >>
>>> >> /* Global style declaration */
>>> >> global
>>> >> {
>>> >> IStatesImpl:
>>> ClassReference("org.apache.flex.core.SimpleStatesImpl");
>>> >> }
>>> >>
>>> >> Alert
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.AlertMo
>>>d
>>>el
>>> >> ");
>>> >> IBeadView:
>>> >>
>>>ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Al
>>>e
>>>rt
>>> >> Controller");
>>> >> iBackgroundBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroun
>>>d
>>>Be
>>> >> ad");
>>> >> iBorderBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBord
>>>e
>>>rB
>>> >> ead");
>>> >>
>>> >> background-color: #FFFFFF;
>>> >> border-style: solid;
>>> >> border-color: #000000;
>>> >> border-thickness: 1;
>>> >> }
>>> >>
>>> >> CheckBox
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleB
>>>u
>>>tt
>>> >> onModel");
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView")
>>>;
>>> >>
>>> >> }
>>> >>
>>> >> ComboBox
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBo
>>>x
>>>Mo
>>> >> del");
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView")
>>>;
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Co
>>>m
>>>bo
>>> >> BoxController");
>>> >> IPopUp:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropD
>>>o
>>>wn
>>> >> ListList");
>>> >> }
>>> >>
>>> >> Container
>>> >> {
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.ContainerView"
>>>)
>>> >> }
>>> >>
>>> >> ControlBar
>>> >> {
>>> >> IBeadLayout:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVir
>>>t
>>>ua
>>> >> lHorizontalLayout");
>>> >> iMeasurementBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeas
>>>u
>>>re
>>> >> mentBead");
>>> >> iBackgroundBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroun
>>>d
>>>Be
>>> >> ad");
>>> >> iBorderBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBord
>>>e
>>>rB
>>> >> ead");
>>> >>
>>> >> background-color: #CECECE;
>>> >> border-style: solid;
>>> >> border-color: #000000;
>>> >> border-thickness: 1;
>>> >> }
>>> >>
>>> >> DropDownList
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySe
>>>l
>>>ec
>>> >> tionModel");
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.DropDownListVi
>>>e
>>>w"
>>> >> );
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Dr
>>>o
>>>pD
>>> >> ownListController");
>>> >> IPopUp:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropD
>>>o
>>>wn
>>> >> ListList");
>>> >> }
>>> >>
>>> >> DropDownListList
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySe
>>>l
>>>ec
>>> >> tionModel");
>>> >> }
>>> >>
>>> >> Label
>>> >> {
>>> >> width: 95;
>>> >> height: 18;
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMod
>>>e
>>>l"
>>> >> );
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView"
>>>)
>>>;
>>> >> iMeasurementBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabel
>>>M
>>>ea
>>> >> surementBead");
>>> >> }
>>> >>
>>> >> List
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySe
>>>l
>>>ec
>>> >> tionModel");
>>> >> IBeadView:
>>> >>
>>>ClassReference("org.apache.flex.html.staticControls.beads.ListView");
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Li
>>>s
>>>tS
>>> >> ingleSelectionMouseController");
>>> >> IBeadLayout:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVir
>>>t
>>>ua
>>> >> lVerticalScrollingLayout");
>>> >> IDataProviderItemRendererMapper:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextItemRender
>>>e
>>>rF
>>> >> actoryForArrayData");
>>> >> IItemRendererClassFactory:
>>> >> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
>>> >> IItemRenderer:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.supportClasses.TextF
>>>i
>>>el
>>> >> dItemRenderer");
>>> >> }
>>> >>
>>> >> NumericStepper
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMo
>>>d
>>>el
>>> >> ");
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.NumericStepper
>>>V
>>>ie
>>> >> w");
>>> >>
>>> >> padding: 0px;
>>> >> border-style: solid;
>>> >> border-color: #000000;
>>> >> border-thickness: 1;
>>> >> background-color: #FFFFFF;
>>> >> iBorderBead:
>>> >>
>>> >>
>>>
>>>ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBord
>>>e
>>>rB
>>> >> ead');
>>> >> iBackgroundBead:
>>> >>
>>> >>
>>>
>>>ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroun
>>>d
>>>Be
>>> >> ad');
>>> >> }
>>> >>
>>> >> Panel
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.PanelMo
>>>d
>>>el
>>> >> ");
>>> >> IBeadView:
>>> >>
>>>ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
>>> >> iBorderBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBord
>>>e
>>>rB
>>> >> ead");
>>> >> iBackgroundBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroun
>>>d
>>>Be
>>> >> ad");
>>> >>
>>> >> background-color: #FFFFFF;
>>> >> border-style: solid;
>>> >> border-color: #000000;
>>> >> border-thickness: 1;
>>> >> }
>>> >>
>>> >> RadioButton
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTo
>>>g
>>>gl
>>> >> eButtonModel");
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonVie
>>>w
>>>")
>>> >> ;
>>> >> }
>>> >>
>>> >> ScrollBar
>>> >> {
>>> >> IBeadLayout:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrol
>>>l
>>>Ba
>>> >> rLayout");
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollB
>>>a
>>>rM
>>> >> odel");
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView"
>>>)
>>>;
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.VS
>>>c
>>>ro
>>> >> llBarMouseController");
>>> >> }
>>> >>
>>> >> SimpleAlert
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.AlertMo
>>>d
>>>el
>>> >> ");
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertVie
>>>w
>>>")
>>> >> ;
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Al
>>>e
>>>rt
>>> >> Controller");
>>> >> iBorderBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBord
>>>e
>>>rB
>>> >> ead");
>>> >> iBackgroundBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroun
>>>d
>>>Be
>>> >> ad");
>>> >>
>>> >> background-color: #FFFFFF;
>>> >> border-style: solid;
>>> >> border-color: #000000;
>>> >> border-thickness: 1;
>>> >> }
>>> >>
>>> >> Slider
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMo
>>>d
>>>el
>>> >> ");
>>> >> iBeadView:
>>> >>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
>>> >> iBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Sl
>>>i
>>>de
>>> >> rMouseController");
>>> >> iThumbView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbVie
>>>w
>>>")
>>> >> ;
>>> >> iTrackView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackVie
>>>w
>>>")
>>> >> ;
>>> >> }
>>> >>
>>> >> Spinner
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMo
>>>d
>>>el
>>> >> ");
>>> >> IBeadView:
>>> >>
>>>ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Sp
>>>i
>>>nn
>>> >> erMouseController");
>>> >> }
>>> >>
>>> >> TextArea
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMod
>>>e
>>>l"
>>> >> );
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView")
>>>;
>>> >> width: 135;
>>> >> height: 20;
>>> >> }
>>> >>
>>> >> TextButton
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMod
>>>e
>>>l"
>>> >> );
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonV
>>>i
>>>ew
>>> >> ");
>>> >> iMeasurementBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeas
>>>u
>>>re
>>> >> mentBead");
>>> >> }
>>> >>
>>> >> TextFieldItemRenderer
>>> >> {
>>> >> IBeadController:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.It
>>>e
>>>mR
>>> >> endererMouseController");
>>> >> height: 16;
>>> >> }
>>> >>
>>> >> TextInput
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMod
>>>e
>>>l"
>>> >> );
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithB
>>>o
>>>rd
>>> >> erView");
>>> >> width: 135;
>>> >> height: 20;
>>> >> }
>>> >>
>>> >> TitleBar
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBa
>>>r
>>>Mo
>>> >> del");
>>> >> IBeadLayout:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVir
>>>t
>>>ua
>>> >> lHorizontalLayout");
>>> >> iMeasurementBead:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasur
>>>e
>>>me
>>> >> ntBead");
>>> >> }
>>> >>
>>> >> /* HTML5 */
>>> >>
>>> >> h5|TextButton
>>> >> {
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonV
>>>i
>>>ew
>>> >> ");
>>> >> }
>>> >>
>>> >> h5|TextInput
>>> >> {
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithB
>>>o
>>>rd
>>> >> erView");
>>> >> }
>>> >>
>>> >> h5|CheckBox
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleB
>>>u
>>>tt
>>> >> onModel");
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView")
>>>;
>>> >>
>>> >> }
>>> >>
>>> >> h5|RadioButton
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTo
>>>g
>>>gl
>>> >> eButtonModel");
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonVie
>>>w
>>>")
>>> >> ;
>>> >> }
>>> >>
>>> >> h5|List
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySe
>>>l
>>>ec
>>> >> tionModel");
>>> >> }
>>> >>
>>> >> h5|DropDownList
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySe
>>>l
>>>ec
>>> >> tionModel");
>>> >> IPopUp:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropD
>>>o
>>>wn
>>> >> ListList");
>>> >> }
>>> >>
>>> >> h5|ComboBox
>>> >> {
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView")
>>>;
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBo
>>>x
>>>Mo
>>> >> del");
>>> >> IPopUp:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropD
>>>o
>>>wn
>>> >> ListList");
>>> >> }
>>> >>
>>> >> /* jQuery */
>>> >>
>>> >> jq|TextButton
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMod
>>>e
>>>l"
>>> >> );
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView
>>>"
>>>);
>>> >> }
>>> >>
>>> >>
>>> >> jq|CheckBox
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleB
>>>u
>>>tt
>>> >> onModel");
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView")
>>>;
>>> >>
>>> >> }
>>> >>
>>> >> jq|RadioButton
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTo
>>>g
>>>gl
>>> >> eButtonModel");
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonVie
>>>w
>>>")
>>> >> ;
>>> >> }
>>> >>
>>> >> /* createjs */
>>> >>
>>> >> createjs|TextButton
>>> >> {
>>> >> IBeadModel:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMod
>>>e
>>>l"
>>> >> );
>>> >> IBeadView:
>>> >>
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView
>>>"
>>>);
>>> >> }
>>> >>
>>> >> createjs|CheckBox
>>> >> {
>>> >> IBeadView:
>>> >>
>>>
>>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView")
>>>;
>>> >> }
>>> >>
>>> >> }
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>>> wrote:
>>> >>
>>> >> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com>
>>>wrote:
>>> >> >
>>> >> >>
>>> >> >>
>>> >> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>>> >> wrote:
>>> >> >> >
>>> >> >> >I am still trying to get the jQuery_Sample app to run. I added
>>> >> >> >'implements
>>> >> >> >IFlexInfo' to the jquery application class.
>>> >> >> > at
>>> >> >>
>>> >>
>>> >>
>>>
>>>>>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\wor
>>>>>>k
>>>>>>sp
>>> >> >>>ac
>>> >> >>
>>> >>
>>> >>
>>>
>>>>>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Simpl
>>>>>>e
>>>>>>CS
>>> >> >>>SV
>>> >> >> >aluesImpl.as:237]
>>> >> >>
>>> >>
>>> >>
>>>
>>>>>>=====================================================================
>>>>>>=
>>>>>>==
>>> >> >>>==
>>> >> >> >===========================================
>>> >> >> >
>>> >> >> >It seems like the iBeadModel property is not available in the
>>>Label
>>> >> >> >instance. I see that in defaults.css, we do set IBeadModel,
>>>though:
>>> >> >> >
>>> >> >> >I did spend quite a bit of time figuring out why it is not being
>>> set.
>>> >> >>Any
>>> >> >> >idea what is going on here?
>>> >> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
>>> >> >>selector.
>>> >> >> I have one in my copy of defaults.css but I'm not synced up. For
>>> sure,
>>> >> >> there should be a null check there so that's a bug.
>>> >> >>
>>> >> >>
>>> >> >I added the null checks - will check it in soon. But the real
>>>problem
>>> is
>>> >> >that no such value exists in global or in * So, at the end a null
>>>is
>>> >> >returned by the getValue() function and it fails like this:
>>> >> >
>>> >> >TypeError: Error #1007: Instantiation attempted on a
>>>non-constructor.
>>> >> > at org.apache.flex.core::UIBase/get
>>> >>
>>> >>
>>>
>>>>model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src
>>>>\
>>>>or
>>> >> >g\apache\flex\core\UIBase.as:173]
>>> >> > at org.apache.flex.html.staticControls::Label/set
>>> >>
>>> >>
>>>
>>>>text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\
>>>>o
>>>>rg
>>> >> >\apache\flex\html\staticControls\Label.as:46]
>>> >> > at org.apache.flex.binding::SimpleBinding/set
>>> >>
>>> >>
>>>
>>>>strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\sr
>>>>c
>>>>\o
>>> >> >rg\apache\flex\binding\SimpleBinding.as:51]
>>> >> > at
>>> >>
>>> >>
>>>
>>>>org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\
>>>>g
>>>>it
>>> >> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
>>> >> > at
>>> >>
>>> >>
>>>
>>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\fl
>>>>e
>>>>x_
>>> >>
>>> >>
>>>
>>>>os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\u
>>>>t
>>>>il
>>> >> >s\MXMLDataInterpreter.as:153]
>>> >> > at
>>> >>
>>> >>
>>>
>>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\
>>>>p
>>>>\f
>>> >>
>>> >>
>>>
>>>>lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\fl
>>>>e
>>>>x\
>>> >> >utils\MXMLDataInterpreter.as:224]
>>> >> > at
>>> >>
>>> >>
>>>
>>>>org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\f
>>>>l
>>>>ex
>>> >>
>>>
>>>>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:4
>>>>3
>>>>]
>>> >> > at
>>> >>
>>> >>
>>>
>>>>org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\f
>>>>l
>>>>ex
>>> >>
>>> >>
>>>
>>>>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.a
>>>>s
>>>>:1
>>> >> >33]
>>> >> > at
>>> >>
>>> >>
>>>
>>>>org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\
>>>>f
>>>>le
>>> >>
>>> >>
>>>
>>>>xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.
>>>>a
>>>>s:
>>> >> >63]
>>> >> >
>>> >> >
>>> >> >
>>> >> >> >
>>> >> >> >Also, there seems to be an inconsistent usage of "iSomething"
>>>vs.
>>> >> >> >"ISomething" throughout the codebase. Could that be causing
>>>these
>>> >> >>issues?
>>> >> >> >Maybe we should standardize on one naming convention.
>>> >> >> Yeah, that needs to be ironed out. I was planning on waiting
>>>until I
>>> >> >>see
>>> >> >> what it takes to get custom CSS styles to work on the JS side.
>>>There
>>> >> >>was
>>> >> >> some code somewhere that was automatically changing the capital
>>>"I"
>>> to
>>> >> >> small "i" and so we had to use small "i" in the code, at least
>>>for
>>> now.
>>> >> >>
>>> >> >
>>> >> >Do you have an idea where this piece of code could be in? I can
>>>take a
>>> >> >shot at fixing this.
>>> >> >
>>> >> >
>>> >> >>
>>> >> >> -Alex
>>> >> >>
>>> >> >>
>>> >>
>>> >>
>>> >
>>>
>
RE: [FlexJS] IFlexInfo
Posted by Alex Harui <ah...@adobe.com>.
I uploaded a new FlexJSOverlay.zip. It builds and runs the DataBindingTest and JQuerySample.
I discovered that if you don't specify the compiler argument -compiler.mxml.children-as-data you will also get the model error, but that argument should be baked into the external tool configurations.
-Alex
________________________________________
From: Alex Harui [aharui@adobe.com]
Sent: Thursday, October 10, 2013 11:17 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] IFlexInfo
Hmm, looks like something broke in the current overlay's compiler. I'll
try to get everything re-synced and publish a new overlay after I finish
up on some of these SDK mustella failures.
-Alex
On 10/9/13 12:22 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>I am trying to build out a Dojo based component set (like jquery,
>createjs,
>etc.) Which is why getting the jquery based app running is crucial for
>me.
>
>Are you sure you haven't made changes to the example code?
>
>Or, perhaps you publish a new overlay zip? I am not sure if you have been
>pushing new builds.
>
>Thanks,
>Om
>
>
>On Wed, Oct 9, 2013 at 12:12 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> Om,
>>
>> It ran for me, so I don't know what else to fix. I'm thinking you have
>> some sort of config problem. What does the console output look like?
>> Maybe there's a clue in there.
>>
>> Peter and I are using the DataBindingTest app that doesn't use JQuery.
>> I'm not sure what your goal is and whether JQuery is required or not,
>>but
>> you might want to work with DataBindingTest if you can.
>>
>> -Alex
>> ________________________________________
>> From: omuppi1@gmail.com [omuppi1@gmail.com] On Behalf Of OmPrakash
>> Muppirala [bigosmallm@gmail.com]
>> Sent: Wednesday, October 09, 2013 11:48 AM
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] IFlexInfo
>>
>> Bump...
>>
>> Alex/Peter, if you can take some time to fix the jquery example app that
>> would be great. Or, if you want me to switch to any other app for
>> reference, please advice.
>>
>> Thanks,
>> Om
>>
>>
>> On Thu, Oct 3, 2013 at 4:01 PM, OmPrakash Muppirala
>><bigosmallm@gmail.com
>> >wrote:
>>
>> > On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >> My defaults CSS is pasted below. Label's type selector has an
>> IBeadModel.
>> >> I could be out of date though, but it wouldn't make sense for Label
>>to
>> >> not have an IBeadModel entry.
>> >>
>> >>
>> > My defaults.css has the same identical entry for Label. Somehow that
>> does
>> > not seem to get populated.
>> >
>> > Thanks,
>> > Om
>> >
>> >
>> >> ------- defaults.css ----------
>> >>
>> >> /*
>> >> *
>> >> * Licensed to the Apache Software Foundation (ASF) under one or
>>more
>> >> * contributor license agreements. See the NOTICE file distributed
>> with
>> >> * this work for additional information regarding copyright
>>ownership.
>> >> * The ASF licenses this file to You under the Apache License,
>>Version
>> >> 2.0
>> >> * (the "License"); you may not use this file except in compliance
>>with
>> >> * the License. You may obtain a copy of the License at
>> >> *
>> >> * http://www.apache.org/licenses/LICENSE-2.0
>> >> *
>> >> * Unless required by applicable law or agreed to in writing,
>>software
>> >> * distributed under the License is distributed on an "AS IS" BASIS,
>> >> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> >> implied.
>> >> * See the License for the specific language governing permissions
>>and
>> >> * limitations under the License.
>> >> *
>> >> */
>> >>
>> >> @namespace "library://ns.apache.org/flexjs/basic";
>> >> @namespace h5 "library://ns.apache.org/flexjs/html5";
>> >> @namespace jq "library://ns.apache.org/flexjs/jquery";
>> >> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>> >>
>> >> /* Global style declaration */
>> >> *
>> >> {
>> >> font-family: "Arial";
>> >> font-size: 12px;
>> >> }
>> >>
>> >> Button
>> >> {
>> >> background-color: #d8d8d8;
>> >> border: 1px solid #000000;
>> >> padding: 4px;
>> >> }
>> >>
>> >> Button:hover
>> >> {
>> >> background-color: #9fa0a1;
>> >> border: 1px solid #000000;
>> >> padding: 4px;
>> >> }
>> >>
>> >> Button:active
>> >> {
>> >> background-color: #929496;
>> >> border: 1px solid #000000;
>> >> padding: 4px;
>> >> }
>> >>
>> >> @media -flex-flash
>> >> {
>> >>
>> >> /* Global style declaration */
>> >> global
>> >> {
>> >> IStatesImpl:
>> ClassReference("org.apache.flex.core.SimpleStatesImpl");
>> >> }
>> >>
>> >> Alert
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.AlertMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Ale
>>rt
>> >> Controller");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >>
>> >> background-color: #FFFFFF;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> CheckBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleBu
>>tt
>> >> onModel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >>
>> >> }
>> >>
>> >> ComboBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBox
>>Mo
>> >> del");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Com
>>bo
>> >> BoxController");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> Container
>> >> {
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
>> >> }
>> >>
>> >> ControlBar
>> >> {
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirt
>>ua
>> >> lHorizontalLayout");
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasu
>>re
>> >> mentBead");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >>
>> >> background-color: #CECECE;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> DropDownList
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.DropDownListVie
>>w"
>> >> );
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Dro
>>pD
>> >> ownListController");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> DropDownListList
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> }
>> >>
>> >> Label
>> >> {
>> >> width: 95;
>> >> height: 18;
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView")
>>;
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelM
>>ea
>> >> surementBead");
>> >> }
>> >>
>> >> List
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> IBeadView:
>> >> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Lis
>>tS
>> >> ingleSelectionMouseController");
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirt
>>ua
>> >> lVerticalScrollingLayout");
>> >> IDataProviderItemRendererMapper:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendere
>>rF
>> >> actoryForArrayData");
>> >> IItemRendererClassFactory:
>> >> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
>> >> IItemRenderer:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFi
>>el
>> >> dItemRenderer");
>> >> }
>> >>
>> >> NumericStepper
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperV
>>ie
>> >> w");
>> >>
>> >> padding: 0px;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> background-color: #FFFFFF;
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead');
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference('org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad');
>> >> }
>> >>
>> >> Panel
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.PanelMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >>
>> >> background-color: #FFFFFF;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> RadioButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTog
>>gl
>> >> eButtonModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView
>>")
>> >> ;
>> >> }
>> >>
>> >> ScrollBar
>> >> {
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScroll
>>Ba
>> >> rLayout");
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBa
>>rM
>> >> odel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView")
>>;
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.VSc
>>ro
>> >> llBarMouseController");
>> >> }
>> >>
>> >> SimpleAlert
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.AlertMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView
>>")
>> >> ;
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Ale
>>rt
>> >> Controller");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >>
>> >> background-color: #FFFFFF;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> Slider
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMod
>>el
>> >> ");
>> >> iBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
>> >> iBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Sli
>>de
>> >> rMouseController");
>> >> iThumbView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView
>>")
>> >> ;
>> >> iTrackView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView
>>")
>> >> ;
>> >> }
>> >>
>> >> Spinner
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spi
>>nn
>> >> erMouseController");
>> >> }
>> >>
>> >> TextArea
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
>> >> width: 135;
>> >> height: 20;
>> >> }
>> >>
>> >> TextButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonVi
>>ew
>> >> ");
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasu
>>re
>> >> mentBead");
>> >> }
>> >>
>> >> TextFieldItemRenderer
>> >> {
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Ite
>>mR
>> >> endererMouseController");
>> >> height: 16;
>> >> }
>> >>
>> >> TextInput
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBo
>>rd
>> >> erView");
>> >> width: 135;
>> >> height: 20;
>> >> }
>> >>
>> >> TitleBar
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBar
>>Mo
>> >> del");
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirt
>>ua
>> >> lHorizontalLayout");
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasure
>>me
>> >> ntBead");
>> >> }
>> >>
>> >> /* HTML5 */
>> >>
>> >> h5|TextButton
>> >> {
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonVi
>>ew
>> >> ");
>> >> }
>> >>
>> >> h5|TextInput
>> >> {
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBo
>>rd
>> >> erView");
>> >> }
>> >>
>> >> h5|CheckBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleBu
>>tt
>> >> onModel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >>
>> >> }
>> >>
>> >> h5|RadioButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTog
>>gl
>> >> eButtonModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView
>>")
>> >> ;
>> >> }
>> >>
>> >> h5|List
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> }
>> >>
>> >> h5|DropDownList
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> h5|ComboBox
>> >> {
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBox
>>Mo
>> >> del");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> /* jQuery */
>> >>
>> >> jq|TextButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView"
>>);
>> >> }
>> >>
>> >>
>> >> jq|CheckBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleBu
>>tt
>> >> onModel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >>
>> >> }
>> >>
>> >> jq|RadioButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTog
>>gl
>> >> eButtonModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView
>>")
>> >> ;
>> >> }
>> >>
>> >> /* createjs */
>> >>
>> >> createjs|TextButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView"
>>);
>> >> }
>> >>
>> >> createjs|CheckBox
>> >> {
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >> }
>> >>
>> >> }
>> >>
>> >>
>> >>
>> >>
>> >> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> wrote:
>> >>
>> >> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
>> >> >
>> >> >>
>> >> >>
>> >> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> >> wrote:
>> >> >> >
>> >> >> >I am still trying to get the jQuery_Sample app to run. I added
>> >> >> >'implements
>> >> >> >IFlexInfo' to the jquery application class.
>> >> >> > at
>> >> >>
>> >>
>> >>
>>
>>>>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\work
>>>>>sp
>> >> >>>ac
>> >> >>
>> >>
>> >>
>>
>>>>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Simple
>>>>>CS
>> >> >>>SV
>> >> >> >aluesImpl.as:237]
>> >> >>
>> >>
>> >>
>>
>>>>>======================================================================
>>>>>==
>> >> >>>==
>> >> >> >===========================================
>> >> >> >
>> >> >> >It seems like the iBeadModel property is not available in the
>>Label
>> >> >> >instance. I see that in defaults.css, we do set IBeadModel,
>>though:
>> >> >> >
>> >> >> >I did spend quite a bit of time figuring out why it is not being
>> set.
>> >> >>Any
>> >> >> >idea what is going on here?
>> >> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
>> >> >>selector.
>> >> >> I have one in my copy of defaults.css but I'm not synced up. For
>> sure,
>> >> >> there should be a null check there so that's a bug.
>> >> >>
>> >> >>
>> >> >I added the null checks - will check it in soon. But the real
>>problem
>> is
>> >> >that no such value exists in global or in * So, at the end a null
>>is
>> >> >returned by the getValue() function and it fails like this:
>> >> >
>> >> >TypeError: Error #1007: Instantiation attempted on a
>>non-constructor.
>> >> > at org.apache.flex.core::UIBase/get
>> >>
>> >>
>>
>>>model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\
>>>or
>> >> >g\apache\flex\core\UIBase.as:173]
>> >> > at org.apache.flex.html.staticControls::Label/set
>> >>
>> >>
>>
>>>text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
>>>rg
>> >> >\apache\flex\html\staticControls\Label.as:46]
>> >> > at org.apache.flex.binding::SimpleBinding/set
>> >>
>> >>
>>
>>>strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src
>>>\o
>> >> >rg\apache\flex\binding\SimpleBinding.as:51]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\g
>>>it
>> >> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\fle
>>>x_
>> >>
>> >>
>>
>>>os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\ut
>>>il
>> >> >s\MXMLDataInterpreter.as:153]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p
>>>\f
>> >>
>> >>
>>
>>>lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\fle
>>>x\
>> >> >utils\MXMLDataInterpreter.as:224]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\fl
>>>ex
>> >>
>>
>>>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43
>>>]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\fl
>>>ex
>> >>
>> >>
>>
>>>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as
>>>:1
>> >> >33]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\f
>>>le
>> >>
>> >>
>>
>>>xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.a
>>>s:
>> >> >63]
>> >> >
>> >> >
>> >> >
>> >> >> >
>> >> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
>> >> >> >"ISomething" throughout the codebase. Could that be causing
>>these
>> >> >>issues?
>> >> >> >Maybe we should standardize on one naming convention.
>> >> >> Yeah, that needs to be ironed out. I was planning on waiting
>>until I
>> >> >>see
>> >> >> what it takes to get custom CSS styles to work on the JS side.
>>There
>> >> >>was
>> >> >> some code somewhere that was automatically changing the capital
>>"I"
>> to
>> >> >> small "i" and so we had to use small "i" in the code, at least for
>> now.
>> >> >>
>> >> >
>> >> >Do you have an idea where this piece of code could be in? I can
>>take a
>> >> >shot at fixing this.
>> >> >
>> >> >
>> >> >>
>> >> >> -Alex
>> >> >>
>> >> >>
>> >>
>> >>
>> >
>>
Re: [FlexJS] IFlexInfo
Posted by Alex Harui <ah...@adobe.com>.
Hmm, looks like something broke in the current overlay's compiler. I'll
try to get everything re-synced and publish a new overlay after I finish
up on some of these SDK mustella failures.
-Alex
On 10/9/13 12:22 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>I am trying to build out a Dojo based component set (like jquery,
>createjs,
>etc.) Which is why getting the jquery based app running is crucial for
>me.
>
>Are you sure you haven't made changes to the example code?
>
>Or, perhaps you publish a new overlay zip? I am not sure if you have been
>pushing new builds.
>
>Thanks,
>Om
>
>
>On Wed, Oct 9, 2013 at 12:12 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> Om,
>>
>> It ran for me, so I don't know what else to fix. I'm thinking you have
>> some sort of config problem. What does the console output look like?
>> Maybe there's a clue in there.
>>
>> Peter and I are using the DataBindingTest app that doesn't use JQuery.
>> I'm not sure what your goal is and whether JQuery is required or not,
>>but
>> you might want to work with DataBindingTest if you can.
>>
>> -Alex
>> ________________________________________
>> From: omuppi1@gmail.com [omuppi1@gmail.com] On Behalf Of OmPrakash
>> Muppirala [bigosmallm@gmail.com]
>> Sent: Wednesday, October 09, 2013 11:48 AM
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] IFlexInfo
>>
>> Bump...
>>
>> Alex/Peter, if you can take some time to fix the jquery example app that
>> would be great. Or, if you want me to switch to any other app for
>> reference, please advice.
>>
>> Thanks,
>> Om
>>
>>
>> On Thu, Oct 3, 2013 at 4:01 PM, OmPrakash Muppirala
>><bigosmallm@gmail.com
>> >wrote:
>>
>> > On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >> My defaults CSS is pasted below. Label's type selector has an
>> IBeadModel.
>> >> I could be out of date though, but it wouldn't make sense for Label
>>to
>> >> not have an IBeadModel entry.
>> >>
>> >>
>> > My defaults.css has the same identical entry for Label. Somehow that
>> does
>> > not seem to get populated.
>> >
>> > Thanks,
>> > Om
>> >
>> >
>> >> ------- defaults.css ----------
>> >>
>> >> /*
>> >> *
>> >> * Licensed to the Apache Software Foundation (ASF) under one or
>>more
>> >> * contributor license agreements. See the NOTICE file distributed
>> with
>> >> * this work for additional information regarding copyright
>>ownership.
>> >> * The ASF licenses this file to You under the Apache License,
>>Version
>> >> 2.0
>> >> * (the "License"); you may not use this file except in compliance
>>with
>> >> * the License. You may obtain a copy of the License at
>> >> *
>> >> * http://www.apache.org/licenses/LICENSE-2.0
>> >> *
>> >> * Unless required by applicable law or agreed to in writing,
>>software
>> >> * distributed under the License is distributed on an "AS IS" BASIS,
>> >> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> >> implied.
>> >> * See the License for the specific language governing permissions
>>and
>> >> * limitations under the License.
>> >> *
>> >> */
>> >>
>> >> @namespace "library://ns.apache.org/flexjs/basic";
>> >> @namespace h5 "library://ns.apache.org/flexjs/html5";
>> >> @namespace jq "library://ns.apache.org/flexjs/jquery";
>> >> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>> >>
>> >> /* Global style declaration */
>> >> *
>> >> {
>> >> font-family: "Arial";
>> >> font-size: 12px;
>> >> }
>> >>
>> >> Button
>> >> {
>> >> background-color: #d8d8d8;
>> >> border: 1px solid #000000;
>> >> padding: 4px;
>> >> }
>> >>
>> >> Button:hover
>> >> {
>> >> background-color: #9fa0a1;
>> >> border: 1px solid #000000;
>> >> padding: 4px;
>> >> }
>> >>
>> >> Button:active
>> >> {
>> >> background-color: #929496;
>> >> border: 1px solid #000000;
>> >> padding: 4px;
>> >> }
>> >>
>> >> @media -flex-flash
>> >> {
>> >>
>> >> /* Global style declaration */
>> >> global
>> >> {
>> >> IStatesImpl:
>> ClassReference("org.apache.flex.core.SimpleStatesImpl");
>> >> }
>> >>
>> >> Alert
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.AlertMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Ale
>>rt
>> >> Controller");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >>
>> >> background-color: #FFFFFF;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> CheckBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleBu
>>tt
>> >> onModel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >>
>> >> }
>> >>
>> >> ComboBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBox
>>Mo
>> >> del");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Com
>>bo
>> >> BoxController");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> Container
>> >> {
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
>> >> }
>> >>
>> >> ControlBar
>> >> {
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirt
>>ua
>> >> lHorizontalLayout");
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasu
>>re
>> >> mentBead");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >>
>> >> background-color: #CECECE;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> DropDownList
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.DropDownListVie
>>w"
>> >> );
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Dro
>>pD
>> >> ownListController");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> DropDownListList
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> }
>> >>
>> >> Label
>> >> {
>> >> width: 95;
>> >> height: 18;
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView")
>>;
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelM
>>ea
>> >> surementBead");
>> >> }
>> >>
>> >> List
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> IBeadView:
>> >> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Lis
>>tS
>> >> ingleSelectionMouseController");
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirt
>>ua
>> >> lVerticalScrollingLayout");
>> >> IDataProviderItemRendererMapper:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendere
>>rF
>> >> actoryForArrayData");
>> >> IItemRendererClassFactory:
>> >> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
>> >> IItemRenderer:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFi
>>el
>> >> dItemRenderer");
>> >> }
>> >>
>> >> NumericStepper
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperV
>>ie
>> >> w");
>> >>
>> >> padding: 0px;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> background-color: #FFFFFF;
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead');
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference('org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad');
>> >> }
>> >>
>> >> Panel
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.PanelMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >>
>> >> background-color: #FFFFFF;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> RadioButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTog
>>gl
>> >> eButtonModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView
>>")
>> >> ;
>> >> }
>> >>
>> >> ScrollBar
>> >> {
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScroll
>>Ba
>> >> rLayout");
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBa
>>rM
>> >> odel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView")
>>;
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.VSc
>>ro
>> >> llBarMouseController");
>> >> }
>> >>
>> >> SimpleAlert
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.AlertMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView
>>")
>> >> ;
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Ale
>>rt
>> >> Controller");
>> >> iBorderBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorde
>>rB
>> >> ead");
>> >> iBackgroundBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SolidBackground
>>Be
>> >> ad");
>> >>
>> >> background-color: #FFFFFF;
>> >> border-style: solid;
>> >> border-color: #000000;
>> >> border-thickness: 1;
>> >> }
>> >>
>> >> Slider
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMod
>>el
>> >> ");
>> >> iBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
>> >> iBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Sli
>>de
>> >> rMouseController");
>> >> iThumbView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView
>>")
>> >> ;
>> >> iTrackView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView
>>")
>> >> ;
>> >> }
>> >>
>> >> Spinner
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.RangeMod
>>el
>> >> ");
>> >> IBeadView:
>> >>
>>ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spi
>>nn
>> >> erMouseController");
>> >> }
>> >>
>> >> TextArea
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
>> >> width: 135;
>> >> height: 20;
>> >> }
>> >>
>> >> TextButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonVi
>>ew
>> >> ");
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasu
>>re
>> >> mentBead");
>> >> }
>> >>
>> >> TextFieldItemRenderer
>> >> {
>> >> IBeadController:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.controllers.Ite
>>mR
>> >> endererMouseController");
>> >> height: 16;
>> >> }
>> >>
>> >> TextInput
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBo
>>rd
>> >> erView");
>> >> width: 135;
>> >> height: 20;
>> >> }
>> >>
>> >> TitleBar
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBar
>>Mo
>> >> del");
>> >> IBeadLayout:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirt
>>ua
>> >> lHorizontalLayout");
>> >> iMeasurementBead:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasure
>>me
>> >> ntBead");
>> >> }
>> >>
>> >> /* HTML5 */
>> >>
>> >> h5|TextButton
>> >> {
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonVi
>>ew
>> >> ");
>> >> }
>> >>
>> >> h5|TextInput
>> >> {
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBo
>>rd
>> >> erView");
>> >> }
>> >>
>> >> h5|CheckBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleBu
>>tt
>> >> onModel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >>
>> >> }
>> >>
>> >> h5|RadioButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTog
>>gl
>> >> eButtonModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView
>>")
>> >> ;
>> >> }
>> >>
>> >> h5|List
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> }
>> >>
>> >> h5|DropDownList
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySel
>>ec
>> >> tionModel");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> h5|ComboBox
>> >> {
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBox
>>Mo
>> >> del");
>> >> IPopUp:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDo
>>wn
>> >> ListList");
>> >> }
>> >>
>> >> /* jQuery */
>> >>
>> >> jq|TextButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView"
>>);
>> >> }
>> >>
>> >>
>> >> jq|CheckBox
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleBu
>>tt
>> >> onModel");
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >>
>> >> }
>> >>
>> >> jq|RadioButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.ValueTog
>>gl
>> >> eButtonModel");
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView
>>")
>> >> ;
>> >> }
>> >>
>> >> /* createjs */
>> >>
>> >> createjs|TextButton
>> >> {
>> >> IBeadModel:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.models.TextMode
>>l"
>> >> );
>> >> IBeadView:
>> >>
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView"
>>);
>> >> }
>> >>
>> >> createjs|CheckBox
>> >> {
>> >> IBeadView:
>> >>
>>
>>ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> >> }
>> >>
>> >> }
>> >>
>> >>
>> >>
>> >>
>> >> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> wrote:
>> >>
>> >> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
>> >> >
>> >> >>
>> >> >>
>> >> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> >> wrote:
>> >> >> >
>> >> >> >I am still trying to get the jQuery_Sample app to run. I added
>> >> >> >'implements
>> >> >> >IFlexInfo' to the jquery application class.
>> >> >> > at
>> >> >>
>> >>
>> >>
>>
>>>>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\work
>>>>>sp
>> >> >>>ac
>> >> >>
>> >>
>> >>
>>
>>>>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Simple
>>>>>CS
>> >> >>>SV
>> >> >> >aluesImpl.as:237]
>> >> >>
>> >>
>> >>
>>
>>>>>======================================================================
>>>>>==
>> >> >>>==
>> >> >> >===========================================
>> >> >> >
>> >> >> >It seems like the iBeadModel property is not available in the
>>Label
>> >> >> >instance. I see that in defaults.css, we do set IBeadModel,
>>though:
>> >> >> >
>> >> >> >I did spend quite a bit of time figuring out why it is not being
>> set.
>> >> >>Any
>> >> >> >idea what is going on here?
>> >> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
>> >> >>selector.
>> >> >> I have one in my copy of defaults.css but I'm not synced up. For
>> sure,
>> >> >> there should be a null check there so that's a bug.
>> >> >>
>> >> >>
>> >> >I added the null checks - will check it in soon. But the real
>>problem
>> is
>> >> >that no such value exists in global or in * So, at the end a null
>>is
>> >> >returned by the getValue() function and it fails like this:
>> >> >
>> >> >TypeError: Error #1007: Instantiation attempted on a
>>non-constructor.
>> >> > at org.apache.flex.core::UIBase/get
>> >>
>> >>
>>
>>>model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\
>>>or
>> >> >g\apache\flex\core\UIBase.as:173]
>> >> > at org.apache.flex.html.staticControls::Label/set
>> >>
>> >>
>>
>>>text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
>>>rg
>> >> >\apache\flex\html\staticControls\Label.as:46]
>> >> > at org.apache.flex.binding::SimpleBinding/set
>> >>
>> >>
>>
>>>strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src
>>>\o
>> >> >rg\apache\flex\binding\SimpleBinding.as:51]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\g
>>>it
>> >> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\fle
>>>x_
>> >>
>> >>
>>
>>>os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\ut
>>>il
>> >> >s\MXMLDataInterpreter.as:153]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p
>>>\f
>> >>
>> >>
>>
>>>lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\fle
>>>x\
>> >> >utils\MXMLDataInterpreter.as:224]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\fl
>>>ex
>> >>
>>
>>>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43
>>>]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\fl
>>>ex
>> >>
>> >>
>>
>>>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as
>>>:1
>> >> >33]
>> >> > at
>> >>
>> >>
>>
>>>org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\f
>>>le
>> >>
>> >>
>>
>>>xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.a
>>>s:
>> >> >63]
>> >> >
>> >> >
>> >> >
>> >> >> >
>> >> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
>> >> >> >"ISomething" throughout the codebase. Could that be causing
>>these
>> >> >>issues?
>> >> >> >Maybe we should standardize on one naming convention.
>> >> >> Yeah, that needs to be ironed out. I was planning on waiting
>>until I
>> >> >>see
>> >> >> what it takes to get custom CSS styles to work on the JS side.
>>There
>> >> >>was
>> >> >> some code somewhere that was automatically changing the capital
>>"I"
>> to
>> >> >> small "i" and so we had to use small "i" in the code, at least for
>> now.
>> >> >>
>> >> >
>> >> >Do you have an idea where this piece of code could be in? I can
>>take a
>> >> >shot at fixing this.
>> >> >
>> >> >
>> >> >>
>> >> >> -Alex
>> >> >>
>> >> >>
>> >>
>> >>
>> >
>>
Re: [FlexJS] IFlexInfo
Posted by OmPrakash Muppirala <bi...@gmail.com>.
I am trying to build out a Dojo based component set (like jquery, createjs,
etc.) Which is why getting the jquery based app running is crucial for
me.
Are you sure you haven't made changes to the example code?
Or, perhaps you publish a new overlay zip? I am not sure if you have been
pushing new builds.
Thanks,
Om
On Wed, Oct 9, 2013 at 12:12 PM, Alex Harui <ah...@adobe.com> wrote:
> Om,
>
> It ran for me, so I don't know what else to fix. I'm thinking you have
> some sort of config problem. What does the console output look like?
> Maybe there's a clue in there.
>
> Peter and I are using the DataBindingTest app that doesn't use JQuery.
> I'm not sure what your goal is and whether JQuery is required or not, but
> you might want to work with DataBindingTest if you can.
>
> -Alex
> ________________________________________
> From: omuppi1@gmail.com [omuppi1@gmail.com] On Behalf Of OmPrakash
> Muppirala [bigosmallm@gmail.com]
> Sent: Wednesday, October 09, 2013 11:48 AM
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] IFlexInfo
>
> Bump...
>
> Alex/Peter, if you can take some time to fix the jquery example app that
> would be great. Or, if you want me to switch to any other app for
> reference, please advice.
>
> Thanks,
> Om
>
>
> On Thu, Oct 3, 2013 at 4:01 PM, OmPrakash Muppirala <bigosmallm@gmail.com
> >wrote:
>
> > On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> My defaults CSS is pasted below. Label's type selector has an
> IBeadModel.
> >> I could be out of date though, but it wouldn't make sense for Label to
> >> not have an IBeadModel entry.
> >>
> >>
> > My defaults.css has the same identical entry for Label. Somehow that
> does
> > not seem to get populated.
> >
> > Thanks,
> > Om
> >
> >
> >> ------- defaults.css ----------
> >>
> >> /*
> >> *
> >> * Licensed to the Apache Software Foundation (ASF) under one or more
> >> * contributor license agreements. See the NOTICE file distributed
> with
> >> * this work for additional information regarding copyright ownership.
> >> * The ASF licenses this file to You under the Apache License, Version
> >> 2.0
> >> * (the "License"); you may not use this file except in compliance with
> >> * the License. You may obtain a copy of the License at
> >> *
> >> * http://www.apache.org/licenses/LICENSE-2.0
> >> *
> >> * Unless required by applicable law or agreed to in writing, software
> >> * distributed under the License is distributed on an "AS IS" BASIS,
> >> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> >> implied.
> >> * See the License for the specific language governing permissions and
> >> * limitations under the License.
> >> *
> >> */
> >>
> >> @namespace "library://ns.apache.org/flexjs/basic";
> >> @namespace h5 "library://ns.apache.org/flexjs/html5";
> >> @namespace jq "library://ns.apache.org/flexjs/jquery";
> >> @namespace createjs "library://ns.apache.org/flexjs/createjs";
> >>
> >> /* Global style declaration */
> >> *
> >> {
> >> font-family: "Arial";
> >> font-size: 12px;
> >> }
> >>
> >> Button
> >> {
> >> background-color: #d8d8d8;
> >> border: 1px solid #000000;
> >> padding: 4px;
> >> }
> >>
> >> Button:hover
> >> {
> >> background-color: #9fa0a1;
> >> border: 1px solid #000000;
> >> padding: 4px;
> >> }
> >>
> >> Button:active
> >> {
> >> background-color: #929496;
> >> border: 1px solid #000000;
> >> padding: 4px;
> >> }
> >>
> >> @media -flex-flash
> >> {
> >>
> >> /* Global style declaration */
> >> global
> >> {
> >> IStatesImpl:
> ClassReference("org.apache.flex.core.SimpleStatesImpl");
> >> }
> >>
> >> Alert
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
> >> ");
> >> IBeadView:
> >> ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
> >> Controller");
> >> iBackgroundBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> >> ad");
> >> iBorderBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> >> ead");
> >>
> >> background-color: #FFFFFF;
> >> border-style: solid;
> >> border-color: #000000;
> >> border-thickness: 1;
> >> }
> >>
> >> CheckBox
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> >> onModel");
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
> >>
> >> }
> >>
> >> ComboBox
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
> >> del");
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Combo
> >> BoxController");
> >> IPopUp:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> >> ListList");
> >> }
> >>
> >> Container
> >> {
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
> >> }
> >>
> >> ControlBar
> >> {
> >> IBeadLayout:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> >> lHorizontalLayout");
> >> iMeasurementBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasure
> >> mentBead");
> >> iBackgroundBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> >> ad");
> >> iBorderBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> >> ead");
> >>
> >> background-color: #CECECE;
> >> border-style: solid;
> >> border-color: #000000;
> >> border-thickness: 1;
> >> }
> >>
> >> DropDownList
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> >> tionModel");
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.DropDownListView"
> >> );
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.DropD
> >> ownListController");
> >> IPopUp:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> >> ListList");
> >> }
> >>
> >> DropDownListList
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> >> tionModel");
> >> }
> >>
> >> Label
> >> {
> >> width: 95;
> >> height: 18;
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> >> );
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
> >> iMeasurementBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMea
> >> surementBead");
> >> }
> >>
> >> List
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> >> tionModel");
> >> IBeadView:
> >> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ListS
> >> ingleSelectionMouseController");
> >> IBeadLayout:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> >> lVerticalScrollingLayout");
> >> IDataProviderItemRendererMapper:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendererF
> >> actoryForArrayData");
> >> IItemRendererClassFactory:
> >> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
> >> IItemRenderer:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFiel
> >> dItemRenderer");
> >> }
> >>
> >> NumericStepper
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> >> ");
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperVie
> >> w");
> >>
> >> padding: 0px;
> >> border-style: solid;
> >> border-color: #000000;
> >> border-thickness: 1;
> >> background-color: #FFFFFF;
> >> iBorderBead:
> >>
> >>
> ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderB
> >> ead');
> >> iBackgroundBead:
> >>
> >>
> ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> >> ad');
> >> }
> >>
> >> Panel
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.PanelModel
> >> ");
> >> IBeadView:
> >> ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
> >> iBorderBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> >> ead");
> >> iBackgroundBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> >> ad");
> >>
> >> background-color: #FFFFFF;
> >> border-style: solid;
> >> border-color: #000000;
> >> border-thickness: 1;
> >> }
> >>
> >> RadioButton
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> >> eButtonModel");
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> >> ;
> >> }
> >>
> >> ScrollBar
> >> {
> >> IBeadLayout:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrollBa
> >> rLayout");
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBarM
> >> odel");
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView");
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.VScro
> >> llBarMouseController");
> >> }
> >>
> >> SimpleAlert
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
> >> ");
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView")
> >> ;
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
> >> Controller");
> >> iBorderBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> >> ead");
> >> iBackgroundBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> >> ad");
> >>
> >> background-color: #FFFFFF;
> >> border-style: solid;
> >> border-color: #000000;
> >> border-thickness: 1;
> >> }
> >>
> >> Slider
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> >> ");
> >> iBeadView:
> >> ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
> >> iBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Slide
> >> rMouseController");
> >> iThumbView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView")
> >> ;
> >> iTrackView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView")
> >> ;
> >> }
> >>
> >> Spinner
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> >> ");
> >> IBeadView:
> >> ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spinn
> >> erMouseController");
> >> }
> >>
> >> TextArea
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> >> );
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
> >> width: 135;
> >> height: 20;
> >> }
> >>
> >> TextButton
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> >> );
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
> >> ");
> >> iMeasurementBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasure
> >> mentBead");
> >> }
> >>
> >> TextFieldItemRenderer
> >> {
> >> IBeadController:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ItemR
> >> endererMouseController");
> >> height: 16;
> >> }
> >>
> >> TextInput
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> >> );
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
> >> erView");
> >> width: 135;
> >> height: 20;
> >> }
> >>
> >> TitleBar
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarMo
> >> del");
> >> IBeadLayout:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> >> lHorizontalLayout");
> >> iMeasurementBead:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasureme
> >> ntBead");
> >> }
> >>
> >> /* HTML5 */
> >>
> >> h5|TextButton
> >> {
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
> >> ");
> >> }
> >>
> >> h5|TextInput
> >> {
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
> >> erView");
> >> }
> >>
> >> h5|CheckBox
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> >> onModel");
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
> >>
> >> }
> >>
> >> h5|RadioButton
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> >> eButtonModel");
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> >> ;
> >> }
> >>
> >> h5|List
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> >> tionModel");
> >> }
> >>
> >> h5|DropDownList
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> >> tionModel");
> >> IPopUp:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> >> ListList");
> >> }
> >>
> >> h5|ComboBox
> >> {
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
> >> del");
> >> IPopUp:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> >> ListList");
> >> }
> >>
> >> /* jQuery */
> >>
> >> jq|TextButton
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> >> );
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
> >> }
> >>
> >>
> >> jq|CheckBox
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> >> onModel");
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
> >>
> >> }
> >>
> >> jq|RadioButton
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> >> eButtonModel");
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> >> ;
> >> }
> >>
> >> /* createjs */
> >>
> >> createjs|TextButton
> >> {
> >> IBeadModel:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> >> );
> >> IBeadView:
> >>
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
> >> }
> >>
> >> createjs|CheckBox
> >> {
> >> IBeadView:
> >>
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
> >> }
> >>
> >> }
> >>
> >>
> >>
> >>
> >> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com>
> wrote:
> >>
> >> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
> >> >
> >> >>
> >> >>
> >> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com>
> >> wrote:
> >> >> >
> >> >> >I am still trying to get the jQuery_Sample app to run. I added
> >> >> >'implements
> >> >> >IFlexInfo' to the jquery application class.
> >> >> > at
> >> >>
> >>
> >>
> >>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\worksp
> >> >>>ac
> >> >>
> >>
> >>
> >>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCS
> >> >>>SV
> >> >> >aluesImpl.as:237]
> >> >>
> >>
> >>
> >>>========================================================================
> >> >>>==
> >> >> >===========================================
> >> >> >
> >> >> >It seems like the iBeadModel property is not available in the Label
> >> >> >instance. I see that in defaults.css, we do set IBeadModel, though:
> >> >> >
> >> >> >I did spend quite a bit of time figuring out why it is not being
> set.
> >> >>Any
> >> >> >idea what is going on here?
> >> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
> >> >>selector.
> >> >> I have one in my copy of defaults.css but I'm not synced up. For
> sure,
> >> >> there should be a null check there so that's a bug.
> >> >>
> >> >>
> >> >I added the null checks - will check it in soon. But the real problem
> is
> >> >that no such value exists in global or in * So, at the end a null is
> >> >returned by the getValue() function and it fails like this:
> >> >
> >> >TypeError: Error #1007: Instantiation attempted on a non-constructor.
> >> > at org.apache.flex.core::UIBase/get
> >>
> >>
> >model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\or
> >> >g\apache\flex\core\UIBase.as:173]
> >> > at org.apache.flex.html.staticControls::Label/set
> >>
> >>
> >text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org
> >> >\apache\flex\html\staticControls\Label.as:46]
> >> > at org.apache.flex.binding::SimpleBinding/set
> >>
> >>
> >strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
> >> >rg\apache\flex\binding\SimpleBinding.as:51]
> >> > at
> >>
> >>
> >org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git
> >> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
> >> > at
> >>
> >>
> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_
> >>
> >>
> >os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\util
> >> >s\MXMLDataInterpreter.as:153]
> >> > at
> >>
> >>
> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\f
> >>
> >>
> >lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\
> >> >utils\MXMLDataInterpreter.as:224]
> >> > at
> >>
> >>
> >org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flex
> >>
> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
> >> > at
> >>
> >>
> >org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flex
> >>
> >>
> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:1
> >> >33]
> >> > at
> >>
> >>
> >org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\fle
> >>
> >>
> >xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:
> >> >63]
> >> >
> >> >
> >> >
> >> >> >
> >> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
> >> >> >"ISomething" throughout the codebase. Could that be causing these
> >> >>issues?
> >> >> >Maybe we should standardize on one naming convention.
> >> >> Yeah, that needs to be ironed out. I was planning on waiting until I
> >> >>see
> >> >> what it takes to get custom CSS styles to work on the JS side. There
> >> >>was
> >> >> some code somewhere that was automatically changing the capital "I"
> to
> >> >> small "i" and so we had to use small "i" in the code, at least for
> now.
> >> >>
> >> >
> >> >Do you have an idea where this piece of code could be in? I can take a
> >> >shot at fixing this.
> >> >
> >> >
> >> >>
> >> >> -Alex
> >> >>
> >> >>
> >>
> >>
> >
>
RE: [FlexJS] IFlexInfo
Posted by Alex Harui <ah...@adobe.com>.
Om,
It ran for me, so I don't know what else to fix. I'm thinking you have some sort of config problem. What does the console output look like? Maybe there's a clue in there.
Peter and I are using the DataBindingTest app that doesn't use JQuery. I'm not sure what your goal is and whether JQuery is required or not, but you might want to work with DataBindingTest if you can.
-Alex
________________________________________
From: omuppi1@gmail.com [omuppi1@gmail.com] On Behalf Of OmPrakash Muppirala [bigosmallm@gmail.com]
Sent: Wednesday, October 09, 2013 11:48 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] IFlexInfo
Bump...
Alex/Peter, if you can take some time to fix the jquery example app that
would be great. Or, if you want me to switch to any other app for
reference, please advice.
Thanks,
Om
On Thu, Oct 3, 2013 at 4:01 PM, OmPrakash Muppirala <bi...@gmail.com>wrote:
> On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> My defaults CSS is pasted below. Label's type selector has an IBeadModel.
>> I could be out of date though, but it wouldn't make sense for Label to
>> not have an IBeadModel entry.
>>
>>
> My defaults.css has the same identical entry for Label. Somehow that does
> not seem to get populated.
>
> Thanks,
> Om
>
>
>> ------- defaults.css ----------
>>
>> /*
>> *
>> * Licensed to the Apache Software Foundation (ASF) under one or more
>> * contributor license agreements. See the NOTICE file distributed with
>> * this work for additional information regarding copyright ownership.
>> * The ASF licenses this file to You under the Apache License, Version
>> 2.0
>> * (the "License"); you may not use this file except in compliance with
>> * the License. You may obtain a copy of the License at
>> *
>> * http://www.apache.org/licenses/LICENSE-2.0
>> *
>> * Unless required by applicable law or agreed to in writing, software
>> * distributed under the License is distributed on an "AS IS" BASIS,
>> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> * See the License for the specific language governing permissions and
>> * limitations under the License.
>> *
>> */
>>
>> @namespace "library://ns.apache.org/flexjs/basic";
>> @namespace h5 "library://ns.apache.org/flexjs/html5";
>> @namespace jq "library://ns.apache.org/flexjs/jquery";
>> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>>
>> /* Global style declaration */
>> *
>> {
>> font-family: "Arial";
>> font-size: 12px;
>> }
>>
>> Button
>> {
>> background-color: #d8d8d8;
>> border: 1px solid #000000;
>> padding: 4px;
>> }
>>
>> Button:hover
>> {
>> background-color: #9fa0a1;
>> border: 1px solid #000000;
>> padding: 4px;
>> }
>>
>> Button:active
>> {
>> background-color: #929496;
>> border: 1px solid #000000;
>> padding: 4px;
>> }
>>
>> @media -flex-flash
>> {
>>
>> /* Global style declaration */
>> global
>> {
>> IStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl");
>> }
>>
>> Alert
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
>> ");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
>> Controller");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>>
>> background-color: #FFFFFF;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> CheckBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
>> onModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>>
>> }
>>
>> ComboBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
>> del");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Combo
>> BoxController");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> Container
>> {
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
>> }
>>
>> ControlBar
>> {
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
>> lHorizontalLayout");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasure
>> mentBead");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>>
>> background-color: #CECECE;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> DropDownList
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.DropDownListView"
>> );
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.DropD
>> ownListController");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> DropDownListList
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> }
>>
>> Label
>> {
>> width: 95;
>> height: 18;
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMea
>> surementBead");
>> }
>>
>> List
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ListS
>> ingleSelectionMouseController");
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
>> lVerticalScrollingLayout");
>> IDataProviderItemRendererMapper:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendererF
>> actoryForArrayData");
>> IItemRendererClassFactory:
>> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
>> IItemRenderer:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFiel
>> dItemRenderer");
>> }
>>
>> NumericStepper
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
>> ");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperVie
>> w");
>>
>> padding: 0px;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> background-color: #FFFFFF;
>> iBorderBead:
>>
>> ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead');
>> iBackgroundBead:
>>
>> ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad');
>> }
>>
>> Panel
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.PanelModel
>> ");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>>
>> background-color: #FFFFFF;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> RadioButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
>> eButtonModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
>> ;
>> }
>>
>> ScrollBar
>> {
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrollBa
>> rLayout");
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBarM
>> odel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.VScro
>> llBarMouseController");
>> }
>>
>> SimpleAlert
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
>> ");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView")
>> ;
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
>> Controller");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>>
>> background-color: #FFFFFF;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> Slider
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
>> ");
>> iBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
>> iBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Slide
>> rMouseController");
>> iThumbView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView")
>> ;
>> iTrackView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView")
>> ;
>> }
>>
>> Spinner
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
>> ");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spinn
>> erMouseController");
>> }
>>
>> TextArea
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
>> width: 135;
>> height: 20;
>> }
>>
>> TextButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
>> ");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasure
>> mentBead");
>> }
>>
>> TextFieldItemRenderer
>> {
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ItemR
>> endererMouseController");
>> height: 16;
>> }
>>
>> TextInput
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
>> erView");
>> width: 135;
>> height: 20;
>> }
>>
>> TitleBar
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarMo
>> del");
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
>> lHorizontalLayout");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasureme
>> ntBead");
>> }
>>
>> /* HTML5 */
>>
>> h5|TextButton
>> {
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
>> ");
>> }
>>
>> h5|TextInput
>> {
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
>> erView");
>> }
>>
>> h5|CheckBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
>> onModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>>
>> }
>>
>> h5|RadioButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
>> eButtonModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
>> ;
>> }
>>
>> h5|List
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> }
>>
>> h5|DropDownList
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> h5|ComboBox
>> {
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
>> del");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> /* jQuery */
>>
>> jq|TextButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
>> }
>>
>>
>> jq|CheckBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
>> onModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>>
>> }
>>
>> jq|RadioButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
>> eButtonModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
>> ;
>> }
>>
>> /* createjs */
>>
>> createjs|TextButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
>> }
>>
>> createjs|CheckBox
>> {
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> }
>>
>> }
>>
>>
>>
>>
>> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>>
>> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >>
>> >>
>> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> wrote:
>> >> >
>> >> >I am still trying to get the jQuery_Sample app to run. I added
>> >> >'implements
>> >> >IFlexInfo' to the jquery application class.
>> >> > at
>> >>
>>
>> >>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\worksp
>> >>>ac
>> >>
>>
>> >>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCS
>> >>>SV
>> >> >aluesImpl.as:237]
>> >>
>>
>> >>>========================================================================
>> >>>==
>> >> >===========================================
>> >> >
>> >> >It seems like the iBeadModel property is not available in the Label
>> >> >instance. I see that in defaults.css, we do set IBeadModel, though:
>> >> >
>> >> >I did spend quite a bit of time figuring out why it is not being set.
>> >>Any
>> >> >idea what is going on here?
>> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
>> >>selector.
>> >> I have one in my copy of defaults.css but I'm not synced up. For sure,
>> >> there should be a null check there so that's a bug.
>> >>
>> >>
>> >I added the null checks - will check it in soon. But the real problem is
>> >that no such value exists in global or in * So, at the end a null is
>> >returned by the getValue() function and it fails like this:
>> >
>> >TypeError: Error #1007: Instantiation attempted on a non-constructor.
>> > at org.apache.flex.core::UIBase/get
>>
>> >model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\or
>> >g\apache\flex\core\UIBase.as:173]
>> > at org.apache.flex.html.staticControls::Label/set
>>
>> >text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org
>> >\apache\flex\html\staticControls\Label.as:46]
>> > at org.apache.flex.binding::SimpleBinding/set
>>
>> >strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
>> >rg\apache\flex\binding\SimpleBinding.as:51]
>> > at
>>
>> >org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git
>> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
>> > at
>>
>> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_
>>
>> >os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\util
>> >s\MXMLDataInterpreter.as:153]
>> > at
>>
>> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\f
>>
>> >lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\
>> >utils\MXMLDataInterpreter.as:224]
>> > at
>>
>> >org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flex
>> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
>> > at
>>
>> >org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flex
>>
>> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:1
>> >33]
>> > at
>>
>> >org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\fle
>>
>> >xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:
>> >63]
>> >
>> >
>> >
>> >> >
>> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
>> >> >"ISomething" throughout the codebase. Could that be causing these
>> >>issues?
>> >> >Maybe we should standardize on one naming convention.
>> >> Yeah, that needs to be ironed out. I was planning on waiting until I
>> >>see
>> >> what it takes to get custom CSS styles to work on the JS side. There
>> >>was
>> >> some code somewhere that was automatically changing the capital "I" to
>> >> small "i" and so we had to use small "i" in the code, at least for now.
>> >>
>> >
>> >Do you have an idea where this piece of code could be in? I can take a
>> >shot at fixing this.
>> >
>> >
>> >>
>> >> -Alex
>> >>
>> >>
>>
>>
>
Re: [FlexJS] IFlexInfo
Posted by OmPrakash Muppirala <bi...@gmail.com>.
Bump...
Alex/Peter, if you can take some time to fix the jquery example app that
would be great. Or, if you want me to switch to any other app for
reference, please advice.
Thanks,
Om
On Thu, Oct 3, 2013 at 4:01 PM, OmPrakash Muppirala <bi...@gmail.com>wrote:
> On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> My defaults CSS is pasted below. Label's type selector has an IBeadModel.
>> I could be out of date though, but it wouldn't make sense for Label to
>> not have an IBeadModel entry.
>>
>>
> My defaults.css has the same identical entry for Label. Somehow that does
> not seem to get populated.
>
> Thanks,
> Om
>
>
>> ------- defaults.css ----------
>>
>> /*
>> *
>> * Licensed to the Apache Software Foundation (ASF) under one or more
>> * contributor license agreements. See the NOTICE file distributed with
>> * this work for additional information regarding copyright ownership.
>> * The ASF licenses this file to You under the Apache License, Version
>> 2.0
>> * (the "License"); you may not use this file except in compliance with
>> * the License. You may obtain a copy of the License at
>> *
>> * http://www.apache.org/licenses/LICENSE-2.0
>> *
>> * Unless required by applicable law or agreed to in writing, software
>> * distributed under the License is distributed on an "AS IS" BASIS,
>> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> * See the License for the specific language governing permissions and
>> * limitations under the License.
>> *
>> */
>>
>> @namespace "library://ns.apache.org/flexjs/basic";
>> @namespace h5 "library://ns.apache.org/flexjs/html5";
>> @namespace jq "library://ns.apache.org/flexjs/jquery";
>> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>>
>> /* Global style declaration */
>> *
>> {
>> font-family: "Arial";
>> font-size: 12px;
>> }
>>
>> Button
>> {
>> background-color: #d8d8d8;
>> border: 1px solid #000000;
>> padding: 4px;
>> }
>>
>> Button:hover
>> {
>> background-color: #9fa0a1;
>> border: 1px solid #000000;
>> padding: 4px;
>> }
>>
>> Button:active
>> {
>> background-color: #929496;
>> border: 1px solid #000000;
>> padding: 4px;
>> }
>>
>> @media -flex-flash
>> {
>>
>> /* Global style declaration */
>> global
>> {
>> IStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl");
>> }
>>
>> Alert
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
>> ");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
>> Controller");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>>
>> background-color: #FFFFFF;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> CheckBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
>> onModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>>
>> }
>>
>> ComboBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
>> del");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Combo
>> BoxController");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> Container
>> {
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
>> }
>>
>> ControlBar
>> {
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
>> lHorizontalLayout");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasure
>> mentBead");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>>
>> background-color: #CECECE;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> DropDownList
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.DropDownListView"
>> );
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.DropD
>> ownListController");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> DropDownListList
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> }
>>
>> Label
>> {
>> width: 95;
>> height: 18;
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMea
>> surementBead");
>> }
>>
>> List
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ListS
>> ingleSelectionMouseController");
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
>> lVerticalScrollingLayout");
>> IDataProviderItemRendererMapper:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendererF
>> actoryForArrayData");
>> IItemRendererClassFactory:
>> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
>> IItemRenderer:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFiel
>> dItemRenderer");
>> }
>>
>> NumericStepper
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
>> ");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperVie
>> w");
>>
>> padding: 0px;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> background-color: #FFFFFF;
>> iBorderBead:
>>
>> ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead');
>> iBackgroundBead:
>>
>> ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad');
>> }
>>
>> Panel
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.PanelModel
>> ");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>>
>> background-color: #FFFFFF;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> RadioButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
>> eButtonModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
>> ;
>> }
>>
>> ScrollBar
>> {
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrollBa
>> rLayout");
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBarM
>> odel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.VScro
>> llBarMouseController");
>> }
>>
>> SimpleAlert
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
>> ");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView")
>> ;
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
>> Controller");
>> iBorderBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
>> ead");
>> iBackgroundBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
>> ad");
>>
>> background-color: #FFFFFF;
>> border-style: solid;
>> border-color: #000000;
>> border-thickness: 1;
>> }
>>
>> Slider
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
>> ");
>> iBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
>> iBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Slide
>> rMouseController");
>> iThumbView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView")
>> ;
>> iTrackView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView")
>> ;
>> }
>>
>> Spinner
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
>> ");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spinn
>> erMouseController");
>> }
>>
>> TextArea
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
>> width: 135;
>> height: 20;
>> }
>>
>> TextButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
>> ");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasure
>> mentBead");
>> }
>>
>> TextFieldItemRenderer
>> {
>> IBeadController:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ItemR
>> endererMouseController");
>> height: 16;
>> }
>>
>> TextInput
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
>> erView");
>> width: 135;
>> height: 20;
>> }
>>
>> TitleBar
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarMo
>> del");
>> IBeadLayout:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
>> lHorizontalLayout");
>> iMeasurementBead:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasureme
>> ntBead");
>> }
>>
>> /* HTML5 */
>>
>> h5|TextButton
>> {
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
>> ");
>> }
>>
>> h5|TextInput
>> {
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
>> erView");
>> }
>>
>> h5|CheckBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
>> onModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>>
>> }
>>
>> h5|RadioButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
>> eButtonModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
>> ;
>> }
>>
>> h5|List
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> }
>>
>> h5|DropDownList
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
>> tionModel");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> h5|ComboBox
>> {
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
>> del");
>> IPopUp:
>>
>> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
>> ListList");
>> }
>>
>> /* jQuery */
>>
>> jq|TextButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
>> }
>>
>>
>> jq|CheckBox
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
>> onModel");
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>>
>> }
>>
>> jq|RadioButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
>> eButtonModel");
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
>> ;
>> }
>>
>> /* createjs */
>>
>> createjs|TextButton
>> {
>> IBeadModel:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
>> );
>> IBeadView:
>>
>> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
>> }
>>
>> createjs|CheckBox
>> {
>> IBeadView:
>> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>> }
>>
>> }
>>
>>
>>
>>
>> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>>
>> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >>
>> >>
>> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> wrote:
>> >> >
>> >> >I am still trying to get the jQuery_Sample app to run. I added
>> >> >'implements
>> >> >IFlexInfo' to the jquery application class.
>> >> > at
>> >>
>>
>> >>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\worksp
>> >>>ac
>> >>
>>
>> >>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCS
>> >>>SV
>> >> >aluesImpl.as:237]
>> >>
>>
>> >>>========================================================================
>> >>>==
>> >> >===========================================
>> >> >
>> >> >It seems like the iBeadModel property is not available in the Label
>> >> >instance. I see that in defaults.css, we do set IBeadModel, though:
>> >> >
>> >> >I did spend quite a bit of time figuring out why it is not being set.
>> >>Any
>> >> >idea what is going on here?
>> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
>> >>selector.
>> >> I have one in my copy of defaults.css but I'm not synced up. For sure,
>> >> there should be a null check there so that's a bug.
>> >>
>> >>
>> >I added the null checks - will check it in soon. But the real problem is
>> >that no such value exists in global or in * So, at the end a null is
>> >returned by the getValue() function and it fails like this:
>> >
>> >TypeError: Error #1007: Instantiation attempted on a non-constructor.
>> > at org.apache.flex.core::UIBase/get
>>
>> >model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\or
>> >g\apache\flex\core\UIBase.as:173]
>> > at org.apache.flex.html.staticControls::Label/set
>>
>> >text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org
>> >\apache\flex\html\staticControls\Label.as:46]
>> > at org.apache.flex.binding::SimpleBinding/set
>>
>> >strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
>> >rg\apache\flex\binding\SimpleBinding.as:51]
>> > at
>>
>> >org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git
>> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
>> > at
>>
>> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_
>>
>> >os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\util
>> >s\MXMLDataInterpreter.as:153]
>> > at
>>
>> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\f
>>
>> >lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\
>> >utils\MXMLDataInterpreter.as:224]
>> > at
>>
>> >org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flex
>> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
>> > at
>>
>> >org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flex
>>
>> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:1
>> >33]
>> > at
>>
>> >org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\fle
>>
>> >xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:
>> >63]
>> >
>> >
>> >
>> >> >
>> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
>> >> >"ISomething" throughout the codebase. Could that be causing these
>> >>issues?
>> >> >Maybe we should standardize on one naming convention.
>> >> Yeah, that needs to be ironed out. I was planning on waiting until I
>> >>see
>> >> what it takes to get custom CSS styles to work on the JS side. There
>> >>was
>> >> some code somewhere that was automatically changing the capital "I" to
>> >> small "i" and so we had to use small "i" in the code, at least for now.
>> >>
>> >
>> >Do you have an idea where this piece of code could be in? I can take a
>> >shot at fixing this.
>> >
>> >
>> >>
>> >> -Alex
>> >>
>> >>
>>
>>
>
Re: [FlexJS] IFlexInfo
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <ah...@adobe.com> wrote:
> My defaults CSS is pasted below. Label's type selector has an IBeadModel.
> I could be out of date though, but it wouldn't make sense for Label to
> not have an IBeadModel entry.
>
>
My defaults.css has the same identical entry for Label. Somehow that does
not seem to get populated.
Thanks,
Om
> ------- defaults.css ----------
>
> /*
> *
> * Licensed to the Apache Software Foundation (ASF) under one or more
> * contributor license agreements. See the NOTICE file distributed with
> * this work for additional information regarding copyright ownership.
> * The ASF licenses this file to You under the Apache License, Version 2.0
> * (the "License"); you may not use this file except in compliance with
> * the License. You may obtain a copy of the License at
> *
> * http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing, software
> * distributed under the License is distributed on an "AS IS" BASIS,
> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> * See the License for the specific language governing permissions and
> * limitations under the License.
> *
> */
>
> @namespace "library://ns.apache.org/flexjs/basic";
> @namespace h5 "library://ns.apache.org/flexjs/html5";
> @namespace jq "library://ns.apache.org/flexjs/jquery";
> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>
> /* Global style declaration */
> *
> {
> font-family: "Arial";
> font-size: 12px;
> }
>
> Button
> {
> background-color: #d8d8d8;
> border: 1px solid #000000;
> padding: 4px;
> }
>
> Button:hover
> {
> background-color: #9fa0a1;
> border: 1px solid #000000;
> padding: 4px;
> }
>
> Button:active
> {
> background-color: #929496;
> border: 1px solid #000000;
> padding: 4px;
> }
>
> @media -flex-flash
> {
>
> /* Global style declaration */
> global
> {
> IStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl");
> }
>
> Alert
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
> ");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
> Controller");
> iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
> iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
>
> background-color: #FFFFFF;
> border-style: solid;
> border-color: #000000;
> border-thickness: 1;
> }
>
> CheckBox
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> onModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>
> }
>
> ComboBox
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
> del");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Combo
> BoxController");
> IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> Container
> {
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
> }
>
> ControlBar
> {
> IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> lHorizontalLayout");
> iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasure
> mentBead");
> iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
> iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
>
> background-color: #CECECE;
> border-style: solid;
> border-color: #000000;
> border-thickness: 1;
> }
>
> DropDownList
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.DropDownListView"
> );
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.DropD
> ownListController");
> IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> DropDownListList
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> }
>
> Label
> {
> width: 95;
> height: 18;
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
> iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMea
> surementBead");
> }
>
> List
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ListS
> ingleSelectionMouseController");
> IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> lVerticalScrollingLayout");
> IDataProviderItemRendererMapper:
> ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendererF
> actoryForArrayData");
> IItemRendererClassFactory:
> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
> IItemRenderer:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFiel
> dItemRenderer");
> }
>
> NumericStepper
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> ");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperVie
> w");
>
> padding: 0px;
> border-style: solid;
> border-color: #000000;
> border-thickness: 1;
> background-color: #FFFFFF;
> iBorderBead:
> ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead');
> iBackgroundBead:
> ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad');
> }
>
> Panel
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.PanelModel
> ");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
> iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
> iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
>
> background-color: #FFFFFF;
> border-style: solid;
> border-color: #000000;
> border-thickness: 1;
> }
>
> RadioButton
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> eButtonModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> ;
> }
>
> ScrollBar
> {
> IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrollBa
> rLayout");
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBarM
> odel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView");
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.VScro
> llBarMouseController");
> }
>
> SimpleAlert
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
> ");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView")
> ;
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
> Controller");
> iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
> iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
>
> background-color: #FFFFFF;
> border-style: solid;
> border-color: #000000;
> border-thickness: 1;
> }
>
> Slider
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> ");
> iBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
> iBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Slide
> rMouseController");
> iThumbView:
> ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView")
> ;
> iTrackView:
> ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView")
> ;
> }
>
> Spinner
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> ");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spinn
> erMouseController");
> }
>
> TextArea
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
> width: 135;
> height: 20;
> }
>
> TextButton
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
> ");
> iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasure
> mentBead");
> }
>
> TextFieldItemRenderer
> {
> IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ItemR
> endererMouseController");
> height: 16;
> }
>
> TextInput
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
> erView");
> width: 135;
> height: 20;
> }
>
> TitleBar
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarMo
> del");
> IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> lHorizontalLayout");
> iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasureme
> ntBead");
> }
>
> /* HTML5 */
>
> h5|TextButton
> {
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
> ");
> }
>
> h5|TextInput
> {
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
> erView");
> }
>
> h5|CheckBox
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> onModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>
> }
>
> h5|RadioButton
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> eButtonModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> ;
> }
>
> h5|List
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> }
>
> h5|DropDownList
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> h5|ComboBox
> {
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
> del");
> IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> /* jQuery */
>
> jq|TextButton
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
> }
>
>
> jq|CheckBox
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> onModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>
> }
>
> jq|RadioButton
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> eButtonModel");
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> ;
> }
>
> /* createjs */
>
> createjs|TextButton
> {
> IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
> }
>
> createjs|CheckBox
> {
> IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
> }
>
> }
>
>
>
>
> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >>
> >>
> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
> >> >
> >> >I am still trying to get the jQuery_Sample app to run. I added
> >> >'implements
> >> >IFlexInfo' to the jquery application class.
> >> > at
> >>
> >>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\worksp
> >>>ac
> >>
> >>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCS
> >>>SV
> >> >aluesImpl.as:237]
> >>
> >>>========================================================================
> >>>==
> >> >===========================================
> >> >
> >> >It seems like the iBeadModel property is not available in the Label
> >> >instance. I see that in defaults.css, we do set IBeadModel, though:
> >> >
> >> >I did spend quite a bit of time figuring out why it is not being set.
> >>Any
> >> >idea what is going on here?
> >> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
> >>selector.
> >> I have one in my copy of defaults.css but I'm not synced up. For sure,
> >> there should be a null check there so that's a bug.
> >>
> >>
> >I added the null checks - will check it in soon. But the real problem is
> >that no such value exists in global or in * So, at the end a null is
> >returned by the getValue() function and it fails like this:
> >
> >TypeError: Error #1007: Instantiation attempted on a non-constructor.
> > at org.apache.flex.core::UIBase/get
> >model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\or
> >g\apache\flex\core\UIBase.as:173]
> > at org.apache.flex.html.staticControls::Label/set
> >text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org
> >\apache\flex\html\staticControls\Label.as:46]
> > at org.apache.flex.binding::SimpleBinding/set
> >strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
> >rg\apache\flex\binding\SimpleBinding.as:51]
> > at
> >org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git
> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
> > at
> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_
> >os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\util
> >s\MXMLDataInterpreter.as:153]
> > at
> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\f
> >lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\
> >utils\MXMLDataInterpreter.as:224]
> > at
> >org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flex
> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
> > at
> >org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flex
> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:1
> >33]
> > at
> >org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\fle
> >xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:
> >63]
> >
> >
> >
> >> >
> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
> >> >"ISomething" throughout the codebase. Could that be causing these
> >>issues?
> >> >Maybe we should standardize on one naming convention.
> >> Yeah, that needs to be ironed out. I was planning on waiting until I
> >>see
> >> what it takes to get custom CSS styles to work on the JS side. There
> >>was
> >> some code somewhere that was automatically changing the capital "I" to
> >> small "i" and so we had to use small "i" in the code, at least for now.
> >>
> >
> >Do you have an idea where this piece of code could be in? I can take a
> >shot at fixing this.
> >
> >
> >>
> >> -Alex
> >>
> >>
>
>
Re: [FlexJS] IFlexInfo
Posted by Alex Harui <ah...@adobe.com>.
My defaults CSS is pasted below. Label's type selector has an IBeadModel.
I could be out of date though, but it wouldn't make sense for Label to
not have an IBeadModel entry.
------- defaults.css ----------
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
@namespace "library://ns.apache.org/flexjs/basic";
@namespace h5 "library://ns.apache.org/flexjs/html5";
@namespace jq "library://ns.apache.org/flexjs/jquery";
@namespace createjs "library://ns.apache.org/flexjs/createjs";
/* Global style declaration */
*
{
font-family: "Arial";
font-size: 12px;
}
Button
{
background-color: #d8d8d8;
border: 1px solid #000000;
padding: 4px;
}
Button:hover
{
background-color: #9fa0a1;
border: 1px solid #000000;
padding: 4px;
}
Button:active
{
background-color: #929496;
border: 1px solid #000000;
padding: 4px;
}
@media -flex-flash
{
/* Global style declaration */
global
{
IStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl");
}
Alert
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
Controller");
iBackgroundBead:
ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
ad");
iBorderBead:
ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
ead");
background-color: #FFFFFF;
border-style: solid;
border-color: #000000;
border-thickness: 1;
}
CheckBox
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
onModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
}
ComboBox
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
del");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.Combo
BoxController");
IPopUp:
ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
ListList");
}
Container
{
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
}
ControlBar
{
IBeadLayout:
ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
lHorizontalLayout");
iMeasurementBead:
ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasure
mentBead");
iBackgroundBead:
ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
ad");
iBorderBead:
ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
ead");
background-color: #CECECE;
border-style: solid;
border-color: #000000;
border-thickness: 1;
}
DropDownList
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
tionModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.DropDownListView"
);
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.DropD
ownListController");
IPopUp:
ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
ListList");
}
DropDownListList
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
tionModel");
}
Label
{
width: 95;
height: 18;
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
);
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
iMeasurementBead:
ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMea
surementBead");
}
List
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
tionModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.ListView");
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.ListS
ingleSelectionMouseController");
IBeadLayout:
ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
lVerticalScrollingLayout");
IDataProviderItemRendererMapper:
ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendererF
actoryForArrayData");
IItemRendererClassFactory:
ClassReference("org.apache.flex.core.ItemRendererClassFactory");
IItemRenderer:
ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFiel
dItemRenderer");
}
NumericStepper
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperVie
w");
padding: 0px;
border-style: solid;
border-color: #000000;
border-thickness: 1;
background-color: #FFFFFF;
iBorderBead:
ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderB
ead');
iBackgroundBead:
ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBe
ad');
}
Panel
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.PanelModel
");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
iBorderBead:
ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
ead");
iBackgroundBead:
ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
ad");
background-color: #FFFFFF;
border-style: solid;
border-color: #000000;
border-thickness: 1;
}
RadioButton
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
eButtonModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
;
}
ScrollBar
{
IBeadLayout:
ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrollBa
rLayout");
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBarM
odel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView");
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.VScro
llBarMouseController");
}
SimpleAlert
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView")
;
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
Controller");
iBorderBead:
ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
ead");
iBackgroundBead:
ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
ad");
background-color: #FFFFFF;
border-style: solid;
border-color: #000000;
border-thickness: 1;
}
Slider
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
");
iBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
iBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.Slide
rMouseController");
iThumbView:
ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView")
;
iTrackView:
ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView")
;
}
Spinner
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spinn
erMouseController");
}
TextArea
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
);
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
width: 135;
height: 20;
}
TextButton
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
);
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
");
iMeasurementBead:
ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasure
mentBead");
}
TextFieldItemRenderer
{
IBeadController:
ClassReference("org.apache.flex.html.staticControls.beads.controllers.ItemR
endererMouseController");
height: 16;
}
TextInput
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
);
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
erView");
width: 135;
height: 20;
}
TitleBar
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarMo
del");
IBeadLayout:
ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
lHorizontalLayout");
iMeasurementBead:
ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasureme
ntBead");
}
/* HTML5 */
h5|TextButton
{
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
");
}
h5|TextInput
{
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
erView");
}
h5|CheckBox
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
onModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
}
h5|RadioButton
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
eButtonModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
;
}
h5|List
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
tionModel");
}
h5|DropDownList
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
tionModel");
IPopUp:
ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
ListList");
}
h5|ComboBox
{
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
del");
IPopUp:
ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
ListList");
}
/* jQuery */
jq|TextButton
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
);
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
}
jq|CheckBox
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
onModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
}
jq|RadioButton
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
eButtonModel");
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
;
}
/* createjs */
createjs|TextButton
{
IBeadModel:
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
);
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
}
createjs|CheckBox
{
IBeadView:
ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
}
}
On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
>
>>
>>
>> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>> >
>> >I am still trying to get the jQuery_Sample app to run. I added
>> >'implements
>> >IFlexInfo' to the jquery application class.
>> > at
>>
>>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\worksp
>>>ac
>>
>>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCS
>>>SV
>> >aluesImpl.as:237]
>>
>>>========================================================================
>>>==
>> >===========================================
>> >
>> >It seems like the iBeadModel property is not available in the Label
>> >instance. I see that in defaults.css, we do set IBeadModel, though:
>> >
>> >I did spend quite a bit of time figuring out why it is not being set.
>>Any
>> >idea what is going on here?
>> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global
>>selector.
>> I have one in my copy of defaults.css but I'm not synced up. For sure,
>> there should be a null check there so that's a bug.
>>
>>
>I added the null checks - will check it in soon. But the real problem is
>that no such value exists in global or in * So, at the end a null is
>returned by the getValue() function and it fails like this:
>
>TypeError: Error #1007: Instantiation attempted on a non-constructor.
> at org.apache.flex.core::UIBase/get
>model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\or
>g\apache\flex\core\UIBase.as:173]
> at org.apache.flex.html.staticControls::Label/set
>text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org
>\apache\flex\html\staticControls\Label.as:46]
> at org.apache.flex.binding::SimpleBinding/set
>strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
>rg\apache\flex\binding\SimpleBinding.as:51]
> at
>org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git
>\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
> at
>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_
>os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\util
>s\MXMLDataInterpreter.as:153]
> at
>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\f
>lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\
>utils\MXMLDataInterpreter.as:224]
> at
>org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flex
>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
> at
>org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flex
>root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:1
>33]
> at
>org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\fle
>xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:
>63]
>
>
>
>> >
>> >Also, there seems to be an inconsistent usage of "iSomething" vs.
>> >"ISomething" throughout the codebase. Could that be causing these
>>issues?
>> >Maybe we should standardize on one naming convention.
>> Yeah, that needs to be ironed out. I was planning on waiting until I
>>see
>> what it takes to get custom CSS styles to work on the JS side. There
>>was
>> some code somewhere that was automatically changing the capital "I" to
>> small "i" and so we had to use small "i" in the code, at least for now.
>>
>
>Do you have an idea where this piece of code could be in? I can take a
>shot at fixing this.
>
>
>>
>> -Alex
>>
>>
Re: [FlexJS] IFlexInfo
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
> >
> >I am still trying to get the jQuery_Sample app to run. I added
> >'implements
> >IFlexInfo' to the jquery application class.
> > at
> >org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\workspac
> >e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCSSV
> >aluesImpl.as:237]
> >==========================================================================
> >===========================================
> >
> >It seems like the iBeadModel property is not available in the Label
> >instance. I see that in defaults.css, we do set IBeadModel, though:
> >
> >I did spend quite a bit of time figuring out why it is not being set. Any
> >idea what is going on here?
> Hmm. SimpleCSSValuesImpl line 237 is trying to find the global selector.
> I have one in my copy of defaults.css but I'm not synced up. For sure,
> there should be a null check there so that's a bug.
>
>
I added the null checks - will check it in soon. But the real problem is
that no such value exists in global or in * So, at the end a null is
returned by the getValue() function and it fails like this:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at org.apache.flex.core::UIBase/get
model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:173]
at org.apache.flex.html.staticControls::Label/set
text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\html\staticControls\Label.as:46]
at org.apache.flex.binding::SimpleBinding/set
strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\binding\SimpleBinding.as:51]
at
org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:153]
at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:224]
at
org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
at
org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:133]
at
org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:63]
> >
> >Also, there seems to be an inconsistent usage of "iSomething" vs.
> >"ISomething" throughout the codebase. Could that be causing these issues?
> >Maybe we should standardize on one naming convention.
> Yeah, that needs to be ironed out. I was planning on waiting until I see
> what it takes to get custom CSS styles to work on the JS side. There was
> some code somewhere that was automatically changing the capital "I" to
> small "i" and so we had to use small "i" in the code, at least for now.
>
Do you have an idea where this piece of code could be in? I can take a
shot at fixing this.
>
> -Alex
>
>
Re: [FlexJS] IFlexInfo
Posted by Alex Harui <ah...@adobe.com>.
On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
>I am still trying to get the jQuery_Sample app to run. I added
>'implements
>IFlexInfo' to the jquery application class.
> at
>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\workspac
>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCSSV
>aluesImpl.as:237]
>==========================================================================
>===========================================
>
>It seems like the iBeadModel property is not available in the Label
>instance. I see that in defaults.css, we do set IBeadModel, though:
>
>I did spend quite a bit of time figuring out why it is not being set. Any
>idea what is going on here?
Hmm. SimpleCSSValuesImpl line 237 is trying to find the global selector.
I have one in my copy of defaults.css but I'm not synced up. For sure,
there should be a null check there so that's a bug.
>
>Also, there seems to be an inconsistent usage of "iSomething" vs.
>"ISomething" throughout the codebase. Could that be causing these issues?
>Maybe we should standardize on one naming convention.
Yeah, that needs to be ironed out. I was planning on waiting until I see
what it takes to get custom CSS styles to work on the JS side. There was
some code somewhere that was automatically changing the capital "I" to
small "i" and so we had to use small "i" in the code, at least for now.
-Alex