Archive for September, 2008

‘Fixing’ the slow JFileChooser on Windows XP

Friday, September 26th, 2008

Ever used a Java Swing app on Windows XP that seemed to freeze when you open a JFileChooser dialog? Apparently it’s caused by calls being made to Windows’ infamous integrated ‘compressed folders’ utility when files are recognized as archives.

The bad news is that every stable Sun JVM on Windows XP up to today suffers from this issue.
The good news that the issue has been f fixed in Java 1.6u10b07. Although I don’t presume to know the entire history of this bug, it seems a little sad to see this one was reported against release 1.4.2.

To fix on java versions predating 6u10b7, the only fix is effectively unregistering the zip folder dll from windows. Since I won’t quite use 6u10 until it’s GA and I’ve been a happy 7zip user on every OS I use for quite some time now I decided to go for the uninstall.

To unregister (and disable ‘Compressed Folders’):
regsvr32 /u %windir%\system32\zipfldr.dll

If you decide for some reason you can’t live without it and want to re-enable, execute again from a cmd :
regsvr32 zipfldr.dll

and you’ll be sending things to compressed folders before you know it :-)

Thanks Apple, I’ll wait for Android

Wednesday, September 24th, 2008

After reading about Apple putting application rejection notices for their App Store under non-disclosure, I can but conclude I’ll have to wait for an Android powered phone.
If you just take a step back and go over the entire NDA story from the start, it’s easy to see you don’t want to be dependent on these people, let alone use their ‘platform’. It’s insane. In an era where open source & free software is gaining foot in the marketplace, they’ve succesfully become on of the biggest antagonists of the ‘free culture’. They’ve lived up to the old standard set by the ‘old’ Microsoft and have actually outdone them in their own field. What they say is true, Apple is the new Microsoft.

Congrats Apple, you did it! I’ve grown up with macs and now you’ve finally gotten me completely turned down on your iPhone product, despite of all it’s features and magnificence. I don’t care anymore. Not as a person, developer, linux user. I was looking forward to the next iteration of the Mac Pro, but I’ll just have to see what gives by 2009.

Maybe someone should send a note reminding them there’s people behind these applications they’re banning for the most ridiculous of reasons. I’ll create whatever software visions I have for a device that runs what I tell it to run.

How to restore EJB injection in MyEclipse 6+ after adding ICEFaces support

Sunday, September 21st, 2008

After some headscratching, I found out why EJB injection into my managed beans for jsf application stopped working after adding ICEFaces Support on the MyEclipse forums.

It’s actually very simple and logical: upon adding ICEFaces support to the EE Web Project, you’re asked to downgrade to a servlet 2.4 compatible web.xml, which is the cause of the trouble.

To restore the EJB injection, just copy the web-app tag from the renamed original web.xml called web.xml.org which can be found in the WEB-INF dir of the WebRoot dir. In case you deleted it:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

Also, make sure the JSF version is set to 1.2 in faces-config.xml, which was the case for me.

My actual versions: MyEclipse 6.5.1 with ICEFaces support 1.7.1 for Eclipse.

Integrating MyEclipse 6.5 and IceFaces 1.7.1

Friday, September 19th, 2008

I’ve continued my search after my previous post and got working visual editing support in MyEclipse by:

  • choosing to download MyEclipse as a plugin install on an existing eclipse install, rather than a Pulse driven install (although that might not matter very much, you can enable classic software update support in the Eclipse Preferences under General->Capabilities)
  • Downloading the ICEFaces plugin for Eclipse, extract, add that dir as a local update site by Help->Software updates->Find and install->New features
  • Install from that local update site & restart eclipse
  • Create a new Web Project
  • Add JSF Capabilities from the MyEclipse menu (do not add facelets)
  • Add ICEFaces Capabilities again from the MyEclipse menu
  • Create a new page by New->JSP (advanced templates)->ICEFaces JSP
  • Profit!

I have to add that due to current project needs I got this to work in Windows, rather than Linux which I’ll try as soon as I’m relieved of this burden :-)

Also, I still need to use it some more before being able to comment on the experience but so far so good it seems.

MyEclipse 6.5 & IceFaces support ?

Thursday, September 18th, 2008

Does anybody have a working ICEFaces integration in MyEclipse? The latest version of the ICEFaces plugins for MyEclipse is for version 6.0.1 which does not appear to work anymore in MyEclipse 6.5 (The properties view throws Exception ‘à volonté’ when I select an ICEFaces Datatable component for example)

I’ve acquired MyEclipse a good month ago and must say I’m pretty satisfied with my $30 (annual) investment. A lot of these plugins are available by other means, whether they be Eclipse plugins or Netbeans or … What specifically makes MyEclipse valuable for me is the fact that it’s all preconfigured for one specific Eclipse runtime, the fact that I can edit Netbeans Matisse GUI forms and hopefully the ICEFaces support :-)

I’ve lost way too much time with handling all the different Eclipse Runtime requirements for plugins over the last few years. It’s a great platform, but somehow it seems you can’t do without a number of installed Runtimes. MyEclipse brings this number down to 4: MyEclipse, Lotus Notes, RAD & Lotus Symphony

When I installed on Linux I downloaded the Pulse Platform based installer without paying too much attention. After my initial surprise & scrutiny, I was pretty impressed by it’s easy of use for managing the plugins for MyEclipse. The process to do this straight from MyEclipse is about as easy as installing an application in Ubuntu using Add/Remove Applications, where the traditional Eclipse update support compares to Synaptic although it might be a little more complex (and powerful).

Google Chrome Beta released

Tuesday, September 2nd, 2008

It really is!

If it’s half as good as the comic it’s gonna be nice.

UPDATE: okay, it is nice.