GWT meets Adobe Flex: gwt4air 2.1 is here !

398 views
Skip to first unread message

Alain Ekambi

unread,
May 16, 2011, 4:13:24 PM5/16/11
to google-we...@googlegroups.com, nino ekambi


Hello  people,


I m glad to announce the release of gwt4air 2.1  today. (http://code.google.com/p/gwt4air/)

This one has been a really hard piece of work because  it adds some brand new features and possibilities for GWT developers.

The release is compatible with GWT 2.3 , Adobe AIR 2.6EXT GWT 2.2.3, Appcelerator Titanium Desktop and Adobe Flex 4.1

Below are some of the new features included in this release. 



I m looking forward for your feedbacks.


Regards,


Alain


P.S  Again i can not thank Thomas Broyer enough for  his work on gwt-in-the-air  from which this project is a  fork.


  • Java (GWT)  API for Adobe Flex (Browser) 
Panel panel = Panel.newInstance("Panel Container Example");
DateChooser dateChooser = DateChooser.newInstance();
dateChooser
.setVerticalCenter(0);
dateChooser
.setHorizontalCenter(0);
panel
.addElement(dateChooser);
Button button = Button.newInstance("Click me");
button
.setHeight(40);
ControlBar controlBar = ControlBar.newInstance();
controlBar
.addElement(button);
panel
.addElement(controlBar);

Application.get().addElement(panel);


panelcb.png


  •    Java (GWT) API for Adobe Flex (AIR)
Panel panel = Panel.newInstance("FileSystemTree Example");
panel
.setHorizontalCenter(0);
panel
.setVerticalCenter(0);
panel
.setPercentHeight(60);
panel
.setPercentWidth(60);
panel
.setLayout(ContainerLayout.ABSOLUTE);
FileSystemTree tree = FileSystemTree.newInstance();
tree
.setPercentHeight(100);
tree
.setPercentWidth(100);
tree
.setDirectory(File.getApplicationDirectory());
panel
.addElement(tree);
WindowedApplication.get().addElement(panel);


airfst.png


  • Clientside PDF generation in the browser (Read only)
PDF pdf = PDF.newInstance();
pdf
.addPage();
pdf
.writeText(“Hello, World”);
ByteArray data = pdf.save();
Application.get().saveFile(data, "Generated.pdf");
  • Clientside Excel generaton in the browser (read and write)
Sheet excelSheet = Sheet.newInstance();
excelSheet
.resize(10, 10);
excelSheet
.setCell(0, 0, "Hello, World");
ExcelFile file = ExcelFile.newInstance();
file
.addSheet(excelSheet);
ByteArray data = file.saveToByteArray();
Application.get().saveFile(data, "Generated.xls");

  • GWT-Containers Support

flexandgwt.png

--


flexandgwt.png
panelcb.png
airfst.png

Juan Pablo Gardella

unread,
May 16, 2011, 7:56:38 PM5/16/11
to google-we...@googlegroups.com
Great job!! Thanks for share it

2011/5/16 Alain Ekambi <jazzma...@googlemail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

panelcb.png
flexandgwt.png
airfst.png

Alain Ekambi

unread,
May 17, 2011, 3:43:16 AM5/17/11
to google-we...@googlegroups.com
Thank  you Juan, 
Looking forward for any inputs

cheers,

Alain

2011/5/17 Juan Pablo Gardella <gardella...@gmail.com>
panelcb.png
airfst.png
flexandgwt.png

gwt.user

unread,
May 17, 2011, 10:57:35 AM5/17/11
to Google Web Toolkit
Hey man,
I came accross your project and i have to say this is just amazing !!
How do you compile GWT code to ActionScript ?
Really unbelievible !!
There are some good GWT UI libraries in the market like smart gwt or
ext-gwt but i think yours is definitly going to be on top.

Is the explorer located at http://www.gwt4air.appspot.com/ also
written in Java? is the source available ? I really like the UI.

Keep up the good work !

Denis

On May 17, 9:43 am, Alain Ekambi <jazzmatad...@googlemail.com> wrote:
> Thank  you Juan,
> Looking forward for any inputs
>
> cheers,
>
> Alain
>
> 2011/5/17 Juan Pablo Gardella <gardellajuanpa...@gmail.com>
>
>
>
>
>
>
>
>
>
> > Great job!! Thanks for share it
>
> > 2011/5/16 Alain Ekambi <jazzmatad...@googlemail.com>
>
> >> Hello  people,
>
> >> I m glad to announce the release of* gwt4air 2.1** * today. (
> >>http://code.google.com/p/gwt4air/)
>
> >> This one has been a really hard piece of work because  it adds some brand
> >> new features and possibilities for GWT developers.
>
> >> The release is compatible with *GWT 2.3* ,* Adobe AIR 2.6*, *EXT GWT
> >> 2.2.3, Appcelerator Titanium Desktop* and *Adobe Flex 4.1*
>
> >> Below are some of the new features included in this release.
>
> >> I m looking forward for your feedbacks.
>
> >> Regards,
>
> >> Alain
>
> >> P.S  Again i can not thank Thomas Broyer enough for  his work on
> >> gwt-in-the-air  from which this project is a  fork.
>
> >>    - *Java (GWT)  API for Adobe Flex (Browser) *
>
> >> Panel panel = Panel.newInstance("Panel Container Example");
>
> >> DateChooser dateChooser = DateChooser.newInstance();
>
> >> dateChooser.setVerticalCenter(0);
>
> >> dateChooser.setHorizontalCenter(0);
>
> >> panel.addElement(dateChooser);
>
> >> Button button = Button.newInstance("Click me");
>
> >> button.setHeight(40);
>
> >> ControlBar controlBar = ControlBar.newInstance();
>
> >> controlBar.addElement(button);
>
> >> panel.addElement(controlBar);
>
> >> Application.get().addElement(panel);
>
> >> [image: panelcb.png]
>
> >>    -    *Java (GWT) API for Adobe Flex (AIR)*
>
> >> Panel panel = Panel.newInstance("FileSystemTree Example");
>
> >> panel.setHorizontalCenter(0);
>
> >> panel.setVerticalCenter(0);
>
> >> panel.setPercentHeight(60);
>
> >> panel.setPercentWidth(60);
>
> >> panel.setLayout(ContainerLayout.ABSOLUTE);
>
> >> FileSystemTree tree = FileSystemTree.newInstance();
>
> >> tree.setPercentHeight(100);
>
> >> tree.setPercentWidth(100);
>
> >> tree.setDirectory(File.getApplicationDirectory());
>
> >> panel.addElement(tree);
>
> >> WindowedApplication.get().addElement(panel);
>
> >> [image: airfst.png]
>
> >>    - *Clientside PDF generation in the browser (Read only)*
>
> >> PDF pdf = PDF.newInstance();
>
> >> pdf.addPage();
>
> >> pdf.writeText(“Hello, World”);
>
> >> ByteArray data = pdf.save();
>
> >> Application.get().saveFile(data, "Generated.pdf");
>
> >>    - *Clientside Excel generaton in the browser (read and write)*
>
> >> Sheet excelSheet = Sheet.newInstance();
>
> >> excelSheet.resize(10, 10);
>
> >> excelSheet.setCell(0, 0, "Hello, World");
>
> >> ExcelFile file = ExcelFile.newInstance();
>
> >> file.addSheet(excelSheet);
>
> >> ByteArray data = file.saveToByteArray();
>
> >> Application.get().saveFile(data, "Generated.xls");
>
> >>    - *GWT-Containers Support*
>
> >> [image: flexandgwt.png]
>
> >> --
>
> >> GWT API for  non Java based platforms
> >>http://code.google.com/p/gwt4air/
> >>http://www.gwt4air.appspot.com/
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-we...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-tool...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> GWT API for  non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/
>
>  panelcb.png
> 17KViewDownload
>
>  airfst.png
> 91KViewDownload
>
>  flexandgwt.png
> 39KViewDownload

Alain Ekambi

unread,
May 17, 2011, 3:41:28 PM5/17/11
to google-we...@googlegroups.com
Hello Denis,

I m glad you like the project.
gwt4air does not do any GWT to ActionScript compilation. I might consider that in the future dough.
Since the project is opensource you can check the FLEX.init() method to see how the bootstraping is done.

Smart GWT and EXT-GWT are really good and popular frameworks in the GWT ecosystem. My goal is to  make gwt4air become a good alternative to those libraries. Because gwt4air leverage Flash there are some features that are available in gwtair and not  in the common GWT libraries 
e.g PDF and Excel on the client. So let s see if that will push some more people to gwt4air :)

The explorer will be opensourced but i cant tell when because i need to bring it to a form where i can give it to others :)
If you have any question about a component you saw in the explorer, feel free to ask

cheers,

Alain

2011/5/17 gwt.user <gwt....@yahoo.fr>

Hey man,
I came accross your project and i have to say this is just amazing !!
How do you compile GWT code to ActionScript ?
Really unbelievible !!
There are some good GWT UI libraries in the market like smart gwt  or
ext-gwt but i think yours is definitly going to be on top.

Is the explorer located at http://www.gwt4air.appspot.com/ also
written in Java? is the source available ? I really like the UI.

Keep up the good work !

Denis

gwt.user

unread,
May 17, 2011, 5:04:09 PM5/17/11
to google-we...@googlegroups.com
How did you implement the animation right on the startpage of the explorether ?
I mean the bouncing letters.

Thanks.


Alain Ekambi

unread,
May 17, 2011, 5:23:54 PM5/17/11
to google-we...@googlegroups.com
That looks more difficult then it really is

ArrayCollection dataProvider = ArrayCollection.newInstance();
dataProvider
.addItem("/demo/g.png");
dataProvider
.addItem("/demo/w.png");
dataProvider
.addItem("/demo/t.png");
dataProvider
.addItem("/demo/4.png");
dataProvider
.addItem("/demo/a.png");
dataProvider
.addItem("/demo/i.png");
dataProvider
.addItem("/demo/r.png");

final Fisheye fishEye = Fisheye.newInstance();
fishEye
.setDataProvider(dataProvider);
fishEye
.setItemRenderer(Image.newInstance());
fishEye
.setPercentHeight(100);
fishEye
.setPercentWidth(100);
fishEye
.setStyle("verticalAlign", "bottom");

Application.get().addElement(fishEye);
You can also refer to 
http://code.google.com/p/gwt4air/wiki/Fisheye

Best 

Alain


2011/5/17 gwt.user <gwt....@yahoo.fr>
How did you implement the animation right on the startpage of the explorether ?
I mean the bouncing letters.

Thanks.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--

gwt.user

unread,
May 18, 2011, 7:04:55 PM5/18/11
to google-we...@googlegroups.com
Thanks Alain,

I m playing around with the API right now and everything works  great so far. I still cant beliebe i m writing a Flex application :)
I hope your project will get more attention

Good luck !

Denis

P.S

You also said something about PDF and Excel. Can i see a  an example somewhere ? 

Juan Pablo Gardella

unread,
May 19, 2011, 9:38:00 AM5/19/11
to google-we...@googlegroups.com
Here are the examples http://www.gwt4air.appspot.com/


2011/5/18 gwt.user <gwt....@yahoo.fr>
--

Alain Ekambi

unread,
May 19, 2011, 11:12:15 AM5/19/11
to google-we...@googlegroups.com
Here is the client side PDF generation example http://www.gwt4air.appspot.com/#mx.extended.Export
cheers,

Alain

2011/5/19 Juan Pablo Gardella <gardella...@gmail.com>

Murat Yener

unread,
May 19, 2011, 1:54:24 PM5/19/11
to Google Web Toolkit
Great work Alain (as usual)...

On May 16, 11:13 pm, Alain Ekambi <jazzmatad...@googlemail.com> wrote:
> Hello  people,
>
> I m glad to announce the release of* gwt4air 2.1** * today. (http://code.google.com/p/gwt4air/)
>
> This one has been a really hard piece of work because  it adds some brand
> new features and possibilities for GWT developers.
>
> The release is compatible with *GWT 2.3* ,* Adobe AIR 2.6*, *EXT GWT 2.2.3,
> Appcelerator Titanium Desktop* and *Adobe Flex 4.1*
>
> Below are some of the new features included in this release.
>
> I m looking forward for your feedbacks.
>
> Regards,
>
> Alain
>
> P.S  Again i can not thank Thomas Broyer enough for  his work on
> gwt-in-the-air  from which this project is a  fork.
>
>    - *Java (GWT)  API for Adobe Flex (Browser) *
>
> Panel panel = Panel.newInstance("Panel Container Example");
> DateChooser dateChooser = DateChooser.newInstance();
> dateChooser.setVerticalCenter(0);
> dateChooser.setHorizontalCenter(0);
> panel.addElement(dateChooser);
>
> Button button = Button.newInstance("Click me");
> button.setHeight(40);
> ControlBar controlBar = ControlBar.newInstance();
> controlBar.addElement(button);
> panel.addElement(controlBar);
>
> Application.get().addElement(panel);
>
> [image: panelcb.png]
>
>    -    *Java (GWT) API for Adobe Flex (AIR)*
>
> Panel panel = Panel.newInstance("FileSystemTree Example");
> panel.setHorizontalCenter(0);
> panel.setVerticalCenter(0);
> panel.setPercentHeight(60);
>
> panel.setPercentWidth(60);
> panel.setLayout(ContainerLayout.ABSOLUTE);
> FileSystemTree tree = FileSystemTree.newInstance();
> tree.setPercentHeight(100);
> tree.setPercentWidth(100);
> tree.setDirectory(File.getApplicationDirectory());
>
> panel.addElement(tree);
> WindowedApplication.get().addElement(panel);
>
> [image: airfst.png]
>
>    - *Clientside PDF generation in the browser (Read only)*
>
> PDF pdf = PDF.newInstance();
> pdf.addPage();
> pdf.writeText(“Hello, World”);
> ByteArray data = pdf.save();
> Application.get().saveFile(data, "Generated.pdf");
>
>    - *Clientside Excel generaton in the browser (read and write)*
>
> Sheet excelSheet = Sheet.newInstance();
> excelSheet.resize(10, 10);
> excelSheet.setCell(0, 0, "Hello, World");
>
> ExcelFile file = ExcelFile.newInstance();
> file.addSheet(excelSheet);
> ByteArray data = file.saveToByteArray();
> Application.get().saveFile(data, "Generated.xls");
>
>    - *GWT-Containers Support*
>
> [image: flexandgwt.png]
>
> --
>
> GWT API for  non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/
>
>  flexandgwt.png
> 39KViewDownload
>
>  panelcb.png
> 17KViewDownload
>
>  airfst.png
> 91KViewDownload

jhulford

unread,
May 20, 2011, 10:16:17 AM5/20/11
to Google Web Toolkit
This all looks pretty fantasic, nice work.

You might want to check that example, though. I'm not sure why, but
the "Export Grid to PDF" button doesn't do anything when I click it in
Firefox 3.6.17 w/ the Acrobat plugin.

On May 19, 11:12 am, Alain Ekambi <jazzmatad...@googlemail.com> wrote:
> Here is the client side PDF generation examplehttp://www.gwt4air.appspot.com/#mx.extended.Export
> <http://www.gwt4air.appspot.com/#mx.extended.Export>cheers,
>
> Alain
>
> 2011/5/19 Juan Pablo Gardella <gardellajuanpa...@gmail.com>

Alain Ekambi

unread,
May 20, 2011, 10:19:02 AM5/20/11
to google-we...@googlegroups.com
@jhulford
Thank you.
I ll have a look at it. 
It should be working :)

2011/5/20 jhulford <jhul...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

nino

unread,
May 20, 2011, 12:43:09 PM5/20/11
to google-we...@googlegroups.com
I actally had a bug in one of the PDF generation class, see http://code.google.com/p/gwt4air/issues/detail?id=4
The issue is fixed  and the demo now generates the PDF (I just checked).

Greets,

Alain

gwt.user

unread,
May 23, 2011, 4:22:17 PM5/23/11
to google-we...@googlegroups.com
Works great.
Thank you Alain.
By the way have you ever thought about selling this to Adobe ?
I think that might be interesting for them :)

Alain Ekambi

unread,
May 24, 2011, 2:51:21 PM5/24/11
to google-we...@googlegroups.com
Well no i  did not had that in mind :)
First I dont know if i m ready to "give the project away".
 Also i dont know if Adobe will be interested in anything that do not include ActionScript and MXML to build Flexapplications. 
But i guess i will listen to them  if they come to me and ask about the project :)
First let s make the project become the best GWT UI library out there :)

2011/5/23 gwt.user <gwt....@yahoo.fr>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

gwt.user

unread,
May 26, 2011, 1:08:08 PM5/26/11
to google-we...@googlegroups.com
 "Also i dont know if Adobe will be interested in anything that do not include ActionScript and MXML to build Flexapplications" 

You wont know until you try do yo ?
Technically your project is really awesome man but more then the technical battle it s the commnucation battle that you  will have to win.
If  i could come up with only half of the ideas poeple like you have i ll be blogging tweeting spaming or wathever about it :)

There are some googlers here in the forum. i would bombard then with emails until i get their attention. loool
Specially when a project deserves some attention. GWT is an awesome framework and with the work of people like yourself it s just becoming monumental.
The capabilities are becoming limitless.
If someboy told me sometimes ago i could write a Flex application in Java i would think  he is out of his mind.


"First let s make the project become the best GWT UI library out there"

It starts with you man.
Go out there and nerv some people about your work. It s worth it.

Just my 2cents.

Best,

Denis

Alain Ekambi

unread,
May 26, 2011, 6:59:55 PM5/26/11
to google-we...@googlegroups.com
@Denis
Thanks for your words.
You are absolutely right.
I guess i need to go  nerv some people out there :)

Cheers

2011/5/26 gwt.user <gwt....@yahoo.fr>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

gwt.user

unread,
May 31, 2011, 6:44:59 PM5/31/11
to google-we...@googlegroups.com
How do i use RPC with the gwt4air Flex API ?
Cant get it to work.
Thx

Alain Ekambi

unread,
Jun 1, 2011, 4:39:05 AM6/1/11
to google-we...@googlegroups.com
The Flex API of gwt4air is just a  new UI layer for GWT. Meaning that all the backend stuff(RPC, RF, RequestBuilder, etc...) should work as usual.
Here is a real world example of using GWT RPC with gwt4air. http://www.gwt4air.appspot.com/#mx.extended.rpc
Like you can see i just swapped the  native GWT UI with a FleX UI. The RPC service are the default one that  gets created by GPE(when creating a new project)

cheers,

Alain


2011/6/1 gwt.user <gwt....@yahoo.fr>
How do i use RPC with the gwt4air Flex API ?
Cant get it to work.
Thx

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
 

gwt.user

unread,
Jun 4, 2011, 5:47:44 AM6/4/11
to google-we...@googlegroups.com
I m trying to add a google maps in my application.
But i cant find the package com.ekambi.gwt,web.maps.*  in gwt4air 2.1

m I missing something ? 


Alain Ekambi

unread,
Jun 4, 2011, 2:58:25 PM6/4/11
to google-we...@googlegroups.com
The Google Maps API is not part of  gwt4air 2.1 
I just added it and will be  in 2.2 (there is no release date yet for 2.2)

cheers,

Alain

2011/6/4 gwt.user <gwt....@yahoo.fr>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

leandro

unread,
Jun 5, 2011, 8:56:58 AM6/5/11
to google-we...@googlegroups.com
Hi, 
I just went to your project and i have to say this is just mind blowing! 
Are you doing this full time ? 
Really i wonder how you guyz come up with this kind of stuff.
We have been struggling integrating  flex client into how existing GWT application.
but  that did not scale very well. Maintining MXML/AS3, JavaScript and Java in the same project is a nightmare.
Last year at Adobe Max i asked an engineer at from adobe if it s possible to write Flex applications without using AS3 and MXML because we wanted to keep everything in Java
and he basically said that s impossible. So i wonder how do you do this ? 
I  cant wait to play to hero tomorrow at the office when i present the solution that will solve our problems :)

Good work man

Alexandro

leandro

unread,
Jun 6, 2011, 3:53:41 AM6/6/11
to google-we...@googlegroups.com
wired..
looks  like my post did not went through...

Alain Ekambi

unread,
Jun 7, 2011, 4:39:32 AM6/7/11
to google-we...@googlegroups.com
Hello Alexandro,

Thank you for your kind words.
I m glad that you like the project. I m also happy that it can help you solve some of the problems you have.
Gwt4Air is  a free time project. We use it internally at the company i work but i dont get paid for that. It s small company so i decided to play the nice guy :).But I wish I could do this full time  dough. 

i m know the link you provided. As a matter of fact i have a comment there.
While searching for ideas on how to implement the Flex API i came accross that post. What i did not like about that solution was the fact that the user must deal with both sides. Flex and GWT. I wanted a more simpler solution where one will only programm in Java like any GWT project. Hopefully i did a good job at that.

Concerning what the Adobe Engineer told you: I think  what he ment is that  for every MXML based Flex project the MXML Compiler  does  some initialization work that you will have to do manually  if you dont want to use MXML. And that initialization is a quiet complex thing. So  he probably thought that no one would be crazy enough to try to figure out what the compiler really does . But because i wanted to use GWT to write Flex applicatons i had to be  crazy enough loooool.

cheers,

Alain

2011/6/5 leandro <leand...@googlemail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

IQBAL YUSUF

unread,
Jun 7, 2011, 10:50:23 AM6/7/11
to google-we...@googlegroups.com
You rock Alain... awesome project.. I'm glad that you thought --> "I wanted a more simpler solution where one will only programm in Java like any GWT project." ... Great thinking.... Now I'm going to play with Flex component since I can do it from Java GWT. I'm specially interested to use "mx.controls.VideoDisplay" component and hope your library can play that. Thanks Again...

Iqbal Yusuf

Alain Ekambi

unread,
Jun 7, 2011, 11:10:33 AM6/7/11
to google-we...@googlegroups.com

Hi Yusuf,
Thank you.
The mx.controls.VideoDisplay should work without any problem. If there is any issue please let me know.
But remember  is a very primitive UI Component. Even Adobe does not use it :) . The spark.components.VideoPlayer is more advanced but is not in 2.1
2.2 will have full support of spark components.


2011/6/7 IQBAL YUSUF <iqbalyu...@gmail.com>
You rock Alain... awesome project.. I'm glad that you thought --> "I wanted a more simpler solution where one will only programm in Java like any GWT project." ... Great thinking.... Now I'm going to play with Flex component since I can do it from Java GWT. I'm specially interested to use "mx.controls.VideoDisplay" component and hope your library can play that. Thanks Again...

Iqbal Yusuf

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Alain Ekambi

unread,
Jun 7, 2011, 7:09:45 PM6/7/11
to google-we...@googlegroups.com
I just added a demo of the VideoDisplay component
You can check the source to see how it works.

Best,

Alain 

2011/6/7 Alain Ekambi <jazzma...@googlemail.com>

IQBAL YUSUF

unread,
Jun 7, 2011, 11:58:41 PM6/7/11
to google-we...@googlegroups.com
Thanks.....

gwt.user

unread,
Jun 8, 2011, 3:50:55 AM6/8/11
to google-we...@googlegroups.com
You said that you "manually started Flex". But i cant see where that s happening in gwt4air. How did you do that ? 

leandro borbosa

unread,
Jun 8, 2011, 3:57:21 AM6/8/11
to google-we...@googlegroups.com
This is a free time project ? ?
Really impressive stuff. 

"Hopefully i did a good job at that."
I  ve played around with the library i must say you did more then a good job at that.
I still cant believe i m writing a Flex application.

I just wonder what makes you start this project. I mean Flex is not a small framework. Exporting it to GWT must have been some hard work.

2011/6/7 Alain Ekambi <jazzma...@googlemail.com>

Alain Ekambi

unread,
Jun 10, 2011, 4:12:47 AM6/10/11
to google-we...@googlegroups.com
@Denis.
The "ActionScript part" of gwt4air is not  opensource. Also i dont know if i ll open that yet. Need to think about it. 

@Leandro
The idea of gwt4air started after we had a requirement to implement a web and a desktop client for the same application. We wanted to be able to do that using only one code basis. GWT provided us the right platform to do so. Because GWT generates HTML/JS and CSS we could deploy the same code to the browser and to AIR. Then  then client wanted to also hav a Flex widget on the web client (to enable client side PDF generation). Because i wanted to  that using GWT I started looking for a solution. And the results of those researchs is what you see in gwt4air

If you are more interested you can see the story of the genesis here:


Best,

Alain

2011/6/8 leandro borbosa <leand...@googlemail.com>

leandro borbosa

unread,
Jun 13, 2011, 5:21:47 AM6/13/11
to google-we...@googlegroups.com
Your work s really impressive man.
GWT is a great tool (Thanks Google)
But guys like you are bringing GWT to another level. 

I will join Denis and ask you if you can share how the Flex API int
Keep it up ?


2011/6/10 Alain Ekambi <jazzma...@googlemail.com>

leandro borbosa

unread,
Jun 13, 2011, 5:23:17 AM6/13/11
to google-we...@googlegroups.com
Sorry I  send the post to fast
I was asking if you can share how the Flex API internaly works ? I mean not necessary open sourcing it. But just share the principle. 
Thanks 
Leandro

2011/6/13 leandro borbosa <leand...@googlemail.com>

Alain Ekambi

unread,
Jun 13, 2011, 4:49:31 PM6/13/11
to google-we...@googlegroups.com
Please refer to the wiki
everything is explained there

Regards,

Alain

2011/6/13 leandro borbosa <leand...@googlemail.com>
Message has been deleted

IQBAL YUSUF

unread,
Jun 18, 2011, 11:53:26 PM6/18/11
to google-we...@googlegroups.com
Hey Alain:

Bugging you again. I was trying to run gwt4air on my local box but ran into some cross browser issue. I do have a crossdomain.xml under "war" folder but still getting it. Don't know what I'm doing wrong.

ReferenceError: Error #1056: Cannot create property allowCodeImport on flash.system.LoaderContext.
at mx.core::CrossDomainRSLItem/completeCdRslLoad()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:277]
at mx.core::CrossDomainRSLItem/itemCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:386]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

Alain Ekambi

unread,
Jun 19, 2011, 4:09:02 AM6/19/11
to google-we...@googlegroups.com
Hello Yusuf,
What exactly are you trying to do ? Run gwt4air from localhost ? XSite Request ? 
Do you have a small testcase implementing EntryPoint for me ?

Best,
Alain

2011/6/19 IQBAL YUSUF <iqbalyu...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Iqbal Yusuf

unread,
Jun 20, 2011, 12:11:44 AM6/20/11
to google-we...@googlegroups.com
Hi Alain:

I just wanted to try out your code for the first time and basically took your Video Display code to do it. Here is what I have done.

Downloaded gwt4air 2.1

Put gwt4air-2.1.jar in my class path by putting it under /war/WEB-INF/lib and added it through my Eclipse

Put gwt4air folder with all those swf files  under /war

Then basically tried the code from your example which deals with Video display. 

I'll try the code again and send you the source code.

I'm trying to run it from my laptop's localhost using Jetty in hosted mode. I also tried to run the code outside hosted mode from Jetty with same error message.

Thanks.

Alain Ekambi

unread,
Jun 20, 2011, 2:34:27 AM6/20/11
to google-we...@googlegroups.com
I guess the problem might be the video  file you are trying to load. Are you loading it from another domain ? 
Please send me a TestCase implementing EntryPoint. 
I ll have a look at it ?
Regards,

Alain

2011/6/20 Iqbal Yusuf <iyu...@dcl-online.com>

Alain Ekambi

unread,
Jun 20, 2011, 3:22:14 AM6/20/11
to google-we...@googlegroups.com
Please also note that :

The Flash player restricts access to other domains other than the current one where the app is hosted (even if it is on your local machine) if you are in control of the remote host where the REST data is, check that you have a crossdomain.xml on the domain´s root folder. So  crossdomain.xml must be in the root folder of the domain you are trying to acess. Not the domain from which you are making the request.
 If you are not in control or you cannot request such file AND the app will be on a different domain you will need to workarround that security setting by creating a local script that will handle remote requests as a proxy (php, jsp, asp, etc). 


2011/6/20 Alain Ekambi <jazzma...@googlemail.com>

Iqbal Yusuf

unread,
Jun 20, 2011, 5:32:56 PM6/20/11
to google-we...@googlegroups.com
Here is in detail what I've done so far.

Step 0:
Created a GWT application using Eclipse IDE with default settings.

Step 1:
Followed your instruction as stated here ==> http://code.google.com/p/gwt4air/wiki/FlexStart

Step 2:
Here is my entry point class;
package com.bdeshtv.gwtairtest.client;

import com.ekambi.gwt.web.flex.client.core.framework.FLEX;
import com.ekambi.gwt.web.flex.client.core.framework.FlexInitializationHandler;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;

public class Gwt4AirTest implements EntryPoint {

private static final String SERVER_ERROR = "An error occurred while "
+ "attempting to contact the server. Please check your network "
+ "connection and try again.";

private final GreetingServiceAsync greetingService = GWT
.create(GreetingService.class);
public void onModuleLoad() {

FLEX.init(new FlexInitializationHandler() {
  @Override
  public void onInitialization() {
    
     // your code here

}});
 
}
}


Here is the error message again. I didn't have to use any controls to invoke the error message. Just adding init method will invoke it. I do see some folders are getting accessed from the error message. I don't even have this folder or E: drive on my laptop. 

An ActionScript error has occured:

Alain Ekambi

unread,
Jun 20, 2011, 6:26:08 PM6/20/11
to google-we...@googlegroups.com
This is really wired.
I ve never seen this error before
Will have a look at it and get back to to you


2011/6/20 Iqbal Yusuf <iyu...@dcl-online.com>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Alain Ekambi

unread,
Jun 20, 2011, 6:36:17 PM6/20/11
to google-we...@googlegroups.com
Can you also please tell me if you are able to run the explorer on your machine ?
Best,


Alain 

2011/6/21 Alain Ekambi <jazzma...@googlemail.com>

Iqbal Yusuf

unread,
Jun 20, 2011, 6:39:52 PM6/20/11
to google-we...@googlegroups.com
Yes I can run the explorer from here 

Alain Ekambi

unread,
Jun 20, 2011, 6:59:43 PM6/20/11
to google-we...@googlegroups.com

I ve run the example in different browsers and different machines and still cant reproduce the error. It looks like there s problem with your local settings. But i cant figure out what. 
Do you have access to another machine  to test ? In the mean time i ll still investigate


2011/6/21 Iqbal Yusuf <iyu...@dcl-online.com>
Yes I can run the explorer from here 
On Mon, Jun 20, 2011 at 5:36 PM, Alain Ekambi <jazzma...@googlemail.com> wrote:
Can you also please tell if you are able to run the explorer on your machine ?

Iqbal Yusuf

unread,
Jun 20, 2011, 11:47:25 PM6/20/11
to google-we...@googlegroups.com
Hey Alain:

First of all I'm extremely sorry about the false call. Yes you are right it was my FireFox browser issue. Everything is running as you said. Thanks again for a great library. I've put up your video display module with video source pointing to one of my Amazon Cloudfront RTMP video. It works.

Alain Ekambi

unread,
Jun 21, 2011, 2:06:44 AM6/21/11
to google-we...@googlegroups.com
Hello Yusuf,
I m glad  you got it to work.
I took a look at the link you provided. Looks pretty :)
Maybe you want to change the backgroundColor to white ? 
You can do that by calling 
Applicaton.get().setStyle("backgroundColor", "#FFFFFF");

in the initHandler

Little complicated for now i have to admit. 2.2 will try to simplefy the API for thing like backgroundcolors.

Thank you 4 using gwt4air.

cheers,

Alain



2011/6/21 Iqbal Yusuf <iyu...@dcl-online.com>

Iqbal Yusuf

unread,
Jun 21, 2011, 10:00:08 AM6/21/11
to google-we...@googlegroups.com
Well a BIG THANK YOU Alain.

I'm just enjoying your brilliant cooked up library. :)

That link I put up just for you to test so I haven't done anything yet. Since all my video contents are up in the Amazon CloudFront cloud it was vital that I could stream video using rtmp protocol using your tool. It is working so now I will start my real development soon. 

gwt.user

unread,
Jun 24, 2011, 7:01:35 AM6/24/11
to google-we...@googlegroups.com
Hi Alain
I just saw this component in the explorer 
But could not find it in 2.1
Amazing component. I ve been looking for something like for a long time now
Man i want that now !!! :)





Alain Ekambi

unread,
Jun 24, 2011, 7:24:12 AM6/24/11
to google-we...@googlegroups.com
Hi there, 
Sorry i forgot to add an infobox to that demo.
The Keyboard is not in 2.1
Will be in 2.2

2011/6/24 gwt.user <gwt....@yahoo.fr>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

leandro borbosa

unread,
Jun 24, 2011, 8:29:34 AM6/24/11
to google-we...@googlegroups.com
+1 for that keyboard. I needed it yesterday.

2011/6/24 Alain Ekambi <jazzma...@googlemail.com>

Juan Pablo Gardella

unread,
Jun 24, 2011, 8:30:40 AM6/24/11
to google-we...@googlegroups.com
Great work Alain!!

2011/6/24 leandro borbosa <leand...@googlemail.com>

Frank Argueta

unread,
Jun 24, 2011, 11:49:05 AM6/24/11
to google-we...@googlegroups.com
Can you create your own support forum!

GWT Moderators?

Alain Ekambi

unread,
Jun 24, 2011, 11:51:54 AM6/24/11
to google-we...@googlegroups.com
Well  there s a group where i ve been directing  people to.
I cant prevent people  for writing here dough. 


2011/6/24 Frank Argueta <frank....@gmail.com>

isern

unread,
Jun 24, 2011, 12:08:46 PM6/24/11
to Google Web Toolkit
Congratulations, this looks great.

On Jun 7, 5:39 am, Alain Ekambi <jazzmatad...@googlemail.com> wrote:
> Hello Alexandro,
>
> Thank you for your kind words.
> I m glad that you like the project. I m also happy that it can help you
> solve some of the problems you have.
> Gwt4Air is  a free time project. We use it internally at the company i work
> but i dont get paid for that. It s small company so i decided to play the
> nice guy :).But I wish I could do this full time  dough.
>
> i m know the link you provided. As a matter of fact i have a comment there.
> While searching for ideas on how to implement the Flex API i came accross
> that post. What i did not like about that solution was the fact that the
> user must deal with both sides. Flex and GWT. I wanted a more simpler
> solution where one will only programm in Java like any GWT project.
> Hopefully i did a good job at that.
>
> Concerning what the Adobe Engineer told you: I think  what he ment is that
>  for every MXML based Flex project the MXML Compiler  does  some
> initialization work that you will have to do manually  if you dont want to
> use MXML. And that initialization is a quiet complex thing. So  he probably
> thought that no one would be crazy enough to try to figure out what the
> compiler really does . But because i wanted to use GWT to write Flex
> applicatons i had to be  crazy enough loooool.
>
> cheers,
>
> Alain
>
> 2011/6/5 leandro <leandrob...@googlemail.com>
>
>
>
>
>
>
>
>
>
> > Hi,
> > I just went to your project and i have to say this is just mind blowing!
> > Are you doing this full time ?
> > Really i wonder how you guyz come up with this kind of stuff.
> > We have been struggling integrating  flex client into how existing GWT
> > application.
> > We ve tried this  solution here
> >http://lgrammel.blogspot.com/2010/02/i-am-working-on-project-that-int...
> > but  that did not scale very well. Maintining MXML/AS3, JavaScript and Java
> > in the same project is a nightmare.
> > Last year at Adobe Max i asked an engineer at from adobe if it s possible
> > to write Flex applications without using AS3 and MXML because we wanted to
> > keep everything in Java
> > and he basically said that s impossible. So i wonder how do you do this ?
> > I  cant wait to play to hero tomorrow at the office when i present the
> > solution that will solve our problems :)
>
> > Good work man
>
> > Alexandro
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/google-web-toolkit/-/QTE0WG5VSzdpM0FK.
Reply all
Reply to author
Forward
0 new messages