Re: DataView & Model
Quoted from Wicket in Action: When a component needs its model value but doesn't have a model assigned, it traverses its component hierarchy for a parent with a CompoundPropertyModel. The component then uses its component identifier as the property expression on the CompoundPropertyModel's value for retrieving the property's value to display. Linda. Douglas Ferguson wrote: Yeah.. but, why would get/set be called on a dataview? The strange thing is that it was barfing like this before. Douglas -Original Message- From: Linda van der Pal [mailto:lvd...@heritageagenturen.nl] Sent: Wednesday, March 11, 2009 10:24 AM To: users@wicket.apache.org Subject: Re: DataView & Model Did you use a CompoundPropertyModel on the page? If so, that would explain why it was looking for a setter with the name of the DataView. Linda. Douglas Ferguson wrote: I just started using some code that was retired for awhile, so I'm not sure what all changed around it and the behavior I'm seeing is really strange. I have a DataView on my page and wicket is complain that my model object doesn't have a getter for the id of the DataView. I.E. DataView is called "alternateWebsites" and wicket is complaining that the model object doesn't have getAleternateWebsites. I'm confused as to what change would make a DataView itself call set/get Model??? I'm also confused how the compound property model is even getting attached to the DataView. I was able to fix this with a setModel(new Model()) on the dataView. But that seems awefully hackish. Douglas No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 19:51:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 19:51:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataView & Model
I had a similar problem but then i found I was not adding a model to the components i was adding in my listview.populateItem() may be it helps.. taha On Thu, Mar 12, 2009 at 2:20 AM, Douglas Ferguson wrote: > Yeah.. but, why would get/set be called on a dataview? > The strange thing is that it was barfing like this before. > > Douglas > > -Original Message- > From: Linda van der Pal [mailto:lvd...@heritageagenturen.nl] > Sent: Wednesday, March 11, 2009 10:24 AM > To: users@wicket.apache.org > Subject: Re: DataView & Model > > Did you use a CompoundPropertyModel on the page? If so, that would > explain why it was looking for a setter with the name of the DataView. > > Linda. > > Douglas Ferguson wrote: >> I just started using some code that was retired for awhile, so I'm not sure >> what all changed around it and the behavior I'm seeing is really strange. >> >> I have a DataView on my page and wicket is complain that my model object >> doesn't have a getter for the id of the DataView. >> I.E. DataView is called "alternateWebsites" and wicket is complaining that >> the model object doesn't have getAleternateWebsites. >> >> I'm confused as to what change would make a DataView itself call set/get >> Model??? >> I'm also confused how the compound property model is even getting attached >> to the DataView. >> >> I was able to fix this with a setModel(new Model()) on the dataView. But >> that seems awefully hackish. >> >> Douglas >> >> >> >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 >> 19:51:00 >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: DataView & Model
Yeah.. but, why would get/set be called on a dataview? The strange thing is that it was barfing like this before. Douglas -Original Message- From: Linda van der Pal [mailto:lvd...@heritageagenturen.nl] Sent: Wednesday, March 11, 2009 10:24 AM To: users@wicket.apache.org Subject: Re: DataView & Model Did you use a CompoundPropertyModel on the page? If so, that would explain why it was looking for a setter with the name of the DataView. Linda. Douglas Ferguson wrote: > I just started using some code that was retired for awhile, so I'm not sure > what all changed around it and the behavior I'm seeing is really strange. > > I have a DataView on my page and wicket is complain that my model object > doesn't have a getter for the id of the DataView. > I.E. DataView is called "alternateWebsites" and wicket is complaining that > the model object doesn't have getAleternateWebsites. > > I'm confused as to what change would make a DataView itself call set/get > Model??? > I'm also confused how the compound property model is even getting attached to > the DataView. > > I was able to fix this with a setModel(new Model()) on the dataView. But that > seems awefully hackish. > > Douglas > > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 > 19:51:00 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataView & Model
Did you use a CompoundPropertyModel on the page? If so, that would explain why it was looking for a setter with the name of the DataView. Linda. Douglas Ferguson wrote: I just started using some code that was retired for awhile, so I'm not sure what all changed around it and the behavior I'm seeing is really strange. I have a DataView on my page and wicket is complain that my model object doesn't have a getter for the id of the DataView. I.E. DataView is called "alternateWebsites" and wicket is complaining that the model object doesn't have getAleternateWebsites. I'm confused as to what change would make a DataView itself call set/get Model??? I'm also confused how the compound property model is even getting attached to the DataView. I was able to fix this with a setModel(new Model()) on the dataView. But that seems awefully hackish. Douglas No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 19:51:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DataView & Model
I just started using some code that was retired for awhile, so I'm not sure what all changed around it and the behavior I'm seeing is really strange. I have a DataView on my page and wicket is complain that my model object doesn't have a getter for the id of the DataView. I.E. DataView is called "alternateWebsites" and wicket is complaining that the model object doesn't have getAleternateWebsites. I'm confused as to what change would make a DataView itself call set/get Model??? I'm also confused how the compound property model is even getting attached to the DataView. I was able to fix this with a setModel(new Model()) on the dataView. But that seems awefully hackish. Douglas