You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ricardo Andres Quintero <rq...@ubiquando.com.co> on 2004/08/25 23:42:03 UTC

html:checkbox no getter method for propety

Hello im getting an error that
i have a bean form with a boolean property
but when i use <html:checbox property="myProp" />,
i got a no getter method for propert myProp,
but it does exist in the bean form.

any ideas?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:checkbox no getter method for propety

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Ricardo Andres Quintero"
> Hello im getting an error that
> i have a bean form with a boolean property
> but when i use <html:checbox property="myProp" />,
> i got a no getter method for propert myProp,
> but it does exist in the bean form.
> any ideas?

Post your code, otherwise we're just guessing.  You've got 'checbox' not
'checkbox' in your snippet above, so I'll assume that was retyped and not
pasted in.

Check that your form bean conforms to JavaBeans naming specifications-- 
get/setMyProp (or isMyProp if you prefer, but it should work either way.)
Make sure you don't have multiple 'setMyProp' methods with different types.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org