Archive for July, 2008

Non-Visual Component Initialization in MXML With IMXMLObject

Having worked with flex for quite some time now, I still learn something new about the framework nearly every day. Which is great! The other day, I discovered the IMXMLObject interface in flex. Something I maybe should have known already by now, but hey, .. I didn’t It actually is really simple. If you have [...]

July 23, 2008 · polesen · 3 Comments
Tags:  Â· Posted in: Programming, Rich Internet Applications

AS3 Inconsistency – Unable To Use …(rest) Keyword in Setter

ActionScript3 has the nice feature of a get and set keyword, usable for easily defining properties on classes, while still hiding the actual implementation. AS3 also has the varargs feature, in the form of the …(rest) keyword. This can be utilized to create methods that take an unspecified number of arguments. Sadly, I have been [...]

July 22, 2008 · polesen · 9 Comments
Tags: ,  Â· Posted in: Programming

A JSP File Always Creates a Session

Maybe I am just stupid, but in my latest escapades into cookies and sessions, I noticed that a session always gets created up front in JSP pages. If you have a simple index.jsp page like this one: The container will set a session cookie as one of the very first things. Even when you do [...]

July 21, 2008 · polesen · 7 Comments
Tags: ,  Â· Posted in: Programming

Acegi Security Not Setting a New Session Cookie

I and a colleague battled a “funny” problem, where our flash client did not get a new session cookie, when the old one expired. In the process of determining what was wrong, we came in touch with a great deal of areas, including RFC 2965 about HTTP State Management, the sources for tomcat 6, JSR-154 [...]

July 19, 2008 · polesen · 2 Comments
Tags: , , ,  Â· Posted in: Programming

Israfil or Flex Mojos?

Want to compile flex code with maven? Don’t know which plugin to choose? Maybe this post will help you. Today, there are several available options for compiling flex with maven. On my list, I have these: flex-mojos israfil servebox Of the three, I have tried only the first two for real. I did take a [...]

July 15, 2008 · polesen · 3 Comments
Tags: , ,  Â· Posted in: Rich Internet Applications

Fast Flex Compilation With Maven: Israfil or Flex-mojos

In this post, I compare performance, measured in time taken to compile flex modules with maven, from two different maven flex plugins, israfil and flex-mojos. The Contenders If you compile flex projects from maven, you need a maven flex plugin. Targeting flex 3, there currently exists two plugins: Flex-mojos Israfil The Problem: Time Taken to [...]

July 15, 2008 · polesen · 11 Comments
Tags: , , ,  Â· Posted in: Rich Internet Applications

JavaFX – A Forever Unfinished RIA Technology

A couple of weeks ago, while I had a fun day with a bunch of my colleagues, showing them the wonders of flex development, another two of my bright colleagues used that same day, to uncover how far JavaFX is now, and what could be done with the technology today. And the answer was horrifying. [...]

July 9, 2008 · polesen · 7 Comments
Tags: ,  Â· Posted in: Programming, Rich Internet Applications

Missing Method Overloading in AS3

While I do like to write UI code in ActionScript3 within the flex framework, I also miss features from Java sometimes. One of those missed features is method overloading, the ability to have several methods with the same name, differing only in input and output types. This is not possible in as3. Just Use Default [...]

July 8, 2008 · polesen · 3 Comments
Tags: ,  Â· Posted in: Programming, Rich Internet Applications