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
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
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,
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