After a fresh start on a Monday, I figured out how to use a Hashmap in
a DropDownChoice component when separate id/display values are
required. I was hoping to get a bit more of an explicit answer from
the community on this one though, since I was completely stumped,
which is what I
On Mon, Dec 15, 2008 at 6:02 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:
After a fresh start on a Monday, I figured out how to use a Hashmap in a
DropDownChoice component when separate id/display values are required. I was
hoping to get a bit more of an explicit answer from the
new ichoicerendererinteger() {
Object getDisplayValue(integer object) {
return choices.get((integer)object);
}
String getIdValue(integer object, int index) {
return object.tostring();
}
}
-igor
On Fri, Dec 12, 2008 at 9:46 AM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:
Hi all,
Thanks.
I now have this:
IModel dropDownModel = new Model() {
protected Object load() {
preferences.put(0, some choice);
preferences.put(1, some other choice);
preferences.put(2,
that map needs to be in the choicerenderer. your domain model type is
integer, ddcinteger looks like this:
dropdownchoice(string id, imodelinteger model, imodellistinteger
choices, ichoicerendererinteger renderer)
-igor
On Fri, Dec 12, 2008 at 10:36 AM, Steve Swinsburg