James

Could you please clarify this for me, I noticed is that with PropertyModel
usage in the above context.

I have to define one(PropertyModel instance) for each of the form component
explicitly,  like so

1. Model<StudyModel> studyModel = new Model<StudyModel>(new
StudyModel());/Top level Model

In the Form:
I associate the studyModel above in the constructor and 

Model<StudyModel> pModel = (Model)getModel();

2. firstName = new TextField("studyName",new
PropertyModel<Study>(pModel.getObject().getStudyName(),"studyName")); 

// I am manually telling it to navigate to a property ..thought it will be
nice if its automatic based on the expression

I am unable to create a single instance like 

PropertyModel<Study> propertyModel = new PropertyModel<Study>(studyModel,
"study"); 
And then use propertyModel instance for each component. 

Am I missing something here? 

Thanks again
Niv




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-does-not-push-value-into-Model-tp2323809p2326600.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to