Tuesday 18 August 2009

JSF - panelGrid syntax

If you have a list of items and you want to display them in a grid structure (e.g. a table), here's an example of usage for the h:panelGrid for a 4-column layout:

Wednesday 5 August 2009

Java Reflections API (example)

Looping through Objects in a list, checking whether each Object contains a method called getId(). If so, invoke the method and show the result:

Tuesday 4 August 2009

Glassfish and Eclipse : Cutting down the number of "out of PermGen space" errors

We've run into an issue where making and re-deploying several changes to a webapp on glassfish causes PermGen space errors. This behaviour has been observed when using the glassfish adapter in Eclipse whilst working on a JSF(1.2) application.

For a quick fix, edit your domains\{domain-name}\config\domain.xml and look for a line specifying the -XX:MaxPermSize. Try upping the value somewhat: