I'm new to JSF. Well, I'm trying to pass attributes like placeholder through jsf with omnifaces. But somehow the attributes are not recognized. Am I missing something?
Omnifaces.jar is in the Java Server Faces library and I added the Html5RenderKitFactory to the faces-config.xml.
Here's what the content of the JSP file look like:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui" xmlns:o="http://omnifaces.org/ui">
<head>
<title>Login</title>
</head>
<body>
<div class="container">
<f:view>
<f:loadBundle basename="de.jsf.messages" var="msg" />
<h:form styleClass="form-signin" o:autocomplete="off">
<h2 class="form-signin-heading">Please sign in</h2>
<h:panelGrid columns="2">
<h:inputText value="#{user.name}" styleClass="input-block-level" placeholder="#{msg.user}">
I'm using Tomcat 7.0, MyFaces 2.1, Omnifaces 1.4.
Thanks in advance!