If you are getting an error that says “There is no ID/IDREF binding for IDREF” when validating an XML file you should check if an IDREF-typed attribute somewhere is pointing to an ID that is not defined anywhere yet.

A stupid thing about Java NIO and using blocking sockets is that the SO_TIMEOUT is not used anymore even if you set it. You may wonder why anyone will use blocking sockets with NIO? I am doing this in p300 because I want to use the increased performance of using FileChannel.transferFrom.

Read more…

Wordpress can expose every category or tag as a RSS feed. For example, you can announce the feed for a category by adding this into your theme file at the part where the HTML-Head is generated:

Read more…

If Eclipse complains that it cannot start JBoss (”Timeout waiting for JBOSS 5.0 to start. Server did not start after 50s.”) then try to set the timeout to a higher value. It can be done in the options:

Windows -> Preferences -> Server -> Server timeout delay

There are a lot of tips and hints out there on the internet, which describe how you could add support for Java Server Faces and Facelets to the Eclipse environment.
Mostly, they deal with adding code completion for JSF/Facelets tags and so on. There are some possibilities to achieve this, ranging from creating TLD files to using the JSP editor in Eclipse for the XHTML code of the Facelets pages.

But the “trick” I prefer is much more simple :D

You want to see it? Well, just download and install the JBoss Tools and you have it all!

Usually, when you enter standard <!-- ... --> html comments in your XHTML definition for a Facelets view, these comments are rendered by Facelets, so they are included in the resulting HTML. Even EL contained in these comments is executed!

In most cases, this is not what you hope to see, because if you want to make real comments, you have to use the <ui:remove> tag, which is not really comfortable.

Read more…