ComponentPropertyModel inside some border

2009-02-15 Thread Anton Veretennikov
Hello, Wicket users, Please, help me to find the difference between theese two ComponentPropertyModel's (inside some Panel): add(new Label("currencyPayed", new ComponentPropertyModel("currentPriceSumCurrency"))); and this (inside some border): border.add(new L

Re: ComponentPropertyModel

2008-06-11 Thread Matthijs Wensveen
Hi, CompoundPropertyModel does somewhat of the inverse of what I'm trying to accomplish. CompoundPropertyModel binds some model to an expression that is the id of a component, while ComponentPropertyModel binds the model of the component that it is used in to some expression. In the

Re: ComponentPropertyModel

2008-06-10 Thread Maurice Marrink
In all my years i have never used the ComponentPropertyModel. I always use the CompoundPropertyModel. public class MyPanel extends Panel { public MyPanel(String id, IModel model) { super(id, new CompoundPropertyModel(model)); add(new Label("name")); } } Maurice On Tue, Jun 10,

ComponentPropertyModel

2008-06-10 Thread Matthijs Wensveen
Hi, I'm trying to use ComponentPropertyModel as a replacement of PropertyModel in some cases. The javadoc leads me to beleave I can do: public class MyPanel extends Panel { public MyPanel(String id, IModel model) { super(id, model); //add(new Label("label", new Prop