I\'m working with a maven project that deploys a WAR archive to a project that deploys an EAR archive to a JBoss server.
Here is my Facelets code:
everything seems to work except for h:outputtext. it simply doesn't show up on the website.
Did the request URL (the URL as you see in browser's address bar) match the URL pattern of the FacesServlet
? If not, then it won't be invoked and thus all the JSF works just won't be performed.
You need to make sure that the request URL matches the URL pattern of the FacesServlet
. If it's mapped on *.jsf
, then open the page by /foo.jsf
instead of /foo.xhtml
. Or, better, just change the URL pattern of the FacesServlet
in web.xml
to *.xhtml
. This way you never need to worry about virtual URLs.