jsf 2 - jsf2 don't work ,url pattern -


i created application jsf2 spring , hibernate, when run obtain error :

tag library supports namespace: http://primefaces.org/ui, no tag defined name: clock javax.faces.webapp.facesservlet.service(facesservlet.java:606) 

take inside web.xml , make sure have :

<context-param>     <param-name>javax.faces.default_suffix</param-name>     <param-value>.xhtml</param-value> </context-param> 

also view files ending .xhtml

now can change default extension :

<servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.jsf</url-pattern> </servlet-mapping> 

finally, make sure changed welcome file :

<welcome-file-list>     <welcome-file>index.jsf</welcome-file> </welcome-file-list> 

hope helps!


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -