Aaron Porter-3 wrote:
> 
> Laird,
> Does your Diagnoses.getMap() return a Map<String,PresenceType> ? If not 
> there's no way for Stripes to know what type of object to create for a 
> value in the map.
> 

Yes, it does.  Well, I'm inferring something from your post: it returns a
Map<String, Diagnosis>.  A Diagnosis object has a presenceType property of
type DiagnosisPresenceType.

So, again:

person.diagnoses['foobar'].presenceType.ID

and the relevant Java is:

Person.java:
public Map<String, Diagnosis> getDiagnoses();

Diagnosis.java:
public DiagnosisPresenceType getPresenceType();

DiagnosisPresenceType:
public int getID();

After cleaning up my code and whatnot I have found by dumping stack at
various places that Stripes actually *does* create the Diagnosis object.  It
also creates the Map<String, Diagnosis>.  It then somewhat inexplicably puts
'foobar' in as the key, and--this is really weird--null as the value.  This
occurs right after it creates a new empty Diagnosis object.  It's like it
creates the Diagnosis object for no reason, then throws it away, then puts
null in the map instead.

Thanks for the quick reply.

Best,
Laird
-- 
View this message in context: 
http://old.nabble.com/Map-binding--tp26616768p26617972.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to