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
Post a Comment