Jean-Baptiste Quenot wrote:
+0
The Javadoc says: "A button that submits the form via ajax". And
the callback method is called onSubmit().
So even if you rename the class (which is a very costly operation
in a framework), it won't be sufficient to eradicate the term
"submit".
I understand that you want to streamline the name with Button, but
actually I would vote to rename Button to SubmitButton. I was
recently doing pair programming with a colleague, and we were
stupidly looking for "SubmitButton" and wondered why it was not
showing up. It was the obvious class name we thought...
Yeah, me too. But then some vocal folk around here need to rewrite half
their book. ;-)
I imagine far more people are using Button that AjaxSubmitButton, is the
point - this strikes me as the smallest change possible to at least
restore some semblance of consistency.
Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com