JSF conditional text output

Use an EL expression in the rendered attribute, for example:

<h:outputText value="some conditional message" rendered="#{! empty someManagedBean.someProperty}" />

Minimal log4j.properties file

Here’s a minimal log4j properties file defining a console appender and pattern formatter:

log4j.rootLogger=DEBUG, console

#console appender
log4j.appender.console=org.apache.log4j.ConsoleAppender

#define patternlayour for console appender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

Latest Mac OS X patch for Java removes browser applet support

Following the recent press attention various security vulnerabilities in Java’s browser applet plugin have had in recent weeks (here and here), the latest Java patch from Apple removes the applet plugin from your browsers:

This update uninstalls the Apple-provided Java applet plug-in from all web browsers. To use applets on a web page, click on the region labeled “Missing plug-in” to go download the latest version of the Java applet plug-in from Oracle.

Since Oracle now maintain the official version of Java for Mac OS X, this is a smart move for Apple to remove the older/prior versions that end users may have of the applet plugin that shipped with older JREs previously supplied by Apple.

More details here.