Package com.groiss.wf.html
Class ValueList
java.lang.Object
com.groiss.wf.html.ValueList
create an XML representation for value lists, useable in XFORMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntries
(String valueListId) Return pairs (value,label)getEntries
(String valueListId, Application application, Locale locale) static String
return the label of a value list entryloadsValuelist
entries according to the dojo-data-store scheme something like:{"identifier":"value","items":[{"value":"1","name":"male"},...]}
static Page
this method is called by valuelist.html to load key-value-pairs from a CSV-fileshow
(HttpServletRequest req) Show the entries of the valuelist(s) as xml for xforms.
-
Constructor Details
-
ValueList
public ValueList()
-
-
Method Details
-
show
Show the entries of the valuelist(s) as xml for xforms. -
getValueListEntries
loadsValuelist
entries according to the dojo-data-store scheme something like:{"identifier":"value","items":[{"value":"1","name":"male"},...]}
-
getEntries
Return pairs (value,label) -
getEntries
-
getLabel
return the label of a value list entry -
loadItemsFromFile
this method is called by valuelist.html to load key-value-pairs from a CSV-file- Throws:
Exception
-