From the course: Java EE: JavaServer Faces JSF

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

HTML5 markup and support in JSF

HTML5 markup and support in JSF

From the course: Java EE: JavaServer Faces JSF

Start my 1-month free trial

HTML5 markup and support in JSF

- [Instructor] JSF strives to provide as many Facelets components as there are HTML controls. But there are still gaps that need to be filled because raw HTML has a broader audience than JSF does. The JSF platform now allows you to simply combine basic HTML 5 markup along with standard expression language syntax and JSF-named attributes. In fact, you could build an entire application using just HTML 5 markup and expression language as glue code to buy values to the server side. JSF support for HTML 5 comes in two flavors. We have pass-through elements, PTEs, and pass-through attributes, PTAs. A way to think about these two is this. Pass-through elements are snippets added to HTML 5 components to make them feel like JSF components, while pass-through attributes are snippets added to JSF components to make them feel like HTML 5 components. Let's give some of these a go. We'll start with a pass-through elements, so an import for the pass-through element package is necessary. So, we'll go…

Contents