javax.faces.view.facelets.FaceletException: Error Parsing /my.xhtml: Error Traced[line: 42] The prefix “f” for element “f:facet” is not bound

后端 未结 3 1299
误落风尘
误落风尘 2020-12-07 02:49

I would like to create table which can display data from database into JSF page. I found this code:



        
3条回答
  •  爱一瞬间的悲伤
    2020-12-07 03:14

    You have to inlude the correct taglib for the f prefix.

    Here is an example for a JSF 2.2 Facelet page:

    
    
    
    ...
    
    

    In case you're still on JSF 2.0/2.1, use java.sun.com domain instead of xmlns.jcp.org domain in XML namespace.

    I recommend to read a JSF tutorial, you can find links in our JSF wiki page.

提交回复
热议问题