Re: [Wicket-user] BoundCompoundPropertyModel not setting values

2006-05-04 Thread Igor Vaynberg
no thats the compound one.basically IModel has a getObject(Component c) and setObject(Component c, Object value)notice the Component argument.the compoundpropertymodel does thisgetObject(Component c) {    return object's property with name c.id}and setter does the reversethe bound version lets you

Re: [Wicket-user] BoundCompoundPropertyModel not setting values

2006-05-04 Thread Eelco Hillenius
The idea is that you set a Compound/BoundCompoundPropertyModel on the parent (or further up the hierarchy) of these components. setModel(new (Bound)CompoundPropertyModel(userBean)); add(new TextField("name")); Bound and the normal CompoundPropertyModel do not differ much from each other, except

Re: [Wicket-user] BoundCompoundPropertyModel not setting values

2006-05-04 Thread Bruno Borges
Ops... sorry Igor.But one question: the Javadoc says that the BoundCompoundPropertyModel uses the name (I understand here as the id) of a component as the property name it should use to set value on model. So, I understand as: add(new TextField("name", new BoundCompountPropertyModel(userBean)))

Re: [Wicket-user] BoundCompoundPropertyModel not setting values

2006-05-04 Thread Igor Vaynberg
what you want is a CompoundPropertyModel not the bound variant. there is a searchbox on our wiki :)http://www.wicket-wiki.org.uk/wiki/index.php/Models -IgorOn 5/4/06, Bruno Borges <[EMAIL PROTECTED]> wrote: Isn't this code correct?class UserForm extends Form { User user = new User(); // POJO Bean