Sorry I have finished work for today, I will post the output tomorrow. The generated HTML does not contain any <script> tags, so no JavaScript is loaded. Wicket is in DEV mode. I created another Wicket application and also used a StatelessForm, FormComponentPanel, two DropDownChoices and an AjaxFormComponentUpdatingBehavior. On this test-page everything works as expected. The only difference is that both the page and the panel are in the same project.
I get no exceptions in the logs and the browsers console shows nothing. Am 05.08.2014 14:07 schrieb "Martin Grigorov-4 [via Apache Wicket]" < ml-node+s1842946n4666878...@n4.nabble.com>: > Hi, > > By using Ajax behavior/component you make the page stateful. > I guess you want it to be stateless (because you use StatelessForm). > > Aren't there any errors in the server logs or in the browser's JS console > ? > Wicket Ajax Debug console appears only in DEV mode and only when there is > an Ajax behavior in the page. > > What do you mean by "there are no script elements in the produced html" ? > What is the produced markup for selSupplier component ? > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > > On Tue, Aug 5, 2014 at 1:58 PM, brushmate <[hidden email] > <http://user/SendEmail.jtp?type=node&node=4666878&i=0>> wrote: > > > I am building a webapp based on Wicket. I have a WebPage that contains a > > StatelessForm which contains a FormComponentPanel. The > FormComponentPanel > > is > > provided by a different library. This works fine without any AJAX-stuff. > > But > > now I want to react to "onchange"-events of a DropDownChoice and thus I > > added a AjaxFormComponentUpdatingBehavior to my DropDownChoice. This is > a > > excerpt of my FormComponentPanel: > > public class ParameterForm extends FormComponentPanel<Map<String, > > String>> { private final DropDownChoice selSupplier; private > > final > > DropDownChoice selProjects; public ParameterForm(final > String > > id, final > > List suppliers, final List projects) { super(id); > > selSupplier = new > > DropDownChoice<>("selSupplier", Model.of(""), new > ListModel<>(suppliers)); > > selProjects = new DropDownChoice<>("selProjects", Model.of(""), new > > ListModel<>(projects)); setModel(new MapModel<>()); > > selSupplier.setOutputMarkupid(true); } @Override > protected > > void > > onInitialize() { super.onInitialize(); > > selSupplier.add(new > > AjaxFormComponentUpdatingBehavior("onchange") { private > > static final long > > serialVersionUID = 7643295763275649586L; > @Override > > protected void > > onUpdate(final AjaxRequestTarget target) { > > System.out.println(selSupplier.getConvertedInput()); > } > > }); > > add(selSupplier); add(selProjects); }} > > Now I would expect to get a message on the command-line when I select > > another item, but nothing happens. Wicket does not put any script-tags > into > > the generated HTML and I do not see the "WICKET AJAX DEBUG"-button. Can > > someone tell me what I am doing wrong? > > > > -- > > View this message in context: > > > http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-is-not-working-tp4666877.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > <http://user/SendEmail.jtp?type=node&node=4666878&i=1> > > For additional commands, e-mail: [hidden email] > <http://user/SendEmail.jtp?type=node&node=4666878&i=2> > > > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-is-not-working-tp4666877p4666878.html > To unsubscribe from AjaxFormComponentUpdatingBehavior is not working, click > here > <http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4666877&code=YnJ1c2htYXRlQGdtYWlsLmNvbXw0NjY2ODc3fC05MTIzMjM2MzY=> > . > NAML > <http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-is-not-working-tp4666877p4666881.html Sent from the Users forum 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