[ 
https://issues.apache.org/jira/browse/WICKET-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matej Knopp resolved WICKET-1362.
---------------------------------

       Resolution: Invalid
    Fix Version/s: 1.3.2

This is not how AjaxFormSubmitBehavior is supposed to be used. You need to add 
it to a component that submits form, not to the form itself.

> 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
>            Assignee: Matej Knopp
>            Priority: Minor
>             Fix For: 1.3.2
>
>
> 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.

Reply via email to