Thanks Dave,

Initializing the collection also did not help. If possible can you please let 
me know what are the conversion-properties files u have and their location 
[should they be in the package of the class or in the classpath] and does it 
need any additional interceptor for this.

Zafer

----- Original Message ----
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Saturday, February 3, 2007 3:38:03 PM
Subject: Re: [S2] Re: Populating collection in struts 2 Action properties

--- zafer Mohamed <[EMAIL PROTECTED]> wrote:
> I have Person-conversion.properties in the "zm.junk"
> package. It is the same package where I have the
> Person and Role class
> CreateIfNull_roles=true
> Element_roles=zm.junk.Role
> 
> And as for the other question I do not have the
> roles initialized.

Try having roles be initialized to an empty
collection, at least as a sanity check. All my
collections exist, they're just empty, and I have
gotten the type conversion working quite well with
fairly complex object graphs.

AFAICT the type conversion stuff will create objects
for you, but it will not create a collection to put
them in? (Not sure about that, but I know it works for
me if the collections are there but empty).

Dave



 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

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








 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Reply via email to