A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
JSF not rendering properly
Ram Kas
Ranch Hand
Joined: Jul 26, 2006
Posts: 81
posted
Oct 29, 2010 14:20:20
0
Hi all,
My
JSF
is not rendering. If I see the source it shows the tags but not the HTML.
JSF page looks like:
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form prependId="false"> <table> <tr><td>User Name:</td><td><h:inputText value="#{userdata.userName}" size="10" maxlength="30"/></td></tr> <tr><td>Password:</td><td><h:inputText value="#{userdata.password}" size="10" maxlength="30"/></td></tr> <tr><td>Role:</td><td><h:inputText value="#{userdata.role}" size="10" maxlength="30"/></td></tr> </table> </h:form> </h:body> </html>
import java.io.Serializable; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; /** * * @author user */ @ManagedBean(name="userdata") @SessionScoped public class UserDataManagedBean implements Serializable { private String userName; private String password; private String role; public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } }
B Nirvan
Ranch Hand
Joined: Oct 20, 2010
Posts: 82
posted
Oct 30, 2010 01:10:38
0
Your
FacesServlet
is not getting invoked. Make sure you have mapped the
FacesServlet
to the url
patterns
that should be processed by it.
regards,
Nirvan.
I agree. Here's the link:
http://zeroturnaround.com/jrebel/download
subject: JSF not rendering properly
Similar Threads
Error
Problem with navigation in JSF with Filter
JSF 2.0 Login
Why @ManagedBean works while @Named doesn't?
Session Scope JSF
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter