JSF 2.0 and Facelets

ぐ巨炮叔叔 提交于 2019-12-12 08:56:37

问题


In blogs i have read that JSF 2.0 is inlcuding Facelets. So i only included JSF-api.jar and JSF-impl.jar to my Java build path.

But if i try to use Facelet tags, they don't work. Do i need to configure Facelets anywhere or must i include any further libraries?

THX.


回答1:


It should works fine. More information and working example you can find in IBM developer works article and following articles in this series.




回答2:


How to configure/use Facelets is outlined the Java EE 6 tutorial: Developing a Simple Facelets Application (also check the subsequent pages). You're likely forgotten to declare the ui taglib.




回答3:


Install Facelets as in article http://www.ibm.com/developerworks/java/library/j-facelets/#install

download jar from http://download.java.net/maven/1/com.sun.facelets/jars/




回答4:


Did you specify tag libraries in the html tag? Like:

<html xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html">
......
</html>


来源:https://stackoverflow.com/questions/1939577/jsf-2-0-and-facelets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!