Re: [Wicket-user] getting object from model using propertyExpression

2007-04-20 Thread Jan Kriesten
hi eelco, no, you misunderstood me - i need to access the model /before/ my components are created (cause the number of components to be created depends on the model). i found the helper class myself: Object property = PropertyResolver.getValue( binding, model.getObject() ); but thanks for yo

Re: [Wicket-user] getting object from model using propertyExpression

2007-04-20 Thread Eelco Hillenius
Not sure whether I understand your question. But right after you added your component, you can use getModelObject on it to get the value. Also, keep in mind that CompoundPropertyModel is for convenience, but you can e.g. use PropertyModel directly for more control. In that case, you can get the mod

[Wicket-user] getting object from model using propertyExpression

2007-04-20 Thread Jan Kriesten
hi, is there a way to use property expressions to get an object from a complex model? my problem is, that i'm building the form dynamically based on a structure _and_ the model - the model contains the relevant data, the structure defines the form elements. so, building the form depends first