I am currently evaluating Wicket and I am trying to figure out how everything works.
I have a question regarding the presentation of forms and panels (or other components). Imagine a customizable wicket panel that contains a text box, doing a type check on your type with ajax. This panel is added to the form. How does the panel respond to form submission (say, because javascript / ajax is not available)?
Currently, I know only one solution: calling the panel method inside the Form onSubmit () method. But here, this does not look like a “reusable” approach, because I have to add boilerplate code to every onSubmit () form that contains the panel (and every developer who uses the panel should know this).
So here is my question: is there a way that Panel / Component can "detect" a form in some form? Or is there another solution next to this?
Thanks.
source share