the page reloading itself is expected behaviour as the form gets submitted,
the onSubmit() method should however be called. if you provided us some more
code (and the wicket version you're using)?
regards,
Michael
Edwin Ansicodd wrote:
>
> Have a page that extends another page that in turn extends
> org.apache.wicket.markup.html.WebPage. Have added a form that extends
> org.apache.wicket.markup.html.form.Form to this page. In this form, I
> have a org.apache.wicket.markup.html.form.Button
>
> Button searchButton = new Button("searchButton"){
> @Override
> public void onSubmit() {
> super.onSubmit();
> System.out.println("in searchButton");
> SearchPage.this.updateList();
> }
>
> in the html for the button:
>
> <input type="submit" wicket:id="searchButton" value=submit/>
>
> but when I click the button, instead of calling the onSubmit(), the page
> itself is reloaded.
>
> Would anyone have any ideas what might be wrong?
>
>
>
-----
Michael Sparer
http://techblog.molindo.at
--
View this message in context:
http://www.nabble.com/Button-onSubmit-not-called%2C-instead-page-reloads-tp22350921p22351127.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]