makes sense...

Thanks .

Farhan.


mfs wrote:
> 
> Guys,
> 
> 
> Would sound like a very naive question, actually still in the process of
> understand the different concepts in wicket, Wicket Models in this
> particular case...so my question is 
> 
> Wouldn't the below two statements act exactly the same given i have a
> person object (which i would say both acts as a model as well as an object
> to which the form data is submitted) defined in a page.
> 
> add(new RequiredTextField("person.userName"));
> add(new RequiredTextField("person.userName"),new
> PropertyModel(person,"username"));
> 
> If TRUE, the only reason i would want to have a PropertyModel (or in other
> words any type of Model) against a page-component would be the scenario
> where the object i want to use as model is different from the one i would
> use for data-submission...Correct..?
> 
> Thanks in advance and Regards,
> 
> Farhan.
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Model---A-very-simple-question-tf4668214.html#a13337387
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to