Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

no write method for property error  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

On my JSF page, I'm submitting a form and getting back the validation error "Bean: com.mycot.npsconfig.jsf.controllers.ConfigGridPage, property: appConfig (no write method for property!) Bean: com.myco.npsconfig.jsf.controllers.ConfigGridPage, property: appConfig (no write method for property!)".

This is true, I don't have a method for that, but I don't want one and I can't figure out why the bean is trying to set this property. Here's the post data that I'm submitting:

appNameBACC_SVC
configAction
configData
configForm:_idcl
configForm:_link_hidden_
configForm:applicationSelectBACC_SVC
configForm:elementSelect
configForm:keySelect
configForm_SUBMIT1
configKey
elementName
javax.faces.ViewStaterO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAE2cHQAEy9qc3AvQ29uZmlnR3JpZC5qc3A=
startConfigData[]


Please help figure out how to make this error go away, - Dave
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we reproduce exactly this problem? How does the relevant JSF code lines look like? How does the relevant bean property code lines look like? Preferably provide a SSCCE.
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I can't create an equivalent example, but the question here is when does JSF/Servlets/whatever attempt to invoke the set property on something? You'll note that I didn't submit any parameter named "appConfig" but JSF is trying to set it anyway. Why? -
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even a single line how you declared the property in the backing bean and a single line how you used it in JSF would help a lot. Don't be scared or so.

But anyway, it can either be bound as an UIComponent property, or it is actually bound as a value of an UIInput component.

The parameter name doesn't matter. It don't strictly represent the property name, that's dependent on how you coded the complete picture.
[ September 04, 2008: Message edited by: Bauke Scholtz ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!