--- David Harland <[EMAIL PROTECTED]> wrote:
> I have a list of contact objects and I am wrapping
> each object in a class has the id and a boolean for
> checkboxes. When I post the data and try to read to
> values I get the following error

ContactsWrapper probably just needs a default ctor.

http://struts.apache.org/2.x/docs/type-conversion.html

Note specifically the line from the "Null Property
Handling":

"""
If the null property is a simple bean with a no-arg
constructor, it will simply be created using the
[EMAIL PROTECTED] ObjectFactory#buildBean(java.lang.Class,
java.util.Map)} method.
"""

Since ContactsWrapper only had
ContactsWrapper(Contact) it's not a normal JavaBean
(IIRC JavaBeans require default, no-arg ctors, but I
could be remembering that incorrectly).

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to