Re: Model problem with my own component

2012-01-11 Thread Wayne W
thanks Sven On Wed, Jan 11, 2012 at 6:46 PM, Sven Meier s...@meiers.net wrote: Hi, add(new ProductImage(image, getDefaultModel()); this line is causing the null product. I thought when setting the default model all the children are visited and model updated.? No, not at all. Either

Model problem with my own component

2012-01-10 Thread Wayne W
Hello, I cannot get my component model to update correctly when being set. I have list of products and when I click on the name via ajax I update a Product panel to display the info. In that panel I have my component that displays the image of the product. sudo code: ProductPanel(id,

Re: Model problem with my own component

2012-01-10 Thread Sven Meier
Hi, add(new ProductImage(image, getDefaultModel()); this line is causing the null product. I thought when setting the default model all the children are visited and model updated.? No, not at all. Either you have to do that by yourself or you have to give ProductImage a more intelligent