com.sun.faces.web-facesuicomponent_2_2.xsd Maven / Gradle / Ivy
Show all versions of jakarta.faces Show documentation
The XML Schema for a JavaServer Faces UIComponent (Version 2.0).
The elements in this schema may be used in an XHTML page for
a composite component, by pulling in the composite namespace:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://xmlns.jcp.org/jsf/composite">
<composite:interface>
<composite:attribute name="foo" default="bar" />
</composite:/interface>
<!-- the rest omitted -->
</html>
The elements in this schema may also be used in a facelet taglibrary
file in the same manner:
<facelet-taglib xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
version="2.0">
<namespace>http://domain.com/test_schema</namespace>
<tag>
<tag-name>testSchema</tag-name>
<component>
<component-type>jakarta.faces.Input</component-type>
<renderer-type>jakarta.faces.Text</renderer-type>
<handler-class>com.sun.faces.facelets.tag.faces.ComponentHandler</handler-class>
<component-extension>
<composite:attribute name="foo" default="bar" />
</component-extension>
</component>
</tag>
</facelet-taglib>
The instance documents may indicate the published
version of the schema using xsi:schemaLocation attribute
for javaee namespace with the following location:
http://xmlns.jcp.org/xml/ns/javaee/web-facesuicomponent_2_2.xsd
]]>
The "attribute" element declares an attribute of this
ui component.
Provides the signature of the Java method. The syntax of
the method-signature element is as follows (taken from the
function-signature EBNF in web-jsptaglibrary_2_1.xsd):
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 )
]]>