Patrick,

I had the same issue before....i am following a dirty to solve this problem
:)
But how did you solve this...kindly let me know

Ivan

-----Original Message-----
From: Patrick Scheuerer [mailto:[EMAIL PROTECTED]
Sent: Friday, January 02, 2004 12:13 PM
To: Struts Users Mailing List
Subject: Re: Problem with BeanUtils.copyProperties()


and in contrary to my earlier problem, there's no other method with the same
method name...

Patrick Scheuerer wrote:

> Argh! I'm about to loose my sanity over this...
>
> The problem with the String[] is now working but there's a new one of
> course :-(
>
> For some reason BeanUtils.copyProperties() doesn't call a setter method
> in the destination bean.
>
> Here's the definition of the form field in struts-config.xml
>
>     <form-property name="keywords"
>                    type="java.lang.String"/>
>
> In the destination bean there's the corresponding setter
> method:
>     public void setKeywords(String keywords) {
>         ...
>     }
>
> For some reason copyProperties() doesn't call my setter method. If I
> step through copyProperties() in the debugger I get until
>
>            for (int i = 0; i < origDescriptors.length; i++) {
>                 ..
>                 } else {
> -->                 if (isWriteable(dest, name)) {
>                         Object value = ((DynaBean) orig).get(name);
>                         PropertyUtils.setSimpleProperty(dest, name,
value);
>                     }
>                 }
>
> If I step over the if statement the following block of code is not being
> executed. Why is this property not writeable???
>
> At runtime the property in question in origDescriptors has the value:
>
>     DynaProperty[name=keywords,type=class java.lang.String]
>
> Why is the setKeywords(String keywords) method not called on my dest
> bean???
>
> Can somebody please help me out here? What am I doing wrong?
>
> Thanks a lot,
> Patrick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



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

Reply via email to