webtier@glassfish.java.net

Re: Passing ajax listener into a component

From: <webtier_at_javadesktop.org>
Date: Wed, 14 Apr 2010 09:54:12 PDT

Please take a look at the documentation for the VDL (View Description Language):


Declares that this attribute must be a MethodExpression whose method signature is described by the value of this attribute. The signature must be described using fully qualified class names wherever a type is required. This attribute is mutually exclusive with the "type" attribute. If both attributes are present, the "method-signature" attribute is ignored.

PENDING: when this file is generated from the web-facesuicomponent_2_0.xsd, we will not need to copy the content here manually.

Provides the signature of the Java method. The syntax of the method-signature element is as follows (taken from function-signature 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 )
[Message sent by forum member 'rogerk']

http://forums.java.net/jive/thread.jspa?messageID=396951