I have some button in my application:
private class MyForm extends Form<Parametry> {
private static final long serialVersionUID = 1L;
public MyForm(final Parametry parametry) {
add(new AjaxButton("1") { .... }
add(new AjaxButton("2") { .... }
add(new Button("run") {
private static final long serialVersionUID = 1L;
@Override
public void onSubmit() {
logger.error("???????????????????" + parametry.getDatum());
}
});
}
}
In Firefox and Chrome everything works but I have problem with IE8. Ajax button works fine but when I push the button nothing happens. Just the page is new (?x = ?x+1) but logger doesn’t write anything.
How I can fix it ?
UPDATE: I am using version 1.5.7. When I remove ajaxButton everything works.
UPDATE2: I used wireshark to see comunications:
Firefox:
POST /rob-mon/statistika?5-4.IFormSubmitListener-statistikaForm
HTTP/1.1
This should be good.
IE9:
GET
/rob-mon/statistika?4-1.IBehaviorListener.0-statistikaForm&random=0.2323892690702561
HTTP/1.1
Why is it using GET method?
As an alternative, can’t you override
onSubmitfor yourForminstead of for the button? You could even lose the button and keep a simple<input type="submit" />not tied to Wicket, which should work I think.