[
https://issues.apache.org/jira/browse/WICKET-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576590#action_12576590
]
Alex Jacoby commented on WICKET-1362:
-------------------------------------
Here's some html to go with the class:
-- TestPage.html --
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/" xml:lang="en" lang="en">
<head>
<title>Testing</title>
</head>
<body>
<h1>Testing</h1>
<div wicket:id="dummy">[Dummy]</div>
<div>
<form wicket:id="form">
Text: <input type="text" wicket:id="text" />
<input type="submit" />
</form>
</div>
</body>
</html>
> AjaxFormSubmitBehavior doesn't work in Safari
> ---------------------------------------------
>
> Key: WICKET-1362
> URL: https://issues.apache.org/jira/browse/WICKET-1362
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-final, 1.3.1
> Environment: Safari 3.0.4 (OS X)
> Reporter: Alex Jacoby
> Priority: Minor
>
> Create a simple form. Add an AjaxFormSubmitBehavior to it. The onSubmit of
> the AjaxFormSubmitBehavior is never called when using Safari, though it works
> in FF.
> Sample code:
> public class TestPage extends WebPage {
> private static final long serialVersionUID = 1L;
> private String _text;
> public String getText() { return _text; }
> public void setText(String text) { _text = text; }
>
> public TestPage() {
> Label dummyLabel = new Label("dummy", new PropertyModel(this,
> "text"));
> dummyLabel.setOutputMarkupId(true);
> add(dummyLabel);
>
> Form form = new Form("form", new CompoundPropertyModel(this));
> add(form);
> form.add(new TextField("text"));
> form.setOutputMarkupId(true);
> form.add(new AjaxFormSubmitBehavior(form, "onsubmit") {
> @Override
> protected void onSubmit(AjaxRequestTarget target) {
> System.out.println("onSubmit!"); // NEVER CALLED!
> }
> @Override
> protected void onError(AjaxRequestTarget target) {
> System.out.println("onError!"); // NEVER CALLED!
> }
> private static final long serialVersionUID = 1L;
> });
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.