Wendy Smoak wrote:
Let us know how the multiboxes work with lazy forms -- I had trouble
with lists in regular DynaValidatorForms until I switched to using
Commons Collections 'GrowthList' instead of String[] or ArrayList.
I figured everything would work the same, but now that you mention it, it seems only the first item is considered "checked" in a multibox when I do:

form.set( "prop", new String[] { "a", "b", "c" } );

(assuming an existing set of a, b, c, d, ...)

Weird stuff. I'll take the GrowthList idea, but I'll let you know if I figure something else out that's close to the way regular ActionForms work. In light of this, actual retrieval seems to work fine; I'm given a String[] when the form is submitted.

OK I'm no Java language expert but, if a lazy form is given a key=value, with no duplicates, shouldn't the get() method return a String, and shouldn't I get a ClassCastException when I try to cast it to String[]?

- Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to