password
username
Sponsored by CakeMail, an email marketing software
Newsletter preview

EclipseZone logo image
Friday, July 13, 2007 

AJAX without AJAX

Building web applications with AJAX shouldn't be hard. Cut through the different frameworks, options and opinions and try the new version of Oracle's ADF Faces. Out of the box, Oracle ADF Faces extends the Apache Trinidad framework to provide a rich set of AJAX-enabled JSF components that radically simplifies building rich, interactive applications.

Try a free download now!

 EZ News Corner
dzoneMost-clicked links this week
 
 EZ News Corner
 Next section
Daniel Spiewak is a Java developer and system administrator from Wisconsin, USA. He has over 7 years of experience in the field and specializes in UI design and peer-to-peer networking.

Daniel SpiewakEuropa: D+7 days

Well, after a year of work, cumulatively hundreds of thousands of hours of thought and planning and several million lines of code, Europa has finally been released. And - speaking personally here - it's everything I've been hoping for. Starting with the brand new download site, which finally resolves Alex's long-standing pet-peeve, to the new features in the JDT editor, to the superb job Mik and company did on this latest release of Mylyn. All in all, Europa is a masterpiece and I would pit it against any other IDE on the market.

Of course, Europa is really just an agreed collection of projects who decided to all release simultaneously. If you really wanted to peg one set of things as being "Europa" it would have to be the integrated update manager and pre-packages on the download page (which are excellent btw). A great deal of credit is due here to the system administration team at Eclipse: Denis Roy, Matt Ward, and Karl Matthias. Major kudos to you guys! Without you, none of us would have the binaries, so I suppose when it comes down to it, you're that final, critical piece in the entire Europa release. And, to pull out the best compliment I can think of for a sys-admin: I didn't see any latency in the servers when I made my download. :-)

Of course, there's no point in having this massive, 21 project opus without taking advantage of it and experimenting a bit. Europa's main selling point is that it enables the quick and easy installation of all of the tools in the Europa train. This makes it really easy to try out some of those features you've been curious about for a long time.

I started out with the vanilla, Java Developers package (JDT, Mylyn, XSD, and related dependencies). After I added my customary, third party plugin set (mainly just Subversive and QuickREx), I realized that perhaps it was time to give WTP a try. I had been hearing a lot of good things about it and how far it had come since 0.1 (which was the last time I had it installed), and I did need a JEE environment with which to develop web applications. I was impressed with the preinstalled XML editor (a subproject of WTP), and so I fired up the ol' update manager and installed the necessary plugins.

First let me say, WTP is massive. I've got a pretty snappy connection (especially considering how far in the backwoods I am), but WTP still took a good five to ten minutes to download, and a good minute to two minutes to install. That's a lot of data. After restarting Eclipse, I used the guide on java.net to configure Glassfish with WTP and started a basic Wicket project.

I was astounded at how well things worked. The managed server instance started flawlessly, files added to WEB-INF/lib were automatically parsed into the classpath, and changes were seamlessly redeployed into the running instance. It even allowed for dependent projects (such as my ORM, which I wanted to keep in a separate JDT project so I could actively develop and debug it). However, this was where things began to hit a bit of a snag.

WTP started choking every time I tried to redeploy the app into a running instance (so basically, whenever I hit Ctrl+C). I was able to trace the problem to the fact that an open InputStream (or equivalent) on Windows holds a lock on a given file, prevent it from being overwritten. Glassfish wanted to overwrite some of the JAR files in the context on every redeploy (even if they hadn't been changed), but the Glassfish server itself was holding a lock on the JAR file as a dependency to the webapp currently running. So any time I wanted to make a change, I needed to stop the server, manually delete the app dir in the glassfish directory, do a clean redeploy, and start the server. It was a mess (especially factoring in Glassfish's startup time, which is easily twice that of Tomcat).

I was about to give up in disgust when I bethought myself of Tomcat. Long the de facto standard for Java application servers, Tomcat is still pretty common when looking through guides and examples online. I grabbed the 6 MB zip file from Apache, unzipped it into my home dir, pointed WTP and everything worked again! I was able to switch the project over from Glassfish deployment to Tomcat without a hitch, and suddenly everything was running, deploying, redeploying and even debugging just as it should.

Since then I've been using Mylyn, JDT and WTP every day and they've been absolutely incredible. I can't say that there haven't been weird moments or strange annoyances, but they've been so far and few between I could just as easily put them down to user error. On the whole, I've found the bits of Europa I've played with (JDT, Mylyn, WTP, DLTK, etc.) to be unbelievably stable and bug free. Major congratulations to all of you who put in so much time and effort!

Copyleft, Copyright and Center
Well, apparently Eclipse is a trademark now. I assume it always was covered under some protective legal mumbo-jumbo, but things have been codified a bit more clearly now. Mike Milinkovich, Director of the Eclipse Foundation, posted a link to the logo and trademark guidelines on the Foundation newsgroup. The first item which jumped out at me (maybe, because it was the first item on the list):

You may not incorporate the Eclipse trademark into the name of your company or software product name. If you have a software product that works with Eclipse, it is suggested you use terms such as '<product name> for Eclipse' or '<product name>, Eclipse Edition'

Hmm, is this bad news for "EclipseZone"? We're not actually sure. Mike went on to say:

We realize these guidelines are being introduced at a point in time when some companies and individuals already have product names that include the Eclipse trademark. Companies and individuals using the Eclipse trademark as of February 1, 2005 will not be required to change their already existing product names to comply with these guidelines now or in the future. However, we do request that these companies and individuals give proper notice and attribution of the Eclipse trademark and that any new product name will follow these guidelines.

So potentially EclipseZone is in the clear and doesn't have to change its name to "Eclipse™Zone", but we can't be too careful. We've already shot emails over to the Foundation, trying to get a little clarification on this issue. And while we're reasonably certain they're not going to sue us, we'd still like to keep everyone as happy as possible. ;-)

Interesting Diversion
On a majorly off-topic note, I just wanted to draw a little attention to a challenge DZone's own Stacy Doss (better known as 3Monkeys) put forth on his blog. Basically, he wrote an algorithm which can spit out the Fibonacci series (starting at 0), all the way to the 20th term in just 56 characters of Perl code (multiple statements). The challenge is to implement a shorter version in the language of your choice. A few submissions have already been made (including Ruby, Java, and i386 ASM), but the field is still wide open. (LISP or Smalltalk anyone?)

While friendly "language golf" competitions like this one are hardly a new idea, the challenge still provided me with an interesting diversion for an hour or so as I tried to find a way to shave just one more character off my algorithm. :-) Enjoy!

Until Next Time,
Daniel Spiewak
daniel@dzone.com

 Tips and Tricks
 
 Tips and Tricks
 Next section
 Back to top
Nearly every day, RJ and others, bring you the hottest tips and tricks from around the Eclipse universe. Have a hot tip? E-mail the editors at editors@eclipsezone.com.
Check out a plug-in from plug-ins view

With Mylyn, reporting bugs is incredibly easy. Wouldn't it be great if it was just as easy to fix them? This plug-in allows you to check out plug-ins from a repository, straight into your workbench for triage and fixing. You can even submit the patches back via Mylyn :-)

Full DiscussionPosted By: Alex Blewitt - (2 Replies)

Talk with GoogleTalk inside of Eclipse

The ECF project, now available from Eclipse Europa, supports several chat APIs, one of which is XMPPS, otherwise known as Jabber. That gives you the ability to talk to others in Google, right from inside Eclipse.

Full DiscussionPosted By: Alex Blewitt - (7 Replies)

Your next favourite keystroke: Ctrl+3

One of the new-and-noteworthy features in Eclipse Europa is Quick Access. Even if you're a fan of the mouse, this keyboard shortcut can save time and money. Well, time, anyway.

Full DiscussionPosted By: Alex Blewitt - (0 Replies)

Managing your extension points

The code here uses a simple example to demonstrate a pattern. The pattern consists of a plug-in activator class, an extension registry class and an extension entry class. The extension registry is a singleton that provides a list of extension entries. The activator loads the extension registry on start up. The extension entry provides an object interface for the entry data rather than the awkward attributes and elements of the IConfiguration class.

Full DiscussionPosted By: Jeffrey Ricker - (5 Replies)

Querying bugzilla with Mylyn

I was going to write about how to create a bug in Mylyn, but someone beat me to it. Instead, I'll show you how to query a list of bugs from bugzilla instead.

Full DiscussionPosted By: Alex Blewitt - (5 Replies)

Europa and GlassFish Screencast

This screencast shows how to configure GlassFish V2 using Eclipse 3.3 (Europa). It also shows the Web application deployment, JSP debugging and JAX-WS compliant Web service deployment.

Full DiscussionPosted By: Arun Gupta - (2 Replies)

Using Third Party Jars from a Dynamic or Configurable Location

How to set up a plug-in which wraps a third party jar file. Includes providing the capability of dynamically determining and updating the location of the jar.

Full DiscussionPosted By: Brian Nettleton - (3 Replies)

Eclipse 3.3 Plug-in Development Gotcha: JavaFileEditorInput

If you develop a plug-in for Eclipse, you know that each release cycle you have to deal with new incompatibilities between your plug-in and the new version of Eclipse. There is always a plug-in migration guide to help you, and typically they do a pretty nice job. Every cycle though, there is usually some compatibility issues which arise that I have trouble finding any concrete information about. Hopefully this post helps to eliminate one such problem for other developers.

Full DiscussionPosted By: Jason Jones - (0 Replies)

Singleton pattern implementation in 4 steps

Learn to use refactoring functionality and source code modifications and your work will be very efficient and you will produce high quality code.

Full DiscussionPosted By: Roman Bosak - (13 Replies)

Access restrictions on Jars

When developing plug-in projects, you may occasionally get a message saying "The type X is not accessible due to restriction on required project Y". What does this mean, and where does it come from?

Full DiscussionPosted By: Alex Blewitt - (5 Replies)

 Ask EZ
 
 Ask EZ
 Next section
 Back to top
Everyone has questions, especially about a platform such as Eclipse that has so much potential to be customized. EclipseZone comes to the rescue as our editors answer nearly any question you can think of in our Ask EZ forum.
Keyboard shortcut to fold/unfold?

I am looking for a keyboard shortcut to fold/unfold all the code / selected code in the opened .java file.

Full DiscussionPosted By: Tom Corcoran - (0 Replies)

ATF Selected runtime instance pointing to invalid location

ATF install help-->software updates-->manage configuration-->ATF Rico Dojo Scriptaculous show properties-->status: feature configured properly.

Full DiscussionPosted By: david brown - (0 Replies)

Adding icon to StatusLine

I wish to add my own item in the left most corner of the Status Bar instead of the Fast View bar. Please help

Full DiscussionPosted By: Anand - (0 Replies)

Listening to the different view through ISelectionListener

I am having 4 views.my one view is listening to all other views by implementing ISelectionListener. getSite().getPage().addSelectionListener((ISele

Full DiscussionPosted By: DebasisMishra - (0 Replies)

Newbie Icon Question

Can anyone offer any advice as to how to add a user icon to an executable built using the CDT with Eclipse

Full DiscussionPosted By: Andrew Hurrell - (0 Replies)

How to auto-copy an interface' javadoc content to its implementation class?

I have an interface which has a few methods. I wrote Javadoc content fore each method in it. Now I am looking for a way to auto transfer Javadoc.

Full DiscussionPosted By: David Chang - (0 Replies)

Exporting SWT JAR Files

I'm having trouble exporting JARs in Eclipse 3.3.0. I get a "Could not find main class. Program will exit." error when trying to launch the jar.

Full DiscussionPosted By: Juha Salo - (2 Replies)

jar export of a library in a project

how do i include a jar file from a library on my build reference path into the project jar when doing an export?

Full DiscussionPosted By: glok twen - (5 Replies)

HTML tags in the //comments

I was viewing the java source code in eclipse and it uses html tags like or and they are not rendered.

Full DiscussionPosted By: Chris Redding - (5 Replies)

How to add a Save All button?

I can do this by pressing CTRL+SHIFT+S, but I hope to have a Save All button in the toolbar area. Similar to Printer, Save buttons. Thanks!

Full DiscussionPosted By: David Chang - (0 Replies)

How to list files in an OpenFile Window?

It only lists the directories and not the files. If I wrote the file's name it works fine, but how do I put that file visible on the list?

Full DiscussionPosted By: Nelia Santos - (0 Replies)

Odd Bug using TableViewer with Editors

When editing fields in the table, sometimes a newly activated cell will contain the value of the last edited cell rather than its previous value.

Full DiscussionPosted By: M. Anthony Aiello - (0 Replies)

Building JFace tree view from XML

hi folks..I am trying to build tree view by reading XML..Any inputs on that.It would be great if you people could provide some tutorial explaining tht

Full DiscussionPosted By: abhinav khare - (0 Replies)

Adding files

How do you add .java files to an existing project ? I want eclipse to detect the addition of a new source file when I add it to the source directory.

Full DiscussionPosted By: Patrick Campbell - (0 Replies)

Trouble Deleting a Project

(please do not *require* summaries, the title says it all. more than 100 char minimum are you kidding me.)

Full DiscussionPosted By: Joshua Kolden - (4 Replies)

Trouble with searching in Eclipse

I am having trouble searching mutiple packages at one time in Eclipse. Is there an easier way to do this instead of searching each package/file?

Full DiscussionPosted By: Brittany Lowry - (1 Replies)

Multiple Searches in Eclipse

Having trouble with search in Eclipse. I have to search through about 200-500 packages. Each packages contains about 50 files. I have to find a particular string. Then modify the code. It is taking too long to search each individual package. I just started using eclipse. Is there a way that I could do a multiple package search in Eclipse? If so, how would I go about doing that?

Full DiscussionPosted By: Brittany Lowry - (0 Replies)

Eclipse tptp conflicts with jars?

hi. i don't know if it's a problem with either jars or memory for some reason tptp won't start on a project which has build path of many jars (20-30)

Full DiscussionPosted By: Elhanan Maayan - (0 Replies)

Eclipse doesn't start

eclipse doesn't start neither as simple user neither as root. Then a message appears a says that there's an error and to see the logfile

Full DiscussionPosted By: thepresident - (3 Replies)

Moving Eclipse to another drive

Moving Eclipse installation directory to another drive altogether by simply Cut-Paste. Any registry keys involved ?

Full DiscussionPosted By: Anjanesh - (1 Replies)

How to make TreeViewer tree window bigger?

It displays the initial 4 items ok, but the tree is quite deep, and the window never redraws, even if I set redraw to true.

Full DiscussionPosted By: Laura Leaverton - (2 Replies)

eclipse3.2wtp

compatable version with eclipse3.2wtp to make a web application using tomact as server and mySql as database

Full DiscussionPosted By: plugin@xyz - (1 Replies)

SWT based diff tool

I'm trying to build an RCP, I need an SWT based application that can compare the difference between 2 files.

Full DiscussionPosted By: John - (1 Replies)

Pbm with commons-net.jar - FTPClient Class

Pbm with commons-net.jar - java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient when running the program.

Full DiscussionPosted By: Angeline Antony - (0 Replies)

What about Class.forName?

How do you keep a nice project structure with every part in its own plugin when code is using Class.forName...?

Full DiscussionPosted By: Patrik Schalin - (2 Replies)

 Popular at EZ
 
 Popular at EclipseZone
 Next section
 Back to top
A recap of some of the most popular and active EclipseZone discussions this week.
Harmony M2 + Eclipse 3.3 available for download

To celebrate Harmony's M2 milestone, a new package of the Eclipse Harmony project has been created. This includes the beta Harmony M2 release along with Eclipse 3.3.

Full DiscussionPosted By: Alex Blewitt - (11 Replies)

Eclipse Committers Blogging

A recent development sees some of the more prolific Eclipse bloggers moving to dev.eclipse.org. Is this a good thing or a bad thing?

Full DiscussionPosted By: Alex Blewitt - (12 Replies)

Demo of BEA's mSA OSGi platform

A new video demo has been made available at Live.eclipse.org of BEA's next-generation microServiceArchitecture OSGi platform for the Weblogic product suite.

Full DiscussionPosted By: Alex Blewitt - (3 Replies)

Sun submits JSR 316, still doesn't get OSGi

Sun has submitted JSR 316, a group of JSRs that only serve to define the Java EE 6 platform. It explicitly notes JSR277 will be available by then, so they will consider that and ignore all others. Given that most commercial Java EE servers are based on OSGi already, is this a case of Sun further hiding their head in the sand?

Full DiscussionPosted By: Alex Blewitt - (10 Replies)

Eclipse - a tale of two VMs (and many classloaders)

Discuss Alex Blewitt's article " Eclipse - a tale of two VMs (and many classloaders) " here.

Full DiscussionPosted By: Riyad Kalla - (50 Replies)

 Your Account
 
 Your Account
 Next section
 Back to top
Manage your account info for this and other DeveloperZone publications.
Manage your DeveloperZone membership details

Click on the following links to:


 Contact Info
 Next section
 Back to top
Here's how to reach us, we love to hear from you.
Email us
Send news items to editors@eclipsezone.com
Send questions, complaints, or suggestions to feedback@javalobby.org
Send advertising inquiries to advertise@javalobby.org
 
Call us
Our number is (919) 678-0300. We'd love to hear from you!

 Legal
 Back to top
The fine print we'd rather avoid completely.
Feel free to redistribute this newsletter in part or in full to your friends.

EclipseZone News is a service mark of DeveloperZone, Inc.
Copyright ©2001-2007 DeveloperZone, Inc.

Thank you for your continued support of DeveloperZone. If you prefer not to receive the EclipseZone weekly newsletter, send an e-mail to ***-eznews@javalobby.org and please ensure the actual email address to be removed is present.
DeveloperZone Inc., 113 Legault Drive, Cary NC 27513 USA