On Nov 30, 2007 8:57 PM, Vinny <[EMAIL PROTECTED]> wrote: > Hmm, > I've never tried using lazy inside a standard ActionForm, the ones that I > have work inside of > a DynaValidatorActionFom (say that 3 times fast). Don't feel like writing > a > reset method?
Unless I'm missing something, the reset method would have to know how deep to the initialization (which it won't know for a request scoped form that can be nested to N levels.) Typically I'd take the approach shown about half way down here: http://wiki.apache.org/struts/StrutsCatalogLazyList where I'd decorate using ListUtils in my reset method, but that only works when you know how deep you need to initialize things. Maybe I'll just try out a DynaActionForm.. still using a DynaBean inside of a regular ActionForm I'd think should work (assuming you populate all your nested items with LazyDyna beans. At least I think it should. I'll have to mess around more with it. I just want to be able to populate a nested set of maps to any level that will work with request scope. At this point, I don't even care about using standard pojos in my maps so dynabeans will be fine if it makes things easier.