Please have a look at the JavaDoc of org.apache.wicket.model.CompoundPropertyModel. Other interesting reads:
https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels http://www.mkyong.com/wicket/wicket-compoundpropertymodel-example/ Cheers, -Tom On 03.05.2012 at 05:07 kshitiz wrote: > Thank you very much for the replies....I got the problem and solved it using > the code: > > *final RequiredTextField<String> postTextField = new > RequiredTextField<String>( > "postTextField", > Model.of(postDomain.getPost())); > * > > But please tell me one thing...the first parameter in new > RequiredTextField<String>() function is used to map textfield tag present in > html page with its java definition. Why wicket is using that parameter to > map it to the property of compound model (PostDomain in this case)??? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Unusual-problem-is-coming-in-rendering-component-tp4604163p4605012.html > Sent from the Users forum 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org