You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by sankar <sa...@gmail.com> on 2017/01/19 06:39:51 UTC
[FlexJS] Popup
Hi,
Is there any valid popup implementation is in development, which looks more
like a popup having modal background, opens center of the screen, adds
custom views etc.? SimpleAlert is too simple in this case.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Now when I able to run the MDLExample project through Moonshine IDE with
additional compiler arguments those were requires, I saw the wrapper HTML
now taking it's template content from mdl-js-index-template.html file. But
yet, it is not rendering expectedly, styles were broken.
When I tried to compare the style/head portion of the wrapper HTML with html
at http://s.apache.org/MDLExample, I noticed following differences. Either
the template file is different than what we have demonstrated online, or,
Ant build file injecting more style contents into the wrapper HTML file
which is not happening when running in IDE. Check the following difference
in styles/head section.
*Local wrapper HTML content:*
> <head>
>
> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>
> <meta name="Custom Template for injecting custom style CSS">
>
> <meta name="viewport" content="width=device-width, initial-scale=1.0,
> minimum-scale=1.0"">
>
> <link rel="stylesheet" type="text/css" href="App.css">
>
> <link rel="stylesheet"
> href="https://fonts.googleapis.com/icon?family=Material+Icons">
>
> <link rel="stylesheet"
> href="https://code.getmdl.io/1.3.0/material.${primary}-${accent}.min.css">
>
>
Wrapper HTML at http://s.apache.org/MDLExample:
> <head>
>
> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>
> <meta name="Custom Template for injecting custom style CSS">
>
> <meta name="viewport" content="width=device-width, initial-scale=1.0,
> minimum-scale=1.0"">
>
> <link rel="stylesheet" type="text/css" href="App.css">
>
> <link rel="stylesheet"
> href="https://fonts.googleapis.com/icon?family=Material+Icons">
>
> <link rel="stylesheet"
> href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
>
>
> <link rel="stylesheet" type="text/css"
> href="http://cdn.css.net/libs/dialog-polyfill/0.4.5/dialog-polyfill.min.css">
>
>
Probably I'll need to manually edit the template file with valid value for
this part:
<link rel="stylesheet"
href="https://code.getmdl.io/1.3.0/material.${primary}-${accent}.min.css">
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58522.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
sankar wrote
> I'm trying to update recent source from Apache repository. When trying to
> build 'flex-asjs' source, I've turned to following error. Does anybody has
> any inside how to overcome this?
I able to overcome the above problem by updating other folders than
'flex-asjs' source.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p59048.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Hi,
I'm trying to update recent source from Apache repository. When trying to
build 'flex-asjs' source, I've turned to following error. Does anybody has
any inside how to overcome this?
> compile-js-swc:
> [echo] Compiling target/MaterialDesignLiteJS.swc
> [echo] FLEX_HOME: E:\ApacheFlexJSFrameworkSource\source\flex-a
> sjs
> [echo] FALCON_HOME: E:\ApacheFlexJSFrameworkSource\source\flex
> -asjs/../flex-falcon/compiler
> [mkdir] Created dir: E:\ApacheFlexJSFrameworkSource\source\flex
> -asjs\frameworks\js\FlexJS\projects\MaterialDesignLiteJS\target
> [compc] Loading configuration: E:\ApacheFlexJSFrameworkSource\s
> ource\flex-asjs\frameworks\js-config.xml
> [compc] Loading configuration: E:\ApacheFlexJSFrameworkSource\s
> ource\flex-asjs\frameworks\js\FlexJS\projects\MaterialDesignLiteJS\src\main\conf
> ig\compile-js-config.xml
> [compc]
> [compc] E:\ApacheFlexJSFrameworkSource\source\flex-asjs\framewo
> rks\projects\MaterialDesignLite\src\main\flex\org\apache\flex\mdl\Dialog.as(121)
> : col: 7 Error: Access of possibly undefined property dialogPolyfill.
> [compc]
> [compc]
> dialogPolyfill.registerD
> ialog(dialog);
> [compc] ^
> [compc]
>
> BUILD FAILED
> E:\ApacheFlexJSFrameworkSource\source\flex-asjs\build.xml:499: The
> following error occurred while executing this line:
> E:\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\build.xm
> l:100: The following error occurred while executing this line:
> E:\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\build.xm
> l:250: The following error occurred while executing this line:
> E:\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects
> \MaterialDesignLite\build.xml:36: The following error occurred while
> executing t
> his line:
> E:\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\js\FlexJ
> S\projects\MaterialDesignLiteJS\build.xml:80: compc task failed.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p59046.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Hi Carlos,
Yes, I've seen those style reference in pom.xml file. I was in need to run
the project in an IDE, I made the modification in the template html file.
Regarding the dialog polyfill style class insertion, I tried to omit those
two style reference from the template file and run, that breaks the dialog
style in Mozilla Windows; I got something like this (dialog body disappeared
and two buttons came far top-right of the screen):
<http://apache-flex-development.2333347.n4.nabble.com/file/n58528/Untitled.png>
I tried by keeping any one of the style but result was same.
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58528.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Sankar,
for the first link notice the following lines in pom.xml in MDLExample
<properties>
<!-- Customize MDL colors using this the tool at :
https://getmdl.io/customize/index.html -->
<primary>indigo</primary>
<accent>pink</accent>
</properties>
maven use this properties to configure this other one
<link rel="stylesheet" href="
https://code.getmdl.io/1.3.0/material.${primary}-${accent}.min.css">
So you can change that properties to change the MDL colors
The second is (dialog pollyfil) is introduced when you use Dialog.as. If
you not use that class at all it will not be injected
But as you make the instantiation, the line will be in your index.html, so
no need to insert it manually :)
2017-01-20 12:17 GMT+01:00 sankar <sa...@gmail.com>:
> Hi Carlos,
>
> I manually edit/add the following lines in mdl-js-index-template.html file
> to make the example work running from an IDE. Maybe Ant build file adds
> those lines at runtime, but I didn't have newly added lines in template
> file:
>
> /Edited/
> <link rel="stylesheet"
> href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
> /Added/
> <link rel="stylesheet" type="text/css"
> href="http://cdn.css.net/libs/dialog-polyfill/0.4.5/dialog-
> polyfill.min.css">
> /Added/
>
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58524.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Hi Carlos,
I manually edit/add the following lines in mdl-js-index-template.html file
to make the example work running from an IDE. Maybe Ant build file adds
those lines at runtime, but I didn't have newly added lines in template
file:
/Edited/
<link rel="stylesheet"
href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
/Added/
<link rel="stylesheet" type="text/css"
href="http://cdn.css.net/libs/dialog-polyfill/0.4.5/dialog-polyfill.min.css">
/Added/
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58524.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Sankar,
the excluded-defaut-css-files is setup cause be need to get rid of all the
default styles we get from HTML.swc so we don't carry anything
I think there's no more tricks that what is commented in this thread
2017-01-20 11:53 GMT+01:00 sankar <sa...@gmail.com>:
> piotrz wrote
> > Are you using Flash Builder with command line compilation ? You need to
> > add
> >
> > -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
> > -html-template=${basedir}/src/main/resources/mdl-js-index-template.html
>
> Piotr,
>
> After your last comment to check build/pom.xml I noticed those two extra
> compiler arguments.
>
> No, I am not using Flash Builder but Moonshine. I added those arguments to
> it's additional compiler argument section but didn't had expected results.
>
> Further investigating, I found that Moonshine is not adding additional
> compiler arguments effectively to the FlexJS type of projects. I fixed it
> and now trying to test the code. I'll let you know.
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58520.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
piotrz wrote
> Are you using Flash Builder with command line compilation ? You need to
> add
>
> -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
> -html-template=${basedir}/src/main/resources/mdl-js-index-template.html
Piotr,
After your last comment to check build/pom.xml I noticed those two extra
compiler arguments.
No, I am not using Flash Builder but Moonshine. I added those arguments to
it's additional compiler argument section but didn't had expected results.
Further investigating, I found that Moonshine is not adding additional
compiler arguments effectively to the FlexJS type of projects. I fixed it
and now trying to test the code. I'll let you know.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58520.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
piotrz wrote
> Are you using Flash Builder with command line compilation ? You need to
> add
>
> -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
> -html-template=${basedir}/src/main/resources/mdl-js-index-template.html
Piotr,
After your previous comment to look into build.xml/pom.xml file, I found
what you were trying to say - we requires additional compiler arguments.
No, I'm not using Flash Builder but Moonshine. I tried adding those two
arguments in additional compiler arguments section; ran, but nothing
changed. I noticed the output wrapper html file didn't had MDL JS references
also, so clearly mdl-js-index-template.html not using. My arguments were:
-locale en_US -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
-html-template=resources/mdl-js-index-template.html
I was also wondering, if we just add
"-compiler.exclude-defaults-css-files=HTML.swc:defaults.css" how a general
FlexJS project would look like? I tried to add this particular argument to
other FlexJS project, to satisfy the argument is working, but I didn't seen
any notable difference in UI.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58518.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by piotrz <pi...@gmail.com>.
Santanau,
Are you using Flash Builder with command line compilation ? You need to add
-compiler.exclude-defaults-css-files=HTML.swc:defaults.css
-html-template=${basedir}/src/main/resources/mdl-js-index-template.html
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58517.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by piotrz <pi...@gmail.com>.
You also need to use "mdl-js-index-template.html" as an template.
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58516.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
piotrz wrote
> In order to use MDL you have to use default template which contains links
> to the JS code of MDL. This default template along with default css style
> you can find in your downloaded FlexJS SDK folder:
> "examples\flexjs\MDLExample\src\main\resources\".
Hi Piotr,
I'm already using supplied CSS file in MDLExample project,
<fx:Style source="resources/mdl-styles.css"/>
I only changed directory structure a little so 'resources' became the folder
where the App.mxml file exists. I double checked if any path reference needs
modification due to folder structure change, but there was none.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58515.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by piotrz <pi...@gmail.com>.
Hi Santanau,
In order to use MDL you have to use default template which contains links to
the JS code of MDL. This default template along with default css style you
can find in your downloaded FlexJS SDK folder:
"examples\flexjs\MDLExample\src\main\resources\".
Example of files for building you can find also in MDLExample folder:
pom.xml (Maven build) and build.xml (Ant build).
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58513.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
I just updated my local copy to latest compiler.
When I tried testing the MDLExample, my HTML output seems messed-up. Here's
the screenshot link:https://i.imgsafe.org/1bf652697c.png. It looks like
styles not available.
Here's the application file codes, and I had no error during compilation. I
tried to test modifying the style source value, and compiler did gave me
error. So I think the present value is valid (as I didn't had any error with
this).
<mdl:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/flexjs/basic"
xmlns:mdl="library://ns.apache.org/flexjs/mdl"
xmlns:local="*">
<fx:Style source="resources/mdl-styles.css"/>
<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>
<js:initialView>
<local:MainNavigation/>
</js:initialView>
</mdl:Application>
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58511.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi,
IMHO, MDL is a good exercise that test FlexJS and what is capable, and put
another facility to people coming to the technology. We could start doing
Apps with FlexJS in MDL that looks pretty. That's a great goal.
But in the other hand, for me is a step in the road, and we should pursue
to create our own style, look and feel and set and get themes working with
js namespace. But as that seems more work, I think MDL was better to come
first... in the other hand we could make some buzz and hopefully make
people come to us and start playing with FlexJS and joining.
2017-01-19 17:28 GMT+01:00 Alex Harui <ah...@adobe.com>:
>
>
> On 1/19/17, 7:17 AM, "sankar" <sa...@gmail.com> wrote:
>
> >Carlos Rovira-3 wrote
> >> Right, many of the MDL controls are extensions from the HTML ones.
> >>Others
> >> don't have counterpart.
> >
> >So as I see in MDL the UI components were complete re-work than what we
> >have
> >in HTML package of FlexJS. MDL has different codes and approach to the
> >problems. So I wonder a few things:
> >
> >1. If someone worked in HTML package components to fix something, if we
> >want
> >to carry those fixes in MDL - then it has to be different codes/approach;
> >in
> >that regard the fixes to HTML package will no use in MDL
>
> The goal of each component set is to thinly wrap an existing set of
> components. HTML thinly wraps bare HTMLElements. MDL thinly wraps MDL
> aggregations of HTMLElements. In theory, if the MDL version was mostly
> the same as the HTML version, then the MDL version subclassed the HTML
> version. In other cases, the MDL version might re-composite beads from
> HTML. So sure, it is possible that there will be code changes that need
> to be applied in more than one place, but it is more likely that if the
> same code affects more than one component set, that the code is already
> shared by subclassing or composition, and if it isn't, it is a hint that
> something should be shared.
>
> >2. In HTML package we have many different utility beads, i.e.
> >DataProviderChangeNotifier to DataGrid component. Since in MDL it's Table,
> >so we'll need to create custom bead that works like
> >DataProviderChangeNotifier but works to Table(?)
>
> IMO, the goal for MDL Table is just to replicate what MDL Table does,
> which may or may not be the same as what we think of as a Flex DataGrid.
>
> >3. We can't mixed-match API from HTML package with MDL component
>
> There is no guarantee that you can mix components from two different
> component sets any more than you can expect to mix two different JS
> frameworks when writing code in plain JS. IMO, it isn't a goal to unify
> all JS framework components, it is just to show that we are agnostic about
> which JS framework you want to use and that MXML and AS is a more
> efficient way to use your favorite JS framework.
>
> My 2 cents,
> -Alex
>
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS] Popup
Posted by Alex Harui <ah...@adobe.com>.
On 1/19/17, 7:17 AM, "sankar" <sa...@gmail.com> wrote:
>Carlos Rovira-3 wrote
>> Right, many of the MDL controls are extensions from the HTML ones.
>>Others
>> don't have counterpart.
>
>So as I see in MDL the UI components were complete re-work than what we
>have
>in HTML package of FlexJS. MDL has different codes and approach to the
>problems. So I wonder a few things:
>
>1. If someone worked in HTML package components to fix something, if we
>want
>to carry those fixes in MDL - then it has to be different codes/approach;
>in
>that regard the fixes to HTML package will no use in MDL
The goal of each component set is to thinly wrap an existing set of
components. HTML thinly wraps bare HTMLElements. MDL thinly wraps MDL
aggregations of HTMLElements. In theory, if the MDL version was mostly
the same as the HTML version, then the MDL version subclassed the HTML
version. In other cases, the MDL version might re-composite beads from
HTML. So sure, it is possible that there will be code changes that need
to be applied in more than one place, but it is more likely that if the
same code affects more than one component set, that the code is already
shared by subclassing or composition, and if it isn't, it is a hint that
something should be shared.
>2. In HTML package we have many different utility beads, i.e.
>DataProviderChangeNotifier to DataGrid component. Since in MDL it's Table,
>so we'll need to create custom bead that works like
>DataProviderChangeNotifier but works to Table(?)
IMO, the goal for MDL Table is just to replicate what MDL Table does,
which may or may not be the same as what we think of as a Flex DataGrid.
>3. We can't mixed-match API from HTML package with MDL component
There is no guarantee that you can mix components from two different
component sets any more than you can expect to mix two different JS
frameworks when writing code in plain JS. IMO, it isn't a goal to unify
all JS framework components, it is just to show that we are agnostic about
which JS framework you want to use and that MXML and AS is a more
efficient way to use your favorite JS framework.
My 2 cents,
-Alex
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Carlos Rovira-3 wrote
> Right, many of the MDL controls are extensions from the HTML ones. Others
> don't have counterpart.
So as I see in MDL the UI components were complete re-work than what we have
in HTML package of FlexJS. MDL has different codes and approach to the
problems. So I wonder a few things:
1. If someone worked in HTML package components to fix something, if we want
to carry those fixes in MDL - then it has to be different codes/approach; in
that regard the fixes to HTML package will no use in MDL
2. In HTML package we have many different utility beads, i.e.
DataProviderChangeNotifier to DataGrid component. Since in MDL it's Table,
so we'll need to create custom bead that works like
DataProviderChangeNotifier but works to Table(?)
3. We can't mixed-match API from HTML package with MDL component
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58469.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by yishayw <yi...@hotmail.com>.
Regarding swf, I think it would be a good addition. For one thing, I still
find the cycle of compilation and debugging much faster in swf.
Also, having a version which does not depend on a 3rd party library will
enable us to tweak things, such as when an (e.g. Slider) event is emitted.
On the other hand, losing the 3rd party library sounds like a lot of work,
so I don't know if it's worth it.
For our purposes, we would be satisfied with a swf version that falls back
on some wireframe theme. In the end, we're building a js app. I just find
developing in flash more productive.
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58466.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by Carlos Rovira <ca...@apache.org>.
2017-01-19 12:24 GMT+01:00 sankar <sa...@gmail.com>:
>
> I'm a little curious though, I see components were starting with <mdl:
> namespace. Is the implementation is different than what we have in HTML
> package in SDK source?
>
Right, many of the MDL controls are extensions from the HTML ones. Others
don't have counterpart.
In other thread I was commenting that MDL (and other external sets like
CreateJS, JQuery,...) could have it's own namespace since we are
"importing" something not compliant with FlexJS, so this is what we could
do we what we have
But: for FlexJS sets, that are under our control, we can setup a "theming"
feature in order to use always the same js namespace (js:Button,...) and
then skin or apply a theme or switch between them,
We could make themes due to the fact that we are creating from scratch the
styles and the underlying implementation. MDL is already setup for us and
we are forced to make the HTML constructions the MDL developers put in
place, so there's components that doesn't exists in FlexJS or different
approaches for the ones we have in FlexJS set, So I don't expect to move
MDL from mdl namespace in the future.
--
Carlos Rovira
http://about.me/carlosrovira
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Carlos, sounds great! Thank you for this nice implementation!
I shall update my local sources to give it a run. I think this
implementation will answer many UI issues that we are aware in FlexJS
framework. And this is more modernized UI than basic FlexJS styles.
I'm a little curious though, I see components were starting with <mdl:
namespace. Is the implementation is different than what we have in HTML
package in SDK source?
This is great work.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58460.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Sankar,
mdl:Application was introduced yesterday about 12 hours ago. It should be
in nightly, but the best way to get up to date code should be to run maven
in your local machine to get the latest artifacts.
btw, MDL swc and MDLExample will be part of 0.8.0.
MDL is now feature complete, all components are developed but only HTML,
but is too early and some things (like Dialog) needs to be polished and
finished...but are few things from what I see. In the next few days we
should be done.
We can now, if we want, create a SWF version, but don't know if this work
would be used or not. Maybe we need see if people uses current MDL and if
demands SWF, since I plan to do other things I think are more needed.
2017-01-19 11:47 GMT+01:00 sankar <sa...@gmail.com>:
> I noticed that given example source application file was started with
> <js:Application>. But the running example to Apache server for MDL has it
> <mdl:Application>. So I downloaded the source of the project from
> http://apacheflexbuild.cloudapp.net:8080/job/MDLExample/
> lastSuccessfulBuild/artifact/examples/flexjs/MDLExample/.
>
> When I tried to run it in Moonshine with 0.8.0 Nightly build FlexJS,
> compiler thrown me following errors:
>
> : Compiling MDLExample
> : SDK path:
> E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-
> flex-flexjs-0.8.0-bin
> : Using Flex SDK:
> E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-
> flex-flexjs-0.8.0-bin
> :
> E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-
> flex-flexjs-0.8.0-bin\examples\flexjs\MDLExample\
> src\main\flex\App.mxml(20):
> col: 1 This tag could not be resolved to an ActionScript class. It will be
> ignored.
> :
> : <mdl:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> : ^
> :
> :
> E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-
> flex-flexjs-0.8.0-bin\examples\flexjs\MDLExample\
> src\main\flex\App.mxml(20):
> col: 1 This tag could not be resolved to an ActionScript class. It will be
> ignored.
> :
> : <mdl:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> : ^
> </quote>
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58456.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
I noticed that given example source application file was started with
<js:Application>. But the running example to Apache server for MDL has it
<mdl:Application>. So I downloaded the source of the project from
http://apacheflexbuild.cloudapp.net:8080/job/MDLExample/lastSuccessfulBuild/artifact/examples/flexjs/MDLExample/.
When I tried to run it in Moonshine with 0.8.0 Nightly build FlexJS,
compiler thrown me following errors:
: Compiling MDLExample
: SDK path:
E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin
: Using Flex SDK:
E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin
:
E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\examples\flexjs\MDLExample\src\main\flex\App.mxml(20):
col: 1 This tag could not be resolved to an ActionScript class. It will be
ignored.
:
: <mdl:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
: ^
:
:
E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\examples\flexjs\MDLExample\src\main\flex\App.mxml(20):
col: 1 This tag could not be resolved to an ActionScript class. It will be
ignored.
:
: <mdl:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
: ^
</quote>
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58456.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by piotrz <pi...@gmail.com>.
What do you mean by messed up ? Can you post screenshot ?
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58455.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Hi Piotr,
Thanks for the information. Anyway we're more interested to the HTML output
:)
But the HTML build is messed up UI and styles. I updated my FlexJS framework
source sometime back and the examples were came within it. I'm not sure what
goes wrong.
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58453.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by piotrz <pi...@gmail.com>.
Sankar,
MDL components implementations has only JS sight implemented. We did
placeholders for swf. In other things you have to run only JS build.
Visual Studio code allows you to debug runned JS.
Piotr
-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58452.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
I'm having some trouble running the example, though. When I tried to run as
swf, I followed by these errors:
> TypeError: Error #1007: Instantiation attempted on a non-constructor.
> at
> org.apache.flex.core::SimpleCSSValuesImpl/generateCSSStyleDeclarations()[E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core\SimpleCSSValuesImpl.as:238]
> at
> org.apache.flex.core::SimpleCSSValuesImpl/init()[E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core\SimpleCSSValuesImpl.as:91]
> at org.apache.flex.core::Application/set
> valuesImpl()[E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects\HTML\src\main\flex\org\apache\flex\core\Application.as:258]
> at
> org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLProperties()[E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\utils\MXMLDataInterpreter.as:401]
> at
> org.apache.flex.core::Application/generateMXMLAttributes()[E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects\HTML\src\main\flex\org\apache\flex\core\Application.as:312]
> at App()
> at _App_org_apache_flex_core_ApplicationFactory/create()
> at
> org.apache.flex.core::ApplicationFactory/deferredFrameHandler()[E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\frameworks\projects\Core\src\main\flex\org\apache\flex\core\ApplicationFactory.as:74]
When I tried to run as HTML, it opens a messed style output.
I'm not sure what is going wrong,
> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:js="library://ns.apache.org/flexjs/basic"
> xmlns:local="*"
> xmlns="http://www.w3.org/1999/xhtml">
>
>
> <fx:Style source="resources/mdl-styles.css"/>
>
> <js:valuesImpl>
>
> <js:SimpleCSSValuesImpl />
>
> </js:valuesImpl>
>
>
> <js:initialView>
>
> <local:MainNavigation/>
>
> </js:initialView>
> </js:Application>
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58451.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Aha! I just noticed it's already in FlexJS examples folder. It's nothing that
is developing behind the curtain and still need to be available! I see it's
the .css which suppose to make things difference. I'm trying to run the
project in Moonshine now :)
Thanks!
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58450.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by sankar <sa...@gmail.com>.
Carlos Rovira wrote
> MDL Dialog does exactly that you can see that here:
> http://s.apache.org/MDLExample
These examples looks fantastic, Carlos! :D NOOB questions (since I'm not
much aware of the development at mdl side),
1. I see mdl has a new xmlns in the given mxml files. Is is something going
to be available in next FlexJS release?
2. Is it something that can be achievable with present FlexJS 0.8.0 nightly
build (maybe by adding some kind of extension of mdl)?
I see the dialog contents we can construct ourselves; and this looks nice in
Chrome too! Hopefully it'll be available in other browsers soon as well.
Thanks for the nice works you're doing! :)
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Popup-tp58435p58448.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] Popup
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Sankar,
MDL Dialog does exactly that you can see that here:
http://s.apache.org/MDLExample
Notice that:
* Right now only works in Chrome, since we are looking on how to add the
dialog-polyfill JS to work cross other browsers
* I need to turn to Singlenton (I left it yesterday in the actual state
before go sleep)
This 2 things should be solved hopefully soon.
Dialog code:
https://github.com/apache/flex-asjs/blob/develop/examples/flexjs/MDLExample/src/main/flex/TestDialog.mxml
Dialog test call
https://github.com/apache/flex-asjs/blob/develop/examples/flexjs/MDLExample/src/main/flex/Dialogs.mxml
2017-01-19 7:39 GMT+01:00 sankar <sa...@gmail.com>:
> Hi,
>
> Is there any valid popup implementation is in development, which looks more
> like a popup having modal background, opens center of the screen, adds
> custom views etc.? SimpleAlert is too simple in this case.
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Popup-tp58435.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.