Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: Blogs

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Web Applications

Just a reminder that while you are developing a JSF 2.0 project, you really, really, really should enable the Development Project Stage. Doing this enables better error messages, including in the client side JavaScript, at the cost of some performance. Enabling this is as simple as putting the below into your web.xml: <context-param>   <param-name>javax.faces.PROJECT_STAGE...
on Sep 28, 2009
Today we're going to talk about two features of JSF 2.0's f:ajax tag: the event attribute and the listener attribute. The use of both of these is really, really simple - so I'll just briefly cover the basics, and then launch directly into the sample code. The "event" attribute of the ajax tag indicates which event to use to trigger the ajax request. There are any number of possible events...
on Sep 26, 2009
I wrote and deployed an OpenID provider service for java.net users. For those who are new to OpenIDs, this service allows java.net users to log in to other sites by using the java.net ID as the identity (for example, try Stack Overflow.) This eliminates the need to maintain separate passwords for each site, among other things. That said, the primary use case of this service is not to become just...
on Sep 21, 2009

Education

This semester, I am teaching the CS1 course again. If you just teach plain Java, it isn't easy to come up with interesting lab assignments. Some of the students have built exciting animations with Alice in the CS0 course. Somehow, they aren't as excited about printing prime numbers or digits of π in CS1. But the latest version of Alice, now in beta, can be programmed in Java. This is very cool...
on Sep 28, 2009

GUI

I am extremely pleased today to announce the availability of the final release for version 5.3 of Substance look-and-feel (code-named Reykjavik). The release notes for version 5.3 contain the detailed information on the contents of this release which include the following: New Gemini skin New Magellan skin New Graphite Aqua skin Improved usability of Raven Graphite skins Overlay painters...
on Sep 28, 2009
The Pivot development team is happy to announce the release of Apache Pivot 1.3. Apache Pivot is a platform for building rich internet applications in Java. It combines the enhanced productivity and usability features of a modern RIA toolkit with the robustness of the industry-standard Java platform. Pivot is currently undergoing incubation at the Apache Software Foundation. Notable updates in...
on Sep 22, 2009

Programming

While much have been written on checked vs unchecked exceptions, I found very little practical, down to earth, advice on how and why to use them. Here are my thoughts after years of rumination. The common wisdom What we are typically told is to use checked exceptions for recoverable conditions and unchecked exceptions for programming errors. For example here or in Effective Java. Don't get...
on Sep 25, 2009
When I started the mavenization of my projects, in July, I really didn't figure out that it would have been such a painful and long process. It is literally consuming me - also because I'm longing to see the end of the conversion, so I can resume the development. The first mavenized projects, BetterBeansBinding, jrawio and Mistral, were reasonably easy, also considering that I had to...
on Sep 25, 2009
Ed has developed a 50 minute audio-visual presentation recounting his experience in writing the book. This presentation includes audio clips from the programmers themselves, including subtitles for those for whom English is not their native language, together with insight to tie it all together. Ed has given this presentation at numerous international developer conferences and user groups around...
on Sep 22, 2009

J2EE

Poison messages are basically delivery deadlocks caused by a continuous redelivery of a message to a JMS Queue or Topic. That usually happens due to a code bug or configuration problems in the project. How to reproduce poison messages The easiest way of reproducing the poison messages issue is to create a Message Driven Bean and then to throw an exception in its onMessage method, like the example...
on Sep 24, 2009

Mobility

   On Thursday I head up to London for the Over the Air event. I'll do two talks on Saturday on LWUIT and JavaFX Mobile. Check out the draft schedule. Plenty of interesting topics - I attended Over the Air last year and it was a fun, down-to-earth developer event. I'm looking forward to it. Maybe I'll see you there? Cheers, -- Terrence Reminder: If you haven't done so yet, please update...
on Sep 22, 2009
As Ryan described in his recent blog, we now have support for Java SE clients in the Mobility Platform. Mahesh Sharma, a student and Sun ambassador in India, has been working on a port of this library to the Android platform. As part of his work, Mahesh also re-wrote the UI of our MusicDb demo and proved that Android is a great plaform to run SGMP applications. With Mahesh's work we now have full...
on Sep 16, 2009

Servlets

The newly introduced "Basic3pcc" sample demonstrates a simple Third Party Call Control (3pcc) application in SailFin. Download latest SailFin to get this sample. This sample includes 2 applications as shown in the figure below: Figure 1. Applications bundled in Basic3pcc sample.   Application #1 (i.e., 3pccConvergedApp.sar) is a 3pcc call controller application....
on Sep 21, 2009

Databases

If you are reading this blog it means you want to use JasperReport with dynamically programmatically generated images. An example of such use cases in generating complex charts using JFreeChart and then including these charts into reports. Each report in JasperReport uses a datasource to populate the fields, we need to use JRBeanCollectionDataSource which can be considered as a simple collection...
on Sep 21, 2009

NetBeans

In a recent blog post, Geertjan Wielenga shows "How to Create a GUI Editor on the NetBeans Platform": There's a lot of interest in creating GUI editors via the Visual Library. So I'm creating a small example that will show how to do that. The palette is filled with JavaBeans that are registered in the layer, meaning that the editor is extensible via the System FileSystem. When a palette item...
on Sep 20, 2009

Tools

During my last years before getting the master degree, I have been working at a free flight simulator. It run under DOS and was named FGFLY. It was written in C++, initially Borland C++ and later Watcom C++, in order to use a memory extender to bypass the infamous 640k limit. At the time I just was a student able to earn a few money with programming, and couldn't allow to spend a lot in hardware...
on Sep 18, 2009

Community

While I am in Sydney for the next Sydney Java Power Tools Bootcamp, I will be running a Java Coding Dojo, to be held in the Atlassian offices between 5:30 and 7:00pm on the 21st of October. This is a free event, open to anyone who want to do a little recreational coding. I will also be running the inaugural session of the  Wellington Java Coding Dojo on October 14, at a to-be-announced...
on Sep 17, 2009

J2SE

Yesterday, a Hudson committer Alan Harder discovered an EOFException in Hudson, which only happens on 64bit JVM on Solaris. This was happening in the part of Hudson (or more precisely, in a separate library called Akuma) where we look at the memory space of the process to figure out the command line arguments of the current process (the /proc/ID/as file — an equivalent of /proc/ID/mem in...
on Sep 17, 2009

Performance

Here is a review of some concurrency tips from Joshua Bloch, Brian Goetz and others. Prefer immutable objects/data Immutable objects do not change after construction. Immutable objects are simpler, safer, require no locks, and are thread safe. To make an object immutable don't provide setters/mutator methods, make fields private final, and prevent...
on Sep 17, 2009

Web Services and XML

Rule of thumb: Avoid to use {variables} as the first path of a Jersey's @Path I am working on the Arena PUJ Project, a RESTful web-service to support PUJ competitions. We are in the early stages of the project but we already got some resources published on the web. Let me show you a few URL samples: An insecure GET method to read all competitions promoted by a JUG: GET /{competition_id}/...
on Sep 17, 2009