[Opensource] setLookup() not retrieving the values from the DBObject
Raul DAVIDOVICH
R.DAVIDOVICH at caconcology.com
Wed Aug 21 05:55:32 PDT 2002
Hello,
I'm trying to use a drop down input who reads the values to display
from a DBObject.
in the DBObject, I overrided the getValues() method like this:
public Vector getValues() throws DBException{
return getValuesDefault("Referencer", "Label");
}
In the controller, I define the Input like this:
Input myInput = new Input();
myInput.setName("MyInput");
myInput.setLabel("My Label");
myInput.setDisplayLength(15);
myInput.setType("dropdown");
myInput.setLookup("com.mycompany.dbobj.MyDBObj");
response.add(myInput);
now, when I call it from the JSP, I get a Null pointer Exception:
<expresso:InputTag name="MyInput" />
If I change the field type from "dropdown" to "multivalued", it presents a
blank list...
I also defined as mutivalued a field in another DBObject, and I give the
first one as parameter to setLookupObject(), and in the AutoDbObject, it
retrieves the values correctly...
any clues??
thank you very much in advance
Best regards
---------------------------------------------------
Raul Davidovich
Responsable Informatique
Cvitkovic & Associés Consultants
(33) 1 45 15 40 68
(33) 1 45 15 40 41 Fax
-------------------------------------------------------
http://www.caconcology.com
More information about the Opensource
mailing list