Please make FormComponent.convertInput() public.
Whole conversation can be found here:
"My intent is following:
Some form components should be shown or hiden dynamically according to
entered information and(!!!) without touching underling models. Whole form
content should be refreshed.
To achive that I use following approach:
1) AjaxFormSubmitBehavior with event="change" to recieve form on server side
2) With the aid of FormComponent.hasRawInput() I can understand where to
get actual value for the component: either by
convertInput()->getConvertedInput() or directly from a model.
3) [HACK] if value should be taken from form component with the aid of
reflection I'm invoking convertInput()
Method convertInputMethod =
I can't use "validate" because there are some validators on a components
and they should be fired after actual data submition.
Currently, whole that stack is working perfectly as expected. But that
little hack is confusing me a bit"
"If I understand correctly you submit form disabling default processing.
In this way Wicket retains fields value without validating them but also
without converting input. But you also need to convert the input value
of the desired field. Right? I guess you have to do it because raw input
is not enough for you."
That description is absolutly correct. Please help by supporting this usecase in wicket!