Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
object:list
Retrieves a list of objects
Syntax
<object:list classname="some classname" list="name of list" [order="list of field names"] [arg1="argument 1"] [arg2="argument 2"]/> <object:argument name="name" value="value"/>Parameters
classname (required)- Classname of the object.
list (required)- Specifies the name of the list in the list pool. This is the same list pool used by other Sites tags that generate lists. If a list exists with the same name, it is replaced by the new list.
order (optional)- Specifies a comma separated list of names that should be used to order the list of objects.
arg1 (optional)- Argument 1.
arg2 (optional)- Argument 2.
Description
This tag builds a list of objects that meet the specified criteria. The criteria are a list of name/value pairs, which must be present in the object. The implementing class must implement a list method. The list method should have one of the following prototypes:
public static IList List (ICS ics, FTValList aArgument, String sOrder)
public static IList List (ICS ics, FTValList aArgument, String sOrder, String sArg1)Error Numbers
The possible values of
errnoinclude:
Value Description -101 No rows returned. -105 Database error. -10001 The implementing class is invalid. -10002 There is a missing method for the implementing class. -10003 The method could not be invoked successfully. -10004 A required parameter is missing. -10010 Invalid attribute value.Example
The following example lists all objects in the
sampletable.<object:list classname="com.openmarket.framework.objects.AbstractObject" list="list1" arg1="sample"/>See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.