Tech Per

Archive for July, 2008

23 Jul

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 [...]

22 Jul

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 unable to [...]

21 Jul

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:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>index</title></head>
<body>the index</body>
</html>

The container will set a session cookie as one of the very first things. [...]

19 Jul

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 [...]

15 Jul

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 look into the servebox [...]

15 Jul

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 Compile
One problem with the “mxmlc” [...]

09 Jul

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. [...]

08 Jul

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 Values [...]

© 2008 Tech Per | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo