Sunday, June 30, 2013

JDK 1.7 Released on MAC OSX

Java SE Development Kit 7 (JDK)--Released For Mac OS X
Oracle releases Java SE Development Kit 7 (JDK 1.7u4) for Mac OS X. It is the first official Oracle release for Mac OS X. See Release Notes.
JAVA_HOME can be set by putting the following line into the ~/.profile file:
export JAVA_HOME="/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home"

 NetBeans 7.1.2 was simultaneously released as well. Also Java FX 2.1 is available for Mac and Windows to download

JSF 2.2 AND HTML 5 PLACEHOLDER (PASSTHROUGH)

The Java EE 7 version of JSF (2.2) enables the definition of any arbitrary attributes, which are not going to be processed by the JSF runtime and directly passed to the browser.
However, you will have to declare an additional namespace and qualify the attribute with the namespace:


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://xmlns.jcp.org/jsf/passthrough">

  <!-- ... -->
  <h:inputText value="#{index.message}" p:placeholder="write something"/>
  <!-- ... -->

The generated output is:

<input type="text" name="j_idt9:j_idt10:j_idt11" placeholder="write something">