开发者

In Wicket, what is the difference between the different get input methods?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜