You'll want to make sure it's clear to the Introspector the name and
type of your property. You said you have "setPropertyName(int value) and

setPropertyName(String value)". You'll want to only have one of these.
Also, if you're having problems, make sure you have a getter for the
property exposing the same type of property (i.e. it returns the same
type as the setter gets as a parameter). I've seen problems with the
Introspector not being able to figure out what the property is and not
setting values. 

> -----Original Message-----
> From: Gerardo Segura [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 12, 2004 1:06 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] strange behaviour on simple situation...
> 
> 
> Hi,
> i'm a newbie using spring + webwork,  based on the integration 
> technique  presented in 
> http://wiki.opensymphony.com/space/Spring+Framework+Integration
> 
> altough it's stated simple, this problem  is hazarding my 
> mental heath. on my application i've coded a few dozens of 
> actions but recently i 
> faced two problems:
> 
> 1. i was sending a parameter with a given name to an action and even 
> there was the setter method
> it wasn't been called.  Strangely, other parameters were been setted 
> perfectly. the query showed the
> parameter was, in effect, been received but no setter called.  The 
> setter method follow the convention
> public void setPropertyName and the parameter name was 
> propertyName.  i 
> repeat i have coded many
> actions before.
> 
> 2.  The same problem, but this time occured when setting a 
> property in 
> applicationContext.xml
>      with a statement of the form:
> <property name="propertyName"><value>1</value></property>
> i include setPropertyName(int value) and 
> setPropertyName(String value), 
> but none was been called.
> 
> since i have other actions working on the same circumstances, and i 
> cannot see any difference it makes me think if there are some 
> constraints with the property names, their size name or something
> 
> i know i'm exposed to public muck becouse this apparently trivial 
> problem but i could not see what the/my problem was.
> 
> regards
> Gerardo Segura.
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now! 
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438> &op=click
> 
> _______________________________________________
> 
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to