HI Peter,
Well, your bean doenst conform to the bean standard.
boolean getShowInstructions() should return a String instead...
dont know if this is causing your problem, but I suspect so
Mikkel
-----Oprindelig meddelelse-----
Fra: Peter Smith [mailto:[EMAIL PROTECTED]]
Sendt: 16 May 2001 22:55
Til: [EMAIL PROTECTED]
Emne: Trouble setting properties of an ActionForm bean
I'm hoping this issue is me just not understanding the
JavaBeans spec!
When I make the getter method of my ActionForm
property
a non-String type, the 'set' method for that property
is not called when a request is made. I traced this
to
BeanUtils.java which gets a 'null' returned by
'propertyDescriptorInstance'.getWriteMethod() for the
offending method.
The code for my ActionForm with the offending property
is shown below. I changed the return type of
getShowInstructions() to boolean instead of String.
Thanks for any advice.
--Peter--
-------------------------------------------------
...
private String showInstructions_;
public void setShowInstructions(
String showInstructions )
{
showInstructions_ = showInstructions;
}
public boolean getShowInstructions()
{
return ( Boolean.valueOf(
showInstructions_ ) ).booleanValue();
}
...
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/