Syntax
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <f:view><h:form> Employee details<br><br> Login: <h:inputText value="#{projectMB.currentEmployee.login}"></h:inputText><br> Salutaton: <h:inputText value="#{projectMB.currentEmployee.salutation}"></h:inputText><br> Last Name: <h:inputText value="#{projectMB.currentEmployee.lastName}"></h:inputText><br> First Name: <h:inputText value="#{projectMB.currentEmployee.firstName}"></h:inputText><br> Email: <h:inputText value="#{projectMB.currentEmployee.email}"></h:inputText><br> Salary: <h:inputText value="#{projectMB.currentEmployee.salary}"> <f:converter converterId="javax.faces.Number" /> </h:inputText><br> <h:commandButton value="Save" action="#{projectMB.createEmloyee}"></h:commandButton> <h:commandButton value="Cancel" action="listEmployees"></h:commandButton> </h:form></f:view></body> </html>