简体   繁体   中英

JSF 2.0 and Facelets

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.

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

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.

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM