[
http://issues.apache.org/struts/browse/STR-2972?page=comments#action_38673 ]
Stuart Goldberg commented on STR-2972:
--------------------------------------
Thanks Niall,
I see from the Struts website that you are a committee member. Well, I now have
my name is lights!
Anyway, my company uses Struts and was enhancing one of our project's code. I
found the LazyValidatorForm to be very useful for what I wanted to do.
However, I would have prefered a flavor that doesn't seem to exist.
Here's the scenario, we have one of 4 forms that can put up as a web page. Each
of the forms has a certain number of fields in common; the others vary from
form to form. If this were modeled in OOP terms, you'd have an abstract form
that has the common fields and subclasses that add their own.
I'm looking for a type of Struts form that, in part, looks like a POJO
ActionForm with setters and getters, yet it would have a lazy component to it
as well so that other fields could be added to it much like the
LazyValidatorForm.
I'd like to be able to pull out the common information like this:
myForm.getCommonProp1(), myForm.getCommonProp2(), etc. I'd like to reserve the
lazy usage pattern (i.e. myForm.get("specialProp1") ) for the specialized
properties. I tried to compose something like this using: LazyDynaBean,
WrapDynaBean, subclassing, etc. All to no avail!
Do you see something useful in this? Perhaps I could write it and become a
Contributer! Let me know.
- Stuart
> LazyValidatorForm cannot be saved in the session
> ------------------------------------------------
>
> Key: STR-2972
> URL: http://issues.apache.org/struts/browse/STR-2972
> Project: Struts 1
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.3.5
> Environment: N/A
> Reporter: Stuart Goldberg
>
> This issue relates to the Struts Bugzilla entry "ASF Bugzilla Bug 35488".
> That fix makes it so that your forms can be resued if you use a POJO in a
> <form-bean> element that Strus will wrap in a BeanValidatorForm.
> However it is still broken in the following scenario. Use LazyValidatorForm
> (or a subclass thereof) in a <form-bean> element. Your form will never be
> reused (or saved?) because FormBeanConfig will compare LazyValidatorForm
> against LazyDynaBean and always fail.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira