Hi, I have a form that works with items that have a composed primary key. Say I have a table "score" where scores of students of assessments are saved. The primary key is composed from a student-id and a assessment-id.
In the form I just wrote: <stripes:text name="scores[${student.id}][${assessment.id}]" /> And my action bean has a Map<Integer, Map<Integer, Score>> that holds the scores that the form displays (may be quite a number of scores that are listed in a table in a form). That works quite well for loading an prepopulating the form, but how do I save the result again? I thought about writing a custom type converter, but in the type converter I don't see anything but the value from the text field, not the index keys that I need to load values from the database. I thought about just creating a second Map<Integer, Map<Integer, String>> and then create a validation method that will iterate through the map, loading entities from the database and saving them into the other map again. But then I need this additional property in my action bean that just has a very short lifetime and may have an impact on the readability of the code. Anyway, what do you believe would be the "best" way to solve this? Thanks, Thomas ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users