This project has retired. For details please refer to its
Attic page .
FlowJXPathSelectionListBuilder (Cocoon Forms Block Implementation 1.1.0 API)
org.apache.cocoon.forms.datatype
Class FlowJXPathSelectionListBuilder
java.lang.Object
org.apache.cocoon.forms.datatype.FlowJXPathSelectionListBuilder
All Implemented Interfaces: SelectionListBuilder
public class FlowJXPathSelectionListBuilder extends Object implements SelectionListBuilder
Builds a selection list that will take its values from the flow page data.
The items list and, for each item, its value and label, are fetched using
JXPath expressions.
If an item has no label, its value is used as the label.
Example:
<fd:selection-list type="flow-jxpath"
list-path="selectList" value-path="value" label-path="label"/gt;
Flow script:
var data = {
selectList: [{value:3, label:"three"}, {value:4}]
};
form.showForm("form.html", data);
Version:
$Id: FlowJXPathSelectionListBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also: FlowJXPathSelectionList
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
FlowJXPathSelectionListBuilder
public FlowJXPathSelectionListBuilder ()
build
public SelectionList build (Element selectionListElement,
Datatype datatype)
throws Exception
Specified by: build
in interface SelectionListBuilder
Throws:
Exception
setProcessInfoProvider
public void setProcessInfoProvider (org.apache.cocoon.processing.ProcessInfoProvider processInfoProvider)
Copyright © 1999-2008 The Apache Software Foundation . All Rights Reserved.