Tuesday, June 26, 2007

Wednesday, June 13, 2007

Getting started with Struts 2.0

Following link gives u a initial basic approach of going abt creating ur first Struts 2.0 App

http://www.roseindia.net/strutsshtml/struts2/struts-2-hello-world-files.shtml

http://www.roseindia.net/strutsshtml/struts2/struts-xml.shtml

New updated links
http://www.roseindia.net/struts/struts2/
struts-2-hello-world-files.shtml

http://www.roseindia.net/struts/struts2/struts-xml.shtml

RCP and Java Web Start - Creating JNLP

The following link gives a detailed explanation for how to create jnlp for an RCP application 
http://www.i-proving.ca/space/RCP+and+Java+Web+Start

You will face
java.lang.NullPointerException 
at java.util.Hashtable.put(Unknown Source) 
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain.java:58) 
at org.eclipse.core.launcher.Main.run(Main.java:977) 
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:40)

Issue: The problem is that the code relies on underscore as a delimiter between plugin name and plugin version. However, some plugins have underscore even in their version number (e.g. '...../org.eclipse.osgi_3.2.1.R32x_v20060919.jar') and these plugins fail to load. Not loading the org.eclipse.osgi causes the whole app fail to start.

Solution: use org.eclipse.osgi_3.2.1.v20060919.jar, sign this jar and change in all its references in ur jnlp.

Monday, June 11, 2007

SWT TreeTable

Me and my friend were looking for a good Tree Table widget in SWT. But we couldnt find a stable one. So, we ended up creating our own stable SWT Sortable Editable TreeTable widget.

A stable SWT TreeTable widget has been uploaded at:
http://tools.assembla.com/svn/j3widgets

Editable / Clearable Dialog Cell Editor

This is a swt widget for a table cell which comes with
a text box, a file dialog button and a clear button.

This widget comes with
- Cut, Copy, Paste and Delete options [which are the default SWT.Text options].
- Clear Button on click clears the content of text.
- File Dialog button on click of which, as the name says : a File dialog would pop up allowing the user to load a file.

If you want have this widget then you can have a peep in : http://tools.assembla.com/svn/j3widgets

Jil Jack and Java

Jack and Jil went up the hill to fetch a pile of answer
Jack fell down and broke his crown
And Jil came tumbling after.

Up got Jack, and there came Jil, tried As fast as she could caper
Both went to google and bounced their head
With eclipse swt and rcp white paper. ;-)