The Nabble posting process correctly escaped all of the HTML tags except the which it rendered as HTML. I only just now figured out I needed to use a "raw" tag. The raw HTML is below.
As expected though, this same code works fine in a quickstart. I never suspected that it was a bug, which is why I didn't post a JIRA issue. I knew something this simple wouldn't have been missed. It's clearly a problem with our configuration, but I don't know where to start looking. Using this simple test page, the final rendered page contains no extra javascript beyond the wicket stuff to support the button submission which I know works. This test page isn't going through our security framework because I extended WebPage instead of our application's SecureWebPage (using wicket-security). That leaves servlet filters (Spring's OpenSessionInView and the normal WicketFilter), our session implementation or the WebApplication itself. Does anyone have any suggestions about where I might plop down a breakpoint in an attempt to debug this issue? -Matt <!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> igor.vaynberg wrote: > > 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 <matt...@welchkin.net> 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: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21944134.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org