Jakarta Faces 4.0 Facelet Tag Libraries that wish to conform to this schema must declare it in the following manner.
<facelet-taglib xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facelettaglibrary_4_0.xsd" version="4.0"> ... </facelet-taglib>The instance documents may indicate the published version of the schema using xsi:schemaLocation attribute for jakartaee namespace with the following location:
https://jakarta.ee/xml/ns/jakartaee/web-facelettaglibrary_4_0.xsd
]]>The attribute element defines an attribute for the nesting tag. The attribute element may have several subelements defining:
a description of the attribute
the name of the attribute
whether the attribute is required or optional
the type of the attribute
If not present then the default is "false", i.e the attribute is optional.
]]>
MethodSignature ::= ReturnType S MethodName S? '(' S? Parameters? S? ')'
ReturnType ::= Type
MethodName ::= Identifier
Parameters ::= Parameter | ( Parameter S? ',' S? Parameters )
Parameter ::= Type
Where:
Type
is a basic type or a fully qualified
Java class name (including package name), as per the 'Type'
production in the Java Language Specification, Second Edition,
Chapter 18.
Identifier
is a Java identifier, as per the
'Identifier' production in the Java Language Specification,
Second Edition, Chapter 18.
Example:
java.lang.String nickName( java.lang.String, int )
As of 3.0 of the specification, this requirement is no longer
present: This element must have exactly one of
<component-type>
, <resource-id>
,
or <handler-class>
among its child elements.
<resource-id>myCC/ccName.xhtml</resource-id>
Defines the canonical name of a tag or attribute being defined.
The name must conform to the lexical rules for an NCName
]]>