Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find XML schema definitions (XSD) for JSF Facelets tag libraries?

Tags:

jsf

xsd

facelets

Where can I find XML schema definitions for

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

or since JSF 2.2

xmlns:jsf="http://xmlns.jcp.org/jsf" 
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" 
xmlns:h="http://xmlns.jcp.org/jsf/html" 
xmlns:f="http://xmlns.jcp.org/jsf/core" 
xmlns:a="http://xmlns.jcp.org/jsf/passthrough" 
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" 

?

like image 570
Victor Avatar asked Feb 27 '23 14:02

Victor


2 Answers

I recently found puzzling lack of XSD for JSF tags. Although such XSD would not be complete reference as described here I find it still useful. They can help avoid typos and provide documentation for tags and attributes.

Therefore I transformed available taglib.xml files to XSD files. The result is available on my GitHub project. Available XSLT transform can be used to generate XSD from any *.taglib.xml file.

In IntelliJ IDEA Community those XSDs work like a charm.

like image 97
Dawid Pytel Avatar answered Apr 10 '23 11:04

Dawid Pytel


In the jar-file of your JSF implementation there is a META-INF folder. There you can find the .tld files that you need. But they are not .xsd.

Note that if you are using facelets, the facelets definitions are in the jsf-facelets-xx.jar

As for the JSTL core tags - this is a useful reference

That is all about JSF pre-2.0.

like image 45
Bozho Avatar answered Apr 10 '23 09:04

Bozho