This project has retired. For details please refer to its
Attic page .
DynamicSelectionList (Cocoon Forms Block Implementation 1.1.0 API)
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 1304280 2012-03-23 11:18:01Z 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,
XMLizer xmlizer,
SourceResolver sourceResolver,
HttpServletRequest request)
Parameters: datatype
- src
- usePerRequestCache
-
DynamicSelectionList
public DynamicSelectionList (Datatype datatype,
String src,
XMLizer xmlizer,
SourceResolver sourceResolver,
HttpServletRequest request)
Creates a DynamicSelectionList without caching
Parameters: datatype
- -src
- -
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-2008 The Apache Software Foundation . All Rights Reserved.