Twitter Component for LiveCycle ES

24 Nov
2007

After reading a couple of great articles recently I thought I’d give writing a component (or DSC – Document Service Component) for LiveCycle ES a go. For inspiration I read Mike Hodgson’s Devnet walkthrough article on how to build a component and Christoph Room’s sample for integrating LiveCycle ES with Adobe Share.

Twitter Component for LiveCycle ES

Since using the Twitter API has become the modern day “Hello World” I decided to give it a shot. After googling for 5 minutes I found the Think Tank Twitter java interface. A few lines of code and I had my class written ready for LiveCycle integration;

package com.markszulc.lc;
import thinktank.twitter.Twitter;
public class TwitterComponent {
public void UpdateTwitter(String accountid, String password, String tweet){
// Make a Twitter object
System.out.println("****** Updating Twitter!!");
System.out.println("AccountID: " + accountid);
Twitter twitter = new Twitter(accountid,password);
// Set my status
twitter.updateStatus(tweet);
}
}

I then quickly put together the XML component descriptor that tells LiveCycle ES what properties to display in the panel and how to invoke the class, compile and I was done.. all up less than 1 hour from idea to implementation!

Twitter Component Properties

Now anyone can invoke Twitter just by setting a couple of properties!!

Download the Twitter Component for LiveCycle ES here: twittercomponent10.zip

Next stop is to work out how to expose exception handling.. stay tuned for version 1.1..

Post to Twitter Post to Delicious Post to Digg Post to Facebook

Related posts:

  1. Building a controlled Twitter solution using Adobe LiveCycle ES My colleagues from Adobe’s Benelux technical team have come up...
  2. Twitter Ok, I’m hooked on Twitter. I realize that in the...
  3. LiveCycle Productivity Kit updated Marcel Boucher has updated the LiveCycle Productivity Kit (LPK) on...
  4. LiveCycle ES Update 1 is on its way, and its full of improvements! Improvements, improvements, improvements!! The upcoming update to LiveCycle ES is...
  5. Using Watch Folders with LiveCycle ES I’ve had a few questions from people asking me how...

3 Responses to Twitter Component for LiveCycle ES

Avatar

LiveCycle ES Components - yet another example! « Greg Wilson’s Ramblings

November 24th, 2007 at 8:53 am

Avatar

» Building a controlled Twitter solution using Adobe LiveCycle ES Mark Szulc's Blog

January 24th, 2010 at 7:46 pm

[...] My colleagues from Adobe’s Benelux technical team have come up with another great use case for my custom LiveCycle ES Twitter Component I built some time [...]

Avatar

Gary Gilchrist

January 30th, 2010 at 5:55 pm

Hi Mark,

I was just trying to write one of these and struggling with lots of weird 3rd party jar files needed by java-twitter. Then I thought, “hang on.. I wonder if anyone out there has already done this?” … very nice job :)

By the way we’ve got a cool custom component development perspective for Eclipse in the works which makes this sort of thing even easier to build and integrate..

Gary.

Comment Form

top