Rectangle 27 0

JSF PrimeFaces simple example: blank page only?


4. JSF 2.0 Serlvet Configuration
<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
Note
Rectangle 27 0

JSF PrimeFaces simple example: blank page only?


For example, if you have a page called:

Sometimes when you build a JSP or XHTML page, and you enter in the navigator it doesn't work like a JSF page.

To fix it you need to view the web.xml and change the url-pattern like said Daniel before.

and you have this in your web.xml

Note
Rectangle 27 0

JSF PrimeFaces simple example: blank page only?


For example, if you have a page called:

Sometimes when you build a JSP or XHTML page, and you enter in the navigator it doesn't work like a JSF page.

To fix it you need to view the web.xml and change the url-pattern like said Daniel before.

and you have this in your web.xml

Note
Rectangle 27 0

JSF PrimeFaces simple example: blank page only?


4. JSF 2.0 Serlvet Configuration
<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
Note