Where can I find schema definitions for jsf?

Where can I find schema definitions for

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

?

+4
source share
3 answers

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

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

Regarding the main JSTL tags - this is a useful link

It is all about JSF up to 2.0.

+3
source

I recently discovered the bewilderment of the lack of XSD for JSF tags. Although such an XSD will not be a complete reference, as described here , I find it still useful. They can help avoid typos and provide documentation for tags and attributes.

So I converted the available taglib.xml files to XSD files. The result is available in my GitHub project . The available XSLT conversion can be used to generate XSD from any *.taglib.xml file.

In the IntelliJ IDEA community, these XSDs work like a charm.

+2
source

You can convert .tld files from @ Bozho's answer to XSD files for integration into the Schema Aware XML editor. Details

If you use IntelliJ, you can add a JSF facet to your module, and the IDE will provide autocomplete and documentation for elements and attributes in JSF namespaces based directly on .tld files.

+1
source

Source: https://habr.com/ru/post/1301415/


All Articles