0

As the title says.... The primefaces components that I'm using don't work when I call .xhtml files, only at startup, where no xhtml file is called

Here is the proof:

Works (shows the primefaces datatable) enter image description here

Doesn't works (the table is not there)

enter image description here

GalloPinto
  • 667
  • 2
  • 11
  • 25
  • what is the URL pattern you mentioned in `web.xml`? – SRy Oct 08 '13 at 21:07
  • /faces/* This url pattern was auto generated, i haven't touched the web.xml – GalloPinto Oct 08 '13 at 21:09
  • Can you try to replace this with `*.xhtml` and run the application? – SRy Oct 08 '13 at 21:11
  • Are you the creator of primefaces???? IT ABSOLUTELY WORKED! I was like crazy finding solution for this! Thanks! Please put it as an answer so I can give you points – GalloPinto Oct 08 '13 at 21:18
  • That's just basic Servlet API knowledge. You was just never invoking the `FacesServlet` (and hence it couldn't do its job of parsing JSF components so that they could generate the desired HTML output). See also http://stackoverflow.com/questions/3008395/jsf-facelets-sometimes-i-see-the-url-is-jsf-and-sometimes-xhtml-why/3008504#3008504 To learn more about basic servlets, head to http://stackoverflow.com/tags/servlets/info – BalusC Oct 08 '13 at 21:18

0 Answers0