JSF html namespace does not work

后端 未结 1 1738
无人共我
无人共我 2021-01-25 06:24

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:



        
相关标签:
1条回答
  • 2021-01-25 07:01

    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.

    0 讨论(0)
提交回复
热议问题