Reader small image

You're reading from  Java EE 7 Development with NetBeans 8

Product typeBook
Published inJan 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781783983520
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
David R Heffelfinger
David R Heffelfinger
author image
David R Heffelfinger

David Heffelfinger is the Chief Technology Officer of Ensode Technology, LLC, a software consulting firm based in the greater Washington DC area. He has been architecting, designing, and developing software professionally since 1995, and has been using Java as his primary programming language since 1996. He has worked on many large-scale projects for several clients including the US Department of Homeland Security, Freddie Mac, Fannie Mae, and the US Department of Defense. He also has a Masters degree in Software Engineering from Southern Methodist University. David is Editor-in-Chief of Ensode.net (http://www.ensode.net), a website about Java, Linux, and other technology topics.
Read more about David R Heffelfinger

Right arrow

HTML5 support


JSF 2.2 added new improvements to support HTML5 features. The two most prominent features for HTML5 support are HTML5-friendly markup and pass-through attributes.

HTML5-friendly markup

HTML5-friendly markup allows us to develop our JSF views using HTML5 tags, as opposed to JSF-specific tags. In order use these tags, we need to include the http://xmlns.jcp.org/jsf namespace on our page and specify at least one of the tag attributes with one of the attributes defined in this namespace.

In this section, we will rewrite the application we developed in the Developing our first JSF application section earlier in this chapter to utilize HTML5-friendly markup.

To use HTML5-friendly markup with NetBeans, we need to create a web application project from the Java Web section and select JavaServer Faces as a framework for our application as usual. When adding pages to our application, we need to select the XHTML file type from the Web category.

Then, we add HTML markup to our page.

Tip

We can...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Java EE 7 Development with NetBeans 8
Published in: Jan 2015Publisher: PacktISBN-13: 9781783983520

Author (1)

author image
David R Heffelfinger

David Heffelfinger is the Chief Technology Officer of Ensode Technology, LLC, a software consulting firm based in the greater Washington DC area. He has been architecting, designing, and developing software professionally since 1995, and has been using Java as his primary programming language since 1996. He has worked on many large-scale projects for several clients including the US Department of Homeland Security, Freddie Mac, Fannie Mae, and the US Department of Defense. He also has a Masters degree in Software Engineering from Southern Methodist University. David is Editor-in-Chief of Ensode.net (http://www.ensode.net), a website about Java, Linux, and other technology topics.
Read more about David R Heffelfinger