[ https://issues.apache.org/jira/browse/WICKET-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-3562: ------------------------------------ Attachment: WICKET-3562.patch A patch that fixes the problem > onInitialize() is not called before StatelessForm.onSubmit() > ------------------------------------------------------------ > > Key: WICKET-3562 > URL: https://issues.apache.org/jira/browse/WICKET-3562 > Project: Wicket > Issue Type: Bug > Components: wicket-core > Affects Versions: 1.5-RC3 > Reporter: Matt Brictson > Attachments: WICKET-3562-quickstart.tgz, WICKET-3562.patch > > > I have a StatelessForm that has initialization code in onInitialize(). When > my form is submitted, the onSubmit() method is invoked before onInitialize() > is called. This results in a NullPointerException since the form has not yet > had a chance to initialize its instance variables. > I expect that onInitialize() will be called before any listener method is > invoked. > I believe this bug is due to the change in Page.onInitialize() introduced in > r1085649. > Quickstart attached. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira