I am testing this on a stripped down version of my app. The java code is:
class SelectExpiriesForm extends Form {
public SelectExpiriesForm(String id, IModel model) {
super(id, model);
add(new Button("submit-button", new Model("Submit")));
}
public void onSubmit() {
System.out.println("in onSubmit...");
}
}
and the html is:
<form wicket:id="selectExpiriesForm">
<input wicket:id="submit-button" type="submit" class="dialogButton"
value="[[ button text ]]"/>
</form>
I also tested this in a separate quickstart and it works fine. I have no
specific error setup (I disabled . So, something else in my app is must
be causing this strange behavior.
Pierre-Yves
Nino Wael a écrit :
> Sounds strange, could you poste the source?
>
> AFAIK, two things should happen either you would get what you wanted or you
> should get an error. Although this migth be changed if you had special error
> handling that redirects the user to the home page.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont
> Sent: Mon 09-10-2006 17:18
> To: [email protected]
> Cc:
> Subject: [Wicket-user] onSubmit not called in a form
>
> Hi,
>
> I have a form and on a page and I believe a click on the submit button
> should cause a call to the onSubmit method. (No onSubmit in the button,
> all default settings). By default, I suppose after the call to onSubmit
> Wicket should redisplay the same page. Instead of this, onSubmit is not
> called and Wicket displays the home page. I am sure I am doing something
> wrong, but I can't find what. Any hint about where to look for?
>
> Pierre-Yves
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user