Use the correct cast in WizardButtonBar
---------------------------------------

                 Key: WICKET-4207
                 URL: https://issues.apache.org/jira/browse/WICKET-4207
             Project: Wicket
          Issue Type: Improvement
          Components: wicket-extensions
    Affects Versions: 1.5.2
            Reporter: Matthias Keller


WizardButtonBar.getDefaultButton() uses a cast to Button before returning the 
found component.
However, the interface only expects a IFormSubmittingComponent being returned.
This makes it hard to subclass this button bar to add our own logic using 
SubmitLinks instead of Buttons. Those casts should be changed to 
IFormSubmittingComponent.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to