An attribute evaluator. This attribute evaluator extends the default
evaluator by adding support for the ${values},${value} arguments. The
evaluator also support mapping of attributes through the attribute names
specified as ${attribName}.
The attributes can also be defined in classes other than the current page
or classes derived from XPage. The syntax for such expressions is as follows:
- 1.
${mypackage.MyClass[referenceName].myMethod(args...)} for a named object instance
- 2.
${mypackage.MyClass[].myMethod(args...)} to create a new instance of the class on each evaluation
- 3.
${mypackage.MyClass.myMethod(args...)} to invoke a static method
- 4.
${myMethod[referenceName](args...)} for a method contained with the invoking page
- 5.
${this[componentName].componentMethod(args...)} for a method contained within named component
- 6.
${this.method(args...)} for a method contained within the enclosing page, identical to 4 above
- 7.
${project.method(args...)} for a method contained within the project
- 8.
${comp.method(args...)} for a method contained within the component
- 9.
${this} for a reference to the page
- 10.
${comp} for a reference to the component
- 11.
${value} for a reference to the named argument value
- 12.
${values} for a reference to the named argument values
where mypackage is the name of the Java package containing the class MyClass.
The value of referenceName is a user defined value that identifies the instance
of the class. The application instantiates an instance of the class when
the expression is first encountered and thereafter maintains the instance with
each subsequent call retrieving the same instance of the class.
Copyright (c) Xoetrope Ltd., 2001-2008, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
|