This project has retired. For details please refer to its
Attic page .
DynamicSelectionList (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.forms.datatype
Class DynamicSelectionList
java.lang.Object
org.apache.cocoon.forms.datatype.DynamicSelectionList
All Implemented Interfaces: FilterableSelectionList , SelectionList
public class DynamicSelectionList extends Object implements FilterableSelectionList
SelectionList implementation that always reads its content from the source
each time it is requested.
This list is filterable, and if a filter is provided, the "filter" parameter
is appended to the URL, e.g. <fd:selection-list src="cocoon://pipeline.xml"/>
will call, given the "foo
" filter value, the URL cocoon://pipeline.xml?filter=foo
.
Note: the class SelectionListBuilder
also interprets the same
fd:selection-list
XML, so if anything changes here to how that
XML is interpreted, it also needs to change over there and vice versa.
Version:
$Id: DynamicSelectionList.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
DynamicSelectionList
public DynamicSelectionList (Datatype datatype,
String src,
boolean usePerRequestCache,
ServiceManager serviceManager,
Context context)
Parameters: datatype
- src
- usePerRequestCache
- serviceManager
- context
-
DynamicSelectionList
public DynamicSelectionList (Datatype datatype,
String src,
ServiceManager serviceManager)
Creates a DynamicSelectionList without caching
Parameters: datatype
- -src
- -serviceManager
- -
getDatatype
public Datatype getDatatype ()
Specified by: getDatatype
in interface SelectionList
generateSaxFragment
public void generateSaxFragment (ContentHandler contentHandler,
Locale locale,
String filter)
throws SAXException
Description copied from interface: FilterableSelectionList
Generates the filtered selection list
Specified by: generateSaxFragment
in interface FilterableSelectionList
Parameters: contentHandler
- where to stream the XMLlocale
- the locale to be used for value formattingfilter
- the filter string
Throws:
SAXException
generateSaxFragment
public void generateSaxFragment (ContentHandler contentHandler,
Locale locale)
throws SAXException
Specified by: generateSaxFragment
in interface SelectionList
Throws:
SAXException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.