Constructor and Description |
---|
ValueList() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
getEntries(java.lang.String valueListId)
Return pairs (value,label)
|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
getEntries(java.lang.String valueListId,
Application application,
java.util.Locale locale) |
static java.lang.String |
getLabel(java.lang.String id,
java.lang.String val)
return the label of a value list entry
|
Page |
getValueListEntries(javax.servlet.http.HttpServletRequest req)
loads
Valuelist entries according to
the dojo-data-store scheme
something like:
{"identifier":"value","items":[{"value":"1","name":"male"},...]} |
Page |
show(javax.servlet.http.HttpServletRequest req)
Show the entries of the valuelist(s) as xml for xforms.
|
public Page show(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public Page getValueListEntries(javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
Valuelist
entries according to
the dojo-data-store scheme
something like:
{"identifier":"value","items":[{"value":"1","name":"male"},...]}
req
- JSONPage
containing the itemsjava.lang.Exception
public static java.util.List<Pair<java.lang.String,java.lang.String>> getEntries(java.lang.String valueListId)
public static java.util.List<Pair<java.lang.String,java.lang.String>> getEntries(java.lang.String valueListId, Application application, java.util.Locale locale)
public static java.lang.String getLabel(java.lang.String id, java.lang.String val)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.