On 6/28/07, Pieter Cogghe <[EMAIL PROTECTED]> wrote: > public class SectionPanel extends Panel { > public SectionPanel(String id, IModel model) throws ApplicationException > { > super(id,model); > // title > this.title = new Label("title", new PropertyModel(model.getObject > (this), "some.property"));
Here is your problem: new PropertyModel(model.getObject(this), "foo"); you bind the PropertyModel on construction time to the model object. When you change the Model of the panel, the PropertyModel is not notified of this change. You can do this: new PropertyModel(model, "foo") instead. Martijn -- Wicket joins the Apache Software Foundation as Apache Wicket Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user