Monday, January 14, 2013

Vertical clustering in LiveCycle ES3

Quick note for future reference: the document for ES2 (http://help.adobe.com/en_US/livecycle/9.0/clustering_jboss.pdf) explains how to change the necessary ports in order to get a vertical JBoss cluster up and running.  In ES3 (and therefore JBoss 5) the paths for a number of the ports has changed:

JBoss 4:
jboss-service.xml file located in [appserver root]\server\[profile]\conf

JBoss 5:
bindings-jboss-beans.xml file located in [appserver root]\server\[profile]\conf\bindingservice.beans\META-INF

Saturday, October 27, 2012

AJAX Style file uploads using an iFrame

I was recently trying to solve a strange issue with Internet Explorer 8 (it's always IE...) on redirecting the user after successfully uploading a file.  Couldn't use HTML5's FileUpload API as we had to be able to support older browsers but what we wanted was AJAX style in place uploads without having to redirect users back to the page after they had uploaded a file.

Then I came across the following blog post:
http://www.alfajango.com/blog/ajax-file-uploads-with-the-iframe-method/

This method feels like a bit of a hack but is a decent solution to the problem.  Target the empty iFrame and you can keep users on the same page.  It seems to be a popular method and one I'll use again until we can finally move to using the proper HTML5 API for doing this.

Friday, September 21, 2012

Working with lists

This is more a note to remind me in future but when dealing with lists in LiveCycle it can sometimes be a little tricky to just keep adding to a list without creating a loop.  An easy way to do this within one set value step is to use the collection size to determine the index for adding something to the list.

Here's an example XPath statement which will add to the end of the list (where "listAttachments" is your list variable):

/process_data/listAttachments[number(get-collection-size(/process_data/listAttachments)+1)]

Thursday, September 20, 2012

WebLogic LiveCycle ES3 Installation

On a recent installation of LiveCycle ES3 on WebLogic I realized that I had started creating a list of "extras" which I often needed to do before the installation would work properly.  These might not always be required and may in fact be buried in the documentation somewhere but here's the list regardless:


  • Setting up the servers (both Admin and Managed Server) as Windows Services.  Not strictly a LiveCycle step but useful nonetheless.  Just don't forget to copy the lines you added to "startManagedServer.cmd" into your new service. 
  • Adding the SQL driver to the classpath.  When using SQL Server we need the sqljdbc4 JAR file in the CLASSPATH.  Unfortunately the text LiveCycle gives you during the installation to copy into your startup script doesn't include this.  Again this might be the way we had configured WebLogic but I needed to add the path onto the end of the CLASSPATH supplied in order to get us talking to the database (we had setup the data source manually in WebLogic rather than bundling it into the LiveCycle EAR files.  
I'll keep adding to this as and when I come across other configurations.

Wednesday, February 8, 2012

Knockout.js

It’s been a hectic couple of months with my move to Canada but having now settled in I hope to be able to write a few more posts on some of the technology I’m working with.  My most recent project is HTML5 and JavaScript based which has introduced me to a new library – Knockout.js.

The reason for choosing Knockout was simple; we needed a library which could manage data binding and that could map from JS objects to JSON.  Knockout (plus the mapping plugin) filled those needs perfectly.  For those moving over from the world of data binding in Flex it will quickly feel familiar. 

Over the next couple of weeks I’ll be posting about some of the pitfalls we encountered whilst using the library and some tips on how to most effectively use it.  I’ll also be relating some of the concepts from ActionScript/Flex which should help others making the transition over to the HTML5 world. 

Saturday, November 19, 2011

Moving across the pond

I've been a little quiet on my blog recently; moving from the UK to Canada took a little more of my time than anticipated! I'm now living in Vancouver, BC although in temporary accommodation until we secure an apartment. As soon as I'm back up and connected properly I'll be starting a series of posts on my recent mobile development experience with some tips on getting started with Flash Builder 4.5 for mobile.

Tuesday, November 8, 2011

New resource for ADEP information on Adobe Blogs

A new blog has been created by the guys at Adobe to collate all the best posts from around the web which focus on ADEP and other Adobe enterprise products.  Well worth a visit and there is already some great content up there:

The ADEP Post
The ADEP Post is a human-moderated aggregator of the best user assistance content created by the LiveCycle/Adobe Digital Enterprise Platform community. The community at large includes partners, users, customers, and Adobe professionals.

This blog aggregates content relevant to both the LiveCycle Enterprise Suite as well as the recently-released Adobe Digital Enterprise Platform