What is the diff开发者_C百科erence between getRawInput, getValue() and getModelValue() etc...?
Method names without what class they're in sort of leave us guessing.
I'll assume these are all in org.apache.wicket.markup.html.form.FormComponent, as they do all exist there.
All are related to data entered by a user on a form, but roughly speaking, getRawInput() is data from the user, getModelValue() is the value in the current model for the form component, and getValue() is either of these depending on whether the user actually supplied data.
These methods are all documented in the javadoc for FormComponent
精彩评论