All Downloads are FREE. Search and download functionalities are using the official Maven repository.

avax.faces-api.2.2.source-code.web-facesuicomponent_2_2.xsd Maven / Gradle / Ivy

Go to download

This is the master POM file for Oracle's Implementation of the JSF 2.3 Specification.

There is a newer version: 2.3-pfd
Show newest version





    
        

            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-facelettaglibary_2_0.xsd"
              version="2.0">
  <namespace>http://domain.com/test_schema</namespace>
  <tag>
    <tag-name>testSchema</tag-name>
    <component>
      <component-type>javax.faces.Input</component-type>
      <renderer-type>javax.faces.Text</renderer-type>
      <handler-class>com.sun.faces.facelets.tag.jsf.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 )

]]>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy