Skip to content


Wicket Exception when using wrong order in addComponent

Today I working on a application that uses the Wicket framework. I was plagued with the following Exception:

WicketMessage: org.apache.wicket.WicketRuntimeException: component myForm:myTable:editor not found on page nl.gerbrand-ict.gui.HomePage[id = 4], listener interface = [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

Root cause:

...

In place of the … there was a full stacktrace, which information that’s not not relevant for this posting.

Turned out the solution was pretty simple, but the cause isn’t that easy to find and is quite a good example how some design decisions in Wicket aren’t considered as clean.

Continued…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Technology.

Tagged with , .


JavaFX 2.0

Yesterday I attended a NLJug meeting at Oracle at De Meern on JavaFX, called ‘JavaFX 2.0 EA‘. The meeting was presented by Roger Brinkley, who’s a called ‘Community leader’, of Mobile and Embedded. That he was formally part of Sun wasn’t hard to see based on his clothing and style.

Roger gave an overview of the new JavaFX 2.0, the road-map and the planned features. The software seems to be developed in an agile manner: the dead line is fixed, as is policy at Oracle (not meeting a dead line means exit for the responsible executive), but the final set of features is not.
The preview is available now for a limited audience, in May the first public beta will be released and in November the final will be available.

Continued…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Reviews.

Tagged with , .


Software engineering is design all the way: code as design

Recently I came across an article I remember reading quite some years ago and having quite an influence on my thinking.
A short summary in my own words. Creating software is usually viewed as a form of engineering, hence the name software engineering.  Engineering consists of designing constructs and building them. Continued…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Methodology.


Enabling accesskeys for javascript events

Using the accesskey attribute, you can enable hotkeys for various html input elements. This allows one to get the focus to an input element by using the ALT-key + <CHARACTER> (on Windows) or CTRL-key + <CHARACTER> (on Mac). This way, your page is accessible by keyboards besides mouse.

Here’s the example taken from the Mozilla DevCenter:

  <label value="Enter Name" accesskey="e" control="myName"/>
  <textbox id="myName"/>
  <button label="Cancel" accesskey="n"/>
  <button label="Ok" accesskey="O"/>

Both buttons as well as the input box can be accessed by ALT+E, ALT+N, ALT+O on Windows or CTRL+E, CTRL+N or CTRL+O on a Apple-Mac.

This is quite easy to program, and works for all popular browsers (including Internet Explorer, Safari or Firefox).
There might be cases where you want to execute some javascript when an accesskey is hit, for example to fire a java-event. Almost all webapplications use javascript one way or another. Fortunately, you don’t not complitated key-event-handling javascript to do that, just use an empty link:

<a href="#" accesskey="y" onclick="some javascript"> </a>

The javascript is executed when the acesskey is hit, this case an ALT+y on Windows. The link is not displayed, so you’re free wetter or not to display a button, link or anything within your web-application.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Technology.

Tagged with , , .


Creating an ear with version for Weblogic using Maven

Using the ear plugin of Maven 2 creating an ear is very easy. The produced ear follows the JEE spec, so you can normally use it in any application server.
I’m using the ear plugin as well, in my case to be used for Weblogic 9. Weblogic has a feature that allows you to update applications on the fly using the Deployments, update command. However, to be able to use that feature well, the MANIFEST file of the ear has to include a Weblogic specific version field called WebLogic-Application-Version, with a unique version for each ear you’d want to include. Without the version number, Weblogic will list the application twice in the weblogic administration console.

Continued…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Technology.

Tagged with .


Google buys Instantiations

A while a go I used to do Swing development, and I sometimes used the tool of Instantiations to develop my GUI. I quite liked the tool.
Before that I used Visual Basic and Visual Studio frequently. I never fully understood why people would fiddle so much with pixels, stylesheets, colors etc when you could just design your GUI visually.
Well, Instantiations has GWT design tool as well. I recently tried it out very shortly. The tool looked very nice.
I just recently Google bought Instantiations. Will this mean developer productivity in frontend development is cool again?

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Various.

Tagged with , , .


McDonalds running Linux

A unix like OS on their video-screens outside, in shopping center Hoog Caterijne, Utrecht. At least something else then those Windows 95/98/NT screens I often see running at terminals, when they’ve crashed.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Various.


Stuff to research: JDO on Cassandra, GIT on Windows, Restlet, VMForce

Just had evening of just trying out stuff and not finishing anything on my Windows machine.

I wanted to try out a persistence API for Cassandra. There’s a JPA implementation for Cassandra: Kundera, as well as JDO implementation, on top (or using) datanucleus: datanucleus-cassandra.

Continued…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Technology.

Tagged with , .


Database upgrade during deployment

I want to create an installation package of a Java application. Part of the installation involves upgrading a SQL database (Oracle) – by running a few SQL scripts. Creating the SQL scripts to do the update by itself isn’t the problem, however I need to find a way to easily run those script.

Of course Oracle has something like SQLPlus, but that would mean SQLPlus has to be installed on the machine from where the package is installed. Another problem with SQLPlus is that it’s not so userfriendly.

Using JDBC and some programming I can easily create something that would check what current version of my application is installed, and then run the needed SQL scripts to upgrade the database. However, even easy things take some time and I’d think there are already some existing solutions.

I was about to ask a question on stackoverflow, but before I finished typing my question stackoverflow already came up with a similar question: Update a backend database on software update with Java. I’ll have to try out on of the suggested solutions, Liquibase, dbmigrate and maybe Autopatch.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Technology.


Motorola milestone: frustating as hell

Since a few weeks I have a Motorola Milestone, the European version of the Motorola Droid. For a small computer/handheld works very well. I can browse, use email, install application, write documents. As a phone the device fails.

There’s a lot of talk about the IPhone 4 supposedly having bad reception. Well, the Motorola Milestone has a problem too. When calling, I very often incidentally put the telephone to mute, which causes the other party not to hear me anymore. This is caused by the mute button in the middle of the touch screen. I often press is that area with my hear while calling, as I have the habit of putting my telephone to my ear… Well apparently few people in Motorola though of that.

Continued…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • DZone
  • LinkedIn
  • TwitThis

Posted in Reviews.

Tagged with .




Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin