Re: [FlexJS] Layouts

2017-04-16 Thread Peter Ent
The merge is complete. Alex is doing something big too but I am done.

We should put together a task list for a proper release. I think some 
renaming/refacotoring is in order as well as documentation. 

Peter 


> On Apr 15, 2017, at 12:43 PM, piotrz  wrote:
> 
> Hi Peter,
> 
> I'm following and constantly checking your changes in this branch. It look
> good. Do you think that is the last big changes in framework Api? 
> Do you plan merge it to develop next week? 
> 
> Thanks, 
> Piotr
> 
> 
> 
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: 
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-development.247.n4.nabble.com%2FFlexJS-Layouts-tp61120p61128.html&data=02%7C01%7C%7C34cce7f02f334aa64e9d08d4841e895d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636278714068445857&sdata=sewthVxykzQHYESCOCbR%2Fj2RVNvPWXDyiwPVVcTnYag%3D&reserved=0
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-16 Thread Alex Harui
Holiday in the US today.  I'll reply in detail later.  A few quick
comments in-line...

On 4/15/17, 10:53 PM, "Justin Mclean"  wrote:

>Hi,
>
>So just for giggles I implemented this as has recommended.
>
>The PAYG cost ends up being the following if you use it:
>- The loading cost for JS is an extra file in debug / 50+ lines of
>compiled code. Runtime cost  in JS is two events dispatched and 50+ extra
>lines of code needed to be run.

I looked at your code.  There seems to be some logic issues and your
version is probably the most elaborate.  Simpler ones should have lower
cost.  Take another look and see if you can see it.  Maybe others can see
it as well.

>- 4 extra lines of code in AS version. The run time cost for AS is two
>events dispatched.

IMO, this cost is amortized and the final net cost for both platforms will
be <= 0.  I'll explain more later.

-Alex



Re: FlexSDK 4.16.0 installer errors

2017-04-16 Thread Lydecker
Hi Alex,

Thanks for taking the time to look at this. I'm using Windows 10 64bit.

As requested, the console output is below.

I am following the guidance here:
https://cwiki.apache.org/confluence/display/FLEX/Installation+help






D:\f16>ant -f installer.xml -Dair.sdk.version=25.0
Buildfile: D:\f16\installer.xml
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

get-data:
  [get] Getting:
http://flex.apache.org/installer/sdk-installer-config-4.0.xml?ts=201704161743
  [get] To: D:\f16\sdk-installer-config-4.0.xml

get-air-md5-data:

get-flash-md5-data:

get-md5-data:

check-binary:

ask-air:
[input] Apache Flex SDK uses the Adobe AIR SDK to build Adobe AIR
applications.
[input] The Adobe AIR SDK is subject to and governed by the
[input] Adobe AIR SDK License Agreement specified here:
[input] http://www.adobe.com/products/air/sdk-eula.html.
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the Adobe AIR SDK? (y, [n])
y

ask-flash:
[input] Apache Flex SDK uses the Adobe Flash Player's playerglobal.swc
to build Adobe Flash applications.
[input]
[input] The playerglobal.swc file is subject to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]
http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
the playerglobal.swc file
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here:
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] This license is not compatible with the Apache v2 license.
[input] Do you want to download and install the playerglobal.swc? (y,
[n])
y

ask-swfobject:

ask-ofl:

ask-adobe-osmf:

ask-adobe-fontswf:
[input] Apache Flex can optionally integrate with Adobe's embedded font
support.
[input] This feature requires a few font jars from the Adobe Flex SDK.
[input] The Adobe SDK license agreement for Adobe Flex 4.6 applies to
these jars.
[input] This license is not compatible with the Apache v2 license.
[input]
[input] Adobe Flex SDK License Agreement:
[input]
[input] All files contained in this Adobe Flex SDK download are subject
to and governed by the
[input] Adobe Flex SDK License Agreement specified here:
[input]
http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combined-20110916_0930.pdf,
[input] By downloading, modifying, distributing, using and/or accessing
any files in this Adobe Flex SDK,
[input] you agree to the terms and conditions of the applicable end user
license agreement.
[input]
[input] In addition to the Adobe license terms, you also agree to be
bound by the third-party terms specified here: 
[input] http://www.adobe.com/products/eula/third_party/.
[input] Adobe recommends that you review these third-party terms.
[input]
[input] Do you want to install this jar from the Adobe Flex SDK? (y,
[n])
y

ask-licenses:

air-check:

air-download:
[mkdir] Created dir: D:\f16\in
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

air-get-check:

air-get:
 [echo] Downloading Adobe AIR Runtime Kit for Windows from: 
http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

download_air:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

download_air_with_md5:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

check-cache:

download_using_get:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

get-if-not-cached:
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

check-params:

get-with-no-params:
  [get] Getting:
http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip?ts=201704161743
  [get] To: D:\f16\in\AdobeAIRSDK.zip
  [get]
http://airdownload.adobe.com/air/win/download/25.0//AdobeAIRSDK.zip?ts=201704161743
permanently moved to
https://airdownload.adobe.com/air/win/download/25.0/AdobeAIRSDK.zip?ts=201704161743
  [get] Getting:
http://flex.apache.org/installer/properties/sdk/en_US.properties
  [get] To: D:\f16\en_US.properties

c

Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-16 Thread Justin Mclean
Hi,

> I looked at your code.  There seems to be some logic issues and your
> version is probably the most elaborate.

Elaborate how? It contains the minimum required to get it to work that give the 
same functionality as that original line method.

Re logic issue iI assume you mean it will only set the headers for a single 
call? However I saw no other way of being able to clean up the event listeners 
other than adding yep more code to HTTPService which you would of likely 
complained about.

Thanks,
Justin

[GitHub] flex-blazeds pull request #1: Fix streaming on tomcat-7.0.27 + version.

2017-04-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/flex-blazeds/pull/1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-16 Thread justin
Hi,

I’ve looked through the code again and other than a couple of minor changes I 
can't see any obvious way to to either reduce the lines of code or the logic 
error Alex is referring to.

Someone care to enlighten me?

Thanks,
Justin

Re: FlexSDK 4.16.0 installer errors

2017-04-16 Thread danielmcquillen
Hi All,

Attempting ant install like others. Probs silly question but if I'm only
targeting captive runtime, do I need to follow steps #4 and #5 in the readme
and install the Flash Player content debugger and playerglobal.swc or can I
safely ignore those?

Alternatively, is the AIR installer going to be back online soon? Now that
it's gone I'm reminded of how helpful it was.

Thanks for any thoughts!

Daniel



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexSDK-4-16-0-installer-errors-tp60542p61138.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: FlexSDK 4.16.0 installer errors

2017-04-16 Thread Alex Harui
Hi,

I guess we never tested the Ant install on Windows.  The console output
showed that there is a bug in the script.
I guess the simplest fix is to edit installer.xml and remove this line
(which is line 354 for me):



Thanks,

-Alex


On 4/16/17, 9:38 AM, "Lydecker"  wrote:

>Hi Alex,
>
>Thanks for taking the time to look at this. I'm using Windows 10 64bit.
>
>As requested, the console output is below.



Re: FlexSDK 4.16.0 installer errors

2017-04-16 Thread Alex Harui


On 4/16/17, 8:20 PM, "danielmcquillen" 
wrote:

>Hi All,
>
>Attempting ant install like others. Probs silly question but if I'm only
>targeting captive runtime, do I need to follow steps #4 and #5 in the
>readme
>and install the Flash Player content debugger and playerglobal.swc or can
>I
>safely ignore those?

Well, technically, you don't need those, but I think Flash Builder might
think the folder isn't a Flex SDK if you don't have those files.  Not sure
if other IDEs are expecting those files as well.

>
>Alternatively, is the AIR installer going to be back online soon? Now that
>it's gone I'm reminded of how helpful it was.

The problem is that we either need to rewrite the MD5 buffering, or switch
to a 64-bit Windows EXE, but there is no way to generate an "installer for
the installer" in 64-bit Windows.  Other creative ideas are welcome, as
are volunteers to make the required changes.

I agree we need to do something to get the Installer to work, but I don't
think we've achieved consensus on what to do.

Thanks,
-Alex



Re: [4/6] git commit: [flex-asjs] [refs/heads/develop] - replace existing format bead if it exists

2017-04-16 Thread Alex Harui
Hi Justin,

What is the scenario where everybody will need this code?

-Alex

On 4/16/17, 9:24 PM, "jmcl...@apache.org"  wrote:

>replace existing format bead if it exists
>
>
>Project: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Frepo&data=02%7C01%7C%7C3ef9e6a946c
>4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362799
>98897039088&sdata=qaow7yDdU0PKcYss05ng7b7q4SXBnlyvp6b%2BOjCPGgU%3D&reserve
>d=0
>Commit: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fcommit%2F4842fa7a&data=02%7C01%7C%
>7C3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636279998897039088&sdata=gp5gH75saXS6x6mq8Q5L4ut3aQHCABcc%2BvN5s59fp
>2k%3D&reserved=0
>Tree: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Ftree%2F4842fa7a&data=02%7C01%7C%7C
>3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C636279998897039088&sdata=20%2FVuKlRYdoA1ZIobKbCUMggT1zvnkMnn5FBWWktjeI
>%3D&reserved=0
>Diff: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fdiff%2F4842fa7a&data=02%7C01%7C%7C
>3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C636279998897039088&sdata=lfk9qgcbF3yI9ncMjkIykEmloaHMnNB8tytiirKpxAU%3
>D&reserved=0
>
>Branch: refs/heads/develop
>Commit: 4842fa7a15a756026dcfa1ca4262039fded2db59
>Parents: 23f3c5a
>Author: Justin Mclean 
>Authored: Mon Apr 17 14:22:32 2017 +1000
>Committer: Justin Mclean 
>Committed: Mon Apr 17 14:22:32 2017 +1000
>
>--
> .../main/flex/org/apache/flex/html/DateField.as | 22 
> .../main/flex/org/apache/flex/html/DateField.as | 22 
> 2 files changed, 44 insertions(+)
>--
>
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fblob%2F4842fa7a%2Fframeworks%2Fpro
>jects%2FBasic%2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fhtml%2FDateField
>.as&data=02%7C01%7C%7C3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b3443879
>4aed2c178decee1%7C0%7C0%7C636279998897039088&sdata=lZFZ8SMVm6ygKxckfrk%2Bs
>Atp1d%2F9vNMXYi7eXUbYgqw%3D&reserved=0
>--
>diff --git 
>a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s 
>b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s
>index f46e453..ca142ba 100644
>--- 
>a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s
>+++ 
>b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s
>@@ -20,6 +20,7 @@ package org.apache.flex.html
> {
>   import org.apache.flex.core.IBead;
>   import org.apache.flex.core.IDateChooserModel;
>+  import org.apache.flex.core.IFormatBead;
>   import org.apache.flex.core.UIBase;
>   import org.apache.flex.core.ValuesManager;
>   
>@@ -74,6 +75,27 @@ package org.apache.flex.html
> 
>   super.addedToParent();
>   }
>+
>+  /**
>+   *  Replace existing format bead if it exists.
>+   *
>+   *  @copy org.apache.flex.core.IStrand#addBead()
>+   *
>+   *  @langversion 3.0
>+   *  @playerversion Flash 10.2
>+   *  @playerversion AIR 2.6
>+   *  @productversion FlexJS 0.0
>+   */
>+  override public function addBead(bead:IBead):void
>+  {
>+  if (bead is IFormatBead) {
>+  var formatBead:IBead = 
>getBeadByType(IFormatBead);
>+  if (formatBead != null) {
>+  removeBead(formatBead);
>+  }
>+  }
>+  super.addBead(bead);
>+  }
>   
>   /**
>*  The currently selected date (or null if no date has been 
> selected).
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fblob%2F4842fa7a%2Fframeworks%2Fpro
>jects%2FHTML%2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fhtml%2FDateField.
>as&data=02%7C01%7C%7C3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794
>aed2c178decee1%7C0%7C0%7C636279998897039088&sdata=5Lo6umoXpjQFdmhsQ8WtnByf
>YJhYKGT05zk28c69xe0%3D&reserved=0
>--
>diff --git 
>a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DateField.as
> 
>b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DateField.as
>index f33db9d..

Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-16 Thread Alex Harui
OK, more detail as promised.

So, good first try at a bead.   Maybe we don't agree on the scenario.  It
looked like this bead was considering a scenario where on one call, you
might set withCredentials=true, and on a subsequent call, you might set
withCredentials=false, in which case you don't want to remove the
listeners in postSend.

I was thinking of a much simpler scenario where you set withCredentials on
the XHR instance once and it stays unchanged.  IMO, these two scenarios
makes a good case for beads.  Before I saw your more elaborate version it
hadn't occurred to me that someone might want to make certain calls with
withCredentials being true sometimes and false other times.  So, by
encapsulating this code in a bead, a simpler version can be used for the
"set it once" crowd, and this more elaborate version could be used by
someone who does want to change withCredentials in different calls.

It occurred to me only this morning that HTTPService is an ElementWrapper
and thus the beads can assume the element is created by the time the bead
is added.

Also, in most simple cases, the adding of the bead replaces the need for a
boolean property.  IOW, if you don't need withCredentials set to true, you
don't add the bead and element.withCredentials remains at its default
false value.

So, the simplest version of this bead could look like this:

public function set strand(value:IStrand):void
{
   ((value as ElementWrapper).element as XHR).withCredentials = true;
}

No need for any event listeners or dispatching of preSend/postSend events.

But, you did point out that custom headers could also be implemented via a
bead.  And a custom headers bead might need the preSend event as well.
And Om pointed out that other JS libraries provide interceptor functions
that are similar to a preSend event, so adding a "preSend" event seems
worth the cost.  Other beads may leverage this, and thus you can't
attribute its cost to this particular CORS implementation.

And if you do move the custom headers code to a bead, then it will make
several of our examples smaller, so that's why I said that the final net
cost is <=0.

Regarding removing listeners, I just noticed that
ElementWrapper.removeBead does not set the beads strand to null.  Right
now I think it should.  What do others think?  And then if you want to
worry about being removed you could check for null and remove listeners,
but IMO, there should be very few if any scenarios where beads get removed.

IMO, there is "application developer decision making" and "framework
developer decision making".  When developing an application it is fine to
say "this is the way I need it to work" and not worry too much about
re-usability of code.  But we really need the developers of the framework
to consider how other folks may need to use or extend the framework code
and provide events/hooks for that so the framework is "Flex-ible".  So a
"preSend" event should be good.  Is a "postSend" ever going to be needed?
Possibly, I haven't thought it through.

Finally, users of optional features will pay a higher cost than if we just
in-line everything.  But then they can remove code from other options they
did not use.  And, as I mentioned earlier, it is fine to produce a
separate component with everything baked in if it turns out that folks
need that kind of optimization.  But realize that EVERY Flex app ever
built would be smaller and faster if if didn't use Flex.  IMO, no
framework exists to make your code small and fast, it exists to improve
developer productivity.  And while Flex made it really productive to build
the app, IMO, it failed for really big enterprise apps in the "last mile"
where all of that optional code did become a factor in size and
performance.  There's a good chance that nobody on this mailing list ever
hit this problem because those that did probably aren't Flex customers any
more, but I saw it many times, from companies that have the potential to
hire many of us and drive the next generation of Flex.  FlexJS is being
designed differently so that the "first mile" is as close to as fast as it
is in regular Flex, but also so that the "last mile" isn't where you run
out of resources.  It does take a different mindset from regular Flex, but
I believe, and I think the rest of the PMC believes, that it is the right
direction for us to take.

My 2 cents,
-Alex


On 4/15/17, 10:53 PM, "Justin Mclean"  wrote:

>Hi,
>
>So just for giggles I implemented this as has recommended.
>
>The PAYG cost ends up being the following if you use it:
>- The loading cost for JS is an extra file in debug / 50+ lines of
>compiled code. Runtime cost  in JS is two events dispatched and 50+ extra
>lines of code needed to be run.
>- 4 extra lines of code in AS version. The run time cost for AS is two
>events dispatched.
>
>The PAYG cost ends up being the following if you don’t use it for both AS
>and JS:
>- Two events dispatched and a couple of extra lines of code.
>
>If we were to go with my orig

Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-16 Thread Justin Mclean
Hi,

> So, good first try at a bead.   Maybe we don't agree on the scenario.  It
> looked like this bead was considering a scenario where on one call, you
> might set withCredentials=true, and on a subsequent call, you might set
> withCredentials=false,

Yes I said that was a requirement in one of my emails. It also why the function 
accepted it as a parameter rather than just setting it to true.

> in which case you don't want to remove the listeners in postSend.

AFAIKS you do want to remove them, otherwise if you called send again they are 
replaced and there’s a potential for a memory leak.

>  So, by encapsulating this code in a bead, a simpler version can be used for 
> the
> "set it once" crowd, and this more elaborate version could be used by
> someone who does want to change withCredentials in different calls.

So I should create an extra bead CORSWithCredentialsIsTrueBead where is it 
always true? Where user authentication is used there is probably always going 
to be a least one call i.e. the login call before the user is authenticated 
that you don’t want to pass the credentials on. I would guess that having the 
ability to set it would be the more common use case so this extra bead is 
probably not needed.

> Regarding removing listeners, I just noticed that
> ElementWrapper.removeBead does not set the beads strand to null.  

This seems like a bug to me, it should be doing that. That's part of the reason 
I added the remove listeners in the post send handler.

> Right now I think it should.  What do others think?  And then if you want to
> worry about being removed you could check for null and remove listeners,
> but IMO, there should be very few if any scenarios where beads get removed.

While not too common I've run into a couple of times. I just run into another 
earlier today with date formatting.

Thanks,
Justin

Re: [5/6] flex-asjs git commit: Bead to dead with simple date formats. Doesn’t support time zones, some foreign date formats, month names and a lot of other things.

2017-04-16 Thread Piotr Zarzycki
Hi Justin,

Nice bead. I like it. :) One thought I think "textChanged" event shouldn't
be dispatched through the bead. It should happen through the model or
strand.

Piotr

On Mon, Apr 17, 2017, 06:24  wrote:

> Bead to dead with simple date formats. Doesn’t support time zones, some
> foreign date formats, month names and a lot of other things.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
> Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/edd27839
> Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/edd27839
> Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/edd27839
>
> Branch: refs/heads/develop
> Commit: edd27839eefc8d2352dad8ee997142e3979418f8
> Parents: 4842fa7
> Author: Justin Mclean 
> Authored: Mon Apr 17 14:24:16 2017 +1000
> Committer: Justin Mclean 
> Committed: Mon Apr 17 14:24:16 2017 +1000
>
> --
>  .../html/accessories/SimpleDateFormatBead.as| 222 +++
>  1 file changed, 222 insertions(+)
> --
>
>
>
> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/edd27839/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> --
> diff --git
> a/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> new file mode 100644
> index 000..f2548a7
> --- /dev/null
> +++
> b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/SimpleDateFormatBead.as
> @@ -0,0 +1,222 @@
>
> +
> +//
> +//  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.
> +//
>
> +
> +package org.apache.flex.html.accessories
> +{
> +   import org.apache.flex.core.IBead;
> +   import org.apache.flex.core.IDateChooserModel;
> +   import org.apache.flex.core.IFormatBead;
> +   import org.apache.flex.core.IStrand;
> +import org.apache.flex.core.IStrandWithModel;
> +   import org.apache.flex.events.Event;
> +   import org.apache.flex.events.EventDispatcher;
> +
> +   /**
> +* The DateFormatBead class formats the display of a DateField
> using a format.
> +*
> + *  @flexjsignoreimport org.apache.flex.core.IStrandWithModel
> + *
> +*  @langversion 3.0
> +*  @playerversion Flash 10.2
> +*  @playerversion AIR 2.6
> +*  @productversion FlexJS 0.8
> +*/
> +   public class SimpleDateFormatBead extends EventDispatcher
> implements IBead, IFormatBead
> +   {
> +   /**
> +* constructor.
> +*
> +*  @langversion 3.0
> +*  @playerversion Flash 10.2
> +*  @playerversion AIR 2.6
> +*  @productversion FlexJS 0.8
> +*/
> +   public function SimpleDateFormatBead()
> +   {
> +   }
> +
> +   private var _format:String;
> +   private var _seperator:String;
> +   private var _propertyName:String;
> +   private var _eventName:String;
> +   private var _formattedResult:String;
> +
> +   /**
> +*  The name of the property on the model holding the
> value to be formatted.
> +*  The default is selectedDate.
> +*
> +*  @langversion 3.0
> +*  @playerversion Flash 10.2
> +*  @playerversion AIR 2.6
> +*  @productversion FlexJS 0.8
> +*/
> +   public function get propertyName():String
> +   {
> +   if (_propertyName == null) {
> +   return "selectedDate";
> +   }
> +   r

Re: [5/6] flex-asjs git commit: Bead to dead with simple date formats. Doesn’t support time zones, some foreign date formats, month names and a lot of other things.

2017-04-16 Thread Justin Mclean
Hi,

> Nice bead. I like it. :) One thought I think "textChanged" event shouldn't
> be dispatched through the bead. It should happen through the model or
> strand.

That was in the original code not something I changed, so I’m not sure of the 
exact consequences of changing that.

Basically I fixed a couple of bugs, added the format and separator properties 
and changed the contents of handleTextChange to be non US / format specific.

Thanks,
Justin

Re: [5/6] flex-asjs git commit: Bead to dead with simple date formats. Doesn’t support time zones, some foreign date formats, month names and a lot of other things.

2017-04-16 Thread piotrz
Ohh..Ok, so we have to check. Maybe that's something from the past and there
will not be breakages. 

I will check it tomorrow if won't bead me earlier. :) 

Thanks,
Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Re-5-6-flex-asjs-git-commit-Bead-to-dead-with-simple-date-formats-Doesn-t-support-time-zones-some-fo-tp61144p61146.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: git commit: [flex-asjs] [refs/heads/develop] - CORS security. Allow auth credentials to be passed when using cross site calls. This is required as well as setting the Access-Control-Allow-Origin h

2017-04-16 Thread piotrz
Hi Justin,

So if we have some problems here - maybe you should remove this bead from
framework, but since you need it - put it in your end application.

In framework itself add simple bead as Alex suggested. Let's go with
providing simple beads by framework leaving to the user more sophisticated
scenario.

If I correct understand HttpService can be both with credential and not? -
That's something which should be cover by the user. 

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/Re-git-commit-flex-asjs-refs-heads-develop-CORS-security-Allow-auth-credentials-to-be-passed-when-us-tp61050p61147.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.