your example markup does not contain "search" component. it is much better to open a jira issue and attach a quickstart that reproduces the problem.
-igor On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch <[email protected]> wrote: > > I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of the > link is being executed twice. This is causing havok in our app. I've > winnowed it down to just the simplest example but I still see this taking > place. I'm not sure how to proceed. Here's the example code: > ------------------------- > <!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <body> > <form action="#" wicket:id="testForm"> > <input wicket:id="keyword" type="text" /> > # Search > </form> > </body> > </html> > ------------------------- > public class TestAjaxSubmitLink extends WebPage { > private String fieldValue; > > public TestAjaxSubmitLink() { > > Form form = new Form("testForm"); > add(form); > final TextField search = new TextField("keyword", new > PropertyModel(this, > "fieldValue")); > > form.add(search); > form.add(new AjaxSubmitLink("search"){ > protected void onSubmit(AjaxRequestTarget target, Form > form) { > System.out.println("Clicked Submit"); > } > }); > } > } > ------------------------- > > We're using an older version of Wicket, but I tested this in 1.3.5 also and > got the same behavior. I find it hard to believe that we would be the first > to experience this behavior so I assume we're doing something wrong, but I'm > just not sure what it is. Any advice? > > -Matt > -- > View this message in context: > http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21934491.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
