JSF RuntimeException: Cannot find FacesContext

Posted by Sunny Mate on Stack Overflow See other posts from Stack Overflow or by Sunny Mate
Published on 2010-03-11T11:22:45Z Indexed on 2010/03/11 17:29 UTC
Read the original article Hit count: 323

Filed under:
|
|

When i write <h:outputText value="Login Name"/> tag in my jsp i am getting "Cannot find FacesContext" error , with out that tag my jsp working fine

here is my JSP

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

  <body>
Login Name <input type="text" value=""/><br>

**<h:outputText value="Login Name"/>**

Password<input type="password" value=""/><br>
            <input type="submit" value="Login">
  </body>
</html>

© Stack Overflow or respective owner

Related posts about jsp

Related posts about java