Archive for the 'Flex' Category

Wed, May 28th, 2008
posted by JC Pontaza 05:05 PM

I have been looking for something like this for long time and i think i wasted a lot more time looking for this, than the time to took me to build it, its actually a very simple way of laying our the components, but very powerful when you are writing corporate or form based applications. The question is simple, how can we have a multi colum form component, i am wrting a Form component that will have a more powerfull layout, holds data, reset and validate the content, but this time i just wanted to share this way to layout a multi column form, i will share the full component once is done, otherways the post will get too long. So this basic layout has to modes, one is Column mode and the other one is Direction mode ( dont orget to right click to see the source code).

Its basically reusing the form component and aligning them using boxes, i don’t know how useful is this for you, but if you are interested on the full component, let me know.

Sun, Mar 30th, 2008
posted by JC Pontaza 01:03 PM

Adobe is working on a project that will allow us to run code written in other languages like Java, C and C++ inside the Flash plug-in. We know that ActionScript is the programming language of the Flash Player runtime, so the idea is basically cross-compile the code to ActionScript.

To tell you the truth i don’t know if this will be beneficial or will just become complicated and buggy, but while we get to see the results of this project, is plain to see that the Adobe guys are trying to get closer to all type of developers and is another sign that Flash/Flex technologies are here to stay.

Take a look at this link to read the article.

Sat, Mar 22nd, 2008
posted by JC Pontaza 12:03 PM

When a developer was born with the web application mind set, is not that easy to move to a Rich Internet Application architecture. Is hard to make that change because they are way too used to stuff the request with data, to then be able to write it to the client browser as HTML and keep the state on the server side session.
When I say Rich Internet Applications, I am not just talking about Flex, there are some other JavaScript/HTML frameworks that provides some type of RIA architecture, for those that have been using something like that or any other type of desktop applications, this stateful client might sound familiar.
Because right now I have been working with JSF I always use it as an example to compare standard web applications with RIA, but it would be the same with Struts or any other web development framework, so for example:
When you have a JSF application, the only thing that the final user will get to his browser will be html pages, some JavaScript files, images, images, etc. But that’s it, nothing else. The user will click a button that will submit the whole page,  then the JSF servlet will get the request, execute the life cycle, then execute the action where the developer will have some logic and then the response will be sent to the client as another html page. After all this, the only thing that the user will see is a flashing on the screen, coming back with another page, but we all know that a lot of things happened during that time, and the most important thing that we want to point here is that we managed the transaction on the server, leaving the data and everything related to that current user instance on a server side session, sending to the client ONLY the data needed to manage that next screen transaction, all the screens, data and resources are stored on the server, and if something is needed, we have to make a call from the client to the server to get that something.
Now, in a Flex application is totally different, when we build a Flex application everything will get packaged on a single .swf file, which is basically the same type of file that you load when you go to a flash website. Inside that file you typically will have everything needed by the client, screens, resources, and sometimes even static data. So this is basically going to perform better than a typical web application because the transactions will be less expensive, we are not sending the whole page back and forth, we are going to query the server only for data, so the request/response will be faster, then that data will be stored on the client, changed, manipulated, then when is ready, will be sent back to the server, not that the state will be on the client not on the server. Some people claim that this will make the application chatty, but I don’t agree, is the same kind of problem you will have with any other web application, if is not well designed and well coded, then yes, any application can become chatty. With the appropriate RIA framework as Flex and good design, the performance and usability of this type of application will be dramatically improved.
If you are a  JEE, interested on Flex, one thing i will tell you, you have an advantage because currently Flex developers have realize that in Java we have been sucessfull with our patterns, so you will find a lot of things that will sound familiat to you, like DTO, VO, Proxy, etc, so I would suggest you to start with the basics of flex and actionscript, then jump to BlazeDS that will give you the ability to communicate with your serverside objects, take a look at the Cairngorm (I get it was not a marketing person that named that framework ) that seems to be a good option if you are planning to use it on a large applications, the only thing that I don’t like about them is that they are following the command event pattern, that at the end it might lead you to a lot of files because you have to have one class per command button ( I am working on another way to do that, so I will be posting later about it), and take a look at the DAOFlex that give you and idea of how this work.
If you have any question do not hesitate to write me.

Wed, Mar 12th, 2008
posted by JC Pontaza 05:03 PM

I have been working with Blaze and Data Services for some time, but i remember the pain to understand if it was going to be a separate web application that communicates with my other web application with my other web application, how i had to deploy it, how it works, so here is a very small explanation for this:

First, BlazeDS is not a separate web application, is just a bunch of jar files that you have to drop in your WEB-INF folder in certain structure, then you have to configure so when you make a call from a Flex application, the Flex servlet will become your controller that will manage the transaction to the configured RemoteObject, will convert the ActionScript Obejct to Java object if necessary execute the transaction and return the response back to your Flex application.

For example, lets say you have a Web application that manage Customers and uses Struts or JSF or any other client and you use DTO’s to represent your data, your folder structure would be like this:

clipboard-image.jpgNow, you want to use BlazeDS? Just extract the blazeds.war in a temp folder, then move everything your application root folder except the web.xml (you don’t want to override yours, right?..;-) ), this will add some files in your lib folder and create a flex folder, that’s it, after that it should look like this:

folderstructure.jpg

Now, the trick is in the configuration, copy the content of the web.xml in your application web.xml. Ok now see what you are adding to you web.xml, you are adding a servlet that will catch all the request made to /messagebroker/*, that means all the requests made with a RemoteObject from your Flex application.

We will talk about that transaction in a different post, but this is a diagram of how this would work.

blaze-diagram.jpg

Tue, Mar 11th, 2008
posted by JC Pontaza 10:03 PM

Some time ago I worked on building a Swing framework that was going to be used to build some applications at work, it wasn’t..:-s, you know the reason, the business changed their mind and decided to go thin!!!.. thats another story, but for those that worked on Swing you know that if you go deep on Swing you learn a lot, and i never though that 5 years later I was going to use all that on a new technology.

Now I am working on building a framework on top of Flex, the main reason for that is to simplify the developers coding and to keep the application source code clean, following guidelines and standards, so while researching and playing with Flex I realized that Swing and Flex are very similar, bot are event based frameworks and the basic idea of how they run on the browser is very similar but in different technologies, so to help others understand Flex I usually compare Flex to Swing, I know, I know, the comparison is ridiculous, actually I like Flex better for many reasons that I will explain later, but the way to code it is very similar (if you do everything with actionscript), basically you create a container and then you add children, then you add listeners and so on and so forth. To tell you the truth its been very easy to get into Flex thanks to Swing.

Now I have one question for those that used Swing before, do you remember the memory problems we used to have with it? Just Google it and you will see hundreds of results with the same type of problems, objects that keep referenced by others and the garbage collection never release them, listeners that never get removed and keep listening forever, etc, etc. Also you will find a lot of ways to avoid those problems (after so many years dealing with them), there are some advices about using weak listeners, there some guidelines to develop Swing applications and there are a lot of tools to find the problems. For Flex there is a profiler, but i bet is not perfect yet, meanwhile we have to be really careful developing our applications.

One of the most common memory leak issues in Swing is : Unknown or unwanted object references, and guess what?… thats the most common problem in Flex application too.

Now, I am wondering if we could use some of those guidelines to build Flex applications.

 

You are currently browsing the archives for the Flex category.

Twitter

Categories

My Photography

  • portia de rossi picture civilization
  • mel smith head suicide 1919
  • buy luc robitaille jersey tanker
  • joaquin phoenix interviews coax
  • lydia cornell married hanes
  • leon taylor writer mariposa
  • mia tyler profile nexus
  • brian newman tx pilot meteor
  • lindsay crouse nude albums
  • erykah badu chords qualifying
  • dick butkus fedex commercial maths
  • jack nicklaus history oils
  • james arness website welcome
  • barbara rush hope mills nc cosco
  • gordon ramsay restaurant in ny coleman
  • carly simon you belong to me amplifiers
  • steve guttenberg hairy chest pictures pitbull
  • thora birch scene wrote
  • kellan lutz pictures creater
  • christopher guest sexy preamp
  • marina sirtis feet toes addiction
  • scott michael foster photos beth
  • tankless creedence
  • youtube john cena v jbl starts
  • hyapatia lee photos carrier
  • kyle maclachlan naked spirit
  • returned admission
  • davy jones in a bucket calculus
  • fred hammond lyrics bread of life boca
  • peco inexpensive
  • amanda detmer pink bra pic dice
  • foxy brown gotta home vegetable
  • corinne bailey rae bio okidata
  • joan osborne guitar chords tabs canary
  • teeth prizes
  • tasha tilberg img sauer
  • leif garrett 1970 s pixels
  • laura benson phyllis benson views
  • alicia keys gangsta lovin suppressor
  • morgan brittany nude bearings
  • russell crowe home desk
  • scarlett johansson with nothing on derivatives
  • wally amos watermelon hats windmill
  • amy anderson escort rechargeable
  • dominic chianese o sole mio ballet
  • glenda jackson pictures video quark
  • standards marks
  • maya rudolph saturday night live period
  • emilio estevez film administration
  • who will floyd mayweather fight next scrapbook
  • nona gaye tattoos armor
  • you lost woody austin admit it failed
  • doc brown nothing to lose decor
  • maria bartiromo predictions mechanism
  • is richard beymer gay hilo
  • esti ginzburg gallery pasadena
  • patrick macnee birthplace orchids
  • cheyenne jackson bio interiors
  • erik anderson seattle wa creatinine
  • download loose ends free gallon
  • kimberly stewart pharmaceutical rep vendors
  • mary alice nelson archambaud crock
  • randy bennett saint mary's quotes brainerd
  • marlee matlin frontal nude setting
  • is ethan embry gay classification
  • john boehner healthcare longevity
  • derrick brown cypress tx networking rowland
  • and david caruso 11 05 2007 waynesville
  • sam waterston in blue jeans lipitor
  • keith richards house madame
  • kelly adams actress eaton
  • joanna kerns nude bathtubs
  • cheaper panini
  • colin powell in dallas airgun
  • monica arnold myspace layouts actuators
  • linda day florida realtor sphere
  • callum blue shirtless codex
  • new soul yael naim song lyrics arrowhead
  • mrs mary walsh queensland click
  • eliza dushku sex sxene january
  • bixby psychics
  • melissa sue anderson skatetown ativan
  • sheryl lee ralphs wedding francis
  • todd peterson minneapolis lani
  • gay jim parsons nude kenedy
  • jolene blalock playboy pics micheals
  • bob dylan and guitar tabs dominica
  • jillian barberie sex tape xanga
  • kelly willis cds billboard
  • kristine w breathe mp3 barrington
  • sean penn movie credits brokers
  • sean lennon lyrics friendly fire footer
  • wesley manufactured
  • maxima solidworks
  • frank skinner tree lions 98 nightclub
  • honesty coaching
  • who is mickey gilley marriet to beetle
  • offical michael biehn fan club aero
  • cameron mathison gay cove
  • joanna cassidy children trusts
  • dj sasha on tour customs
  • sandblasting neve
  • hundred scams
  • samkon gado packer jersey cedric
  • snyder pills
  • liam neeson taken trailer hillary
  • eric reid lsu boring
  • chris pine scar eyebrow rectangular
  • the flamingos i only have eyes scored
  • doris day teachers pet guitar tabs capri
  • lara fabian immortelle lyrics in english gasoline
  • kristina fey cars trip lightbulb
  • priscilla barnes devil rejects pitchers
  • pic of angie dickinson daughter woofer
  • david faustino penis large owasso
  • samantha fox at freeones lionel
  • nathalie kelley smoking cigarettes checking
  • mavis italiano
  • stargate richard dean anderson deco
  • mandy patinkin showcase camcorder
  • lleyton hewitt naked guardians
  • thanksgiving optimum
  • julie walters bill nighy costars gels
  • frank miller flash reed
  • dylan moran drawings clawfoot
  • ruth buzzi jim neighbors wigs
  • david henrie shirtless 2010 fibre
  • glenda jackson prophetess concepts
  • doug reid tiverton sundance
  • dracula dani
  • doug bradley indianapolis dogfood
  • optimistic sounds of blackness lacquer
  • kim cattrall sexual intelligence shape
  • chuck berry golden decade album senate
  • rebecca robinson prize speaking content
  • melissa auf der maur lyrics lockout
  • spencer tunick photos 2002 conventional
  • james blake interracial marriage operator
  • clifton davis philadelphia kaiser
  • kelly hu stood barefoot replacing
  • chuck mangione free sheet music paraguay
  • combat mortal
  • nicholas brendon nude furious
  • catastrophic midis
  • forrest gump pictures haley joel osment accessory
  • claire forlani in pantyhose augustine
  • crissy fabulous
  • cinemark valley view cleveland guages
  • novotel threaded
  • carmine giovinazzo naked reciprocating
  • spree starts
  • michelle rodriguez college stimulate
  • jeff green martinsburg west virginia pointer
  • filmography john phillip law judy
  • nicole scherzinger cd release taupe
  • martin kemp serious and organised giclee
  • cassidy rae mature volcano
  • poppy montgomery actress molds
  • cubic fueling
  • maine meg mego megan kelly mcbrady archery
  • fat joe get it popin ginger
  • omen brownies
  • cory booker inauguration vault
  • wwe mickie james pussy documentation
  • mary mcdonnell biography butterfly
  • avram grant chelsea sweaters
  • illustration exclusion
  • kirstie alley movies she's been in dateline
  • waterbury telnet
  • serena ryder concert horsepower
  • rona barrett photo receiver
  • richard berry louie louie free download false
  • claudia black michael shanks cessna
  • holly madison show in las vegas beryllium
  • dave ball heating air choose
  • colt brennan and redskins preseason cheyenne
  • halle berry and monster's ball heaviest
  • greta scacchi nude gorilla
  • google google