Posts Tagged ‘Flex’

AIR / Flex – Drap & Drop (to Desktop)

Wednesday, February 25th, 2009

In order to drag one or more files from an AIR application to the desktop you have to handle just one event: DragEvent.

public function downloadFiles(event:DragEvent):void
{
   this.docs = List(event.target).selectedItems;

   var clip:Clipboard = new Clipboard();

   clip.setDataHandler(ClipboardFormats.FILE_LIST_FORMAT,
      getDownloadFiles);

   var dragOptions:NativeDragOptions = new NativeDragOptions();

   dragOptions.allowCopy = true;

   NativeDragManager.doDrag(event.currentTarget as InteractiveObject,
      clip, null, null, dragOptions);
}

Read the rest of this entry »

CMIS Explorer – Download

Thursday, February 12th, 2009

I’ve been working on the CMIS explorer on and off for the past few weeks. I think it is about time I made it available for download. I’d be interesting in hearing feedback on it.

Update: The project is now available on Google Code here.

Or, you can go straight for the download. The current download is for the CMIS 1.0 specification.

Update: I have fixed the code so that there are no more hard coded URLs. It has been tested in both Windows and Ubuntu against both local and remote repositories. Have fun.

Update: I just realized that there is still a hard coded URL in the source. That means it will only work against Alfresco running locally on port 8080. I’ll get that fixed up right away. I’ll be curious to see if it will work against another repository afterwards.

Read the rest of this entry »

Flex/AIR, CMIS, & Alfresco

Wednesday, January 28th, 2009

Intro

Last week I started building a CMIS browser with Adobe AIR.

I have built POCs with Flex before, but that was about it. Then, I downloaded thwirl and I remembered why I like AIR so much. It was easy to install, the UI is nice, and I imagine it was not too difficult to write. This is also a great example of why I like RESTful services too. I believe in the physical separation of the presentation tier, and working with RESTful services is a breeze. So is writing them for that matter. Twitter is a great example of building a social services platform and allowing for the development of third party applications to utilize it. It is a win, win situation. Perhaps ‘platform’ is the key word there. I’d like to shift from building web applications to building web platforms.

So, I decided to build a CMIS browser with AIR.

Update: The CMIS Explorer is now available for download. See this post.

Read the rest of this entry »

Java in 2009 – Up and Coming/Down and Out

Tuesday, January 6th, 2009

This is the time of the year when we start seeing the “what’s going to be hot in Java this year” posts. Actually, I might be a little late. Anyways, there seems to be two kinds. The ones that focus on the very latest buzzwords (the bad) and the ones that focus on what is beginning to take hold or mature (the good). It is sort of like how I prefer to attend JavaOne every other year. One year is full of specifications, standards, and new frameworks. The next year is specification implementations and the maturing of the previous year’s frameworks. I’m hoping this will be a good one. I am trying to focus on technologies that are not necessarily new, but that are beginning to take hold. And to add a little spice, I’m not just listing the emerging technologies. I’m also listing those that I think will be in decline.

Read the rest of this entry »

Flex, JCR OCM (Spring), & CQ5

Monday, June 9th, 2008

InfoQ posted another article that caught my interest today. In short, it is a case study on the NASDAQ Market Replay application. It is built using Adobe AIR/Flex and Amazon S3. This happens to be very similar to the direction I’ve been wanting to take. I wanted to bring myself up to speed with Flex and I was currently working with a Day Communique (CQ) web site. So, I decided to build a small Flex front end to this web site. In this case, I did choose to add a few new selectors to existing templates and back them up with Servlets to expose the content as XML. I didn’t go with anything fancy here. It was just plain XML over HTTP. While I discussed using a separate Spring/JCR based application to do this for low level integration previously, I do think this is a fine approach if you just want to extend your web front end. I like Flex because of its native XML support. It is simply top notch. However, in this case my content was retrieved from CQ as opposed to S3. As a side note, I am currently working on a project that will use the Spring/JCR approach with Mule to copy content from the CQ media library to Amazon S3. To top it off, we’ll use a custom LinkChecker (com.day.cq.delivery.linkchecker) to rewrite the URLs that point to media library assets now in S3.

Read the rest of this entry »