Re: [Wicket-user] Ajax form and feedback panel
I'm not seeing a (target) panel updated as a result of an AjaxSubmitButton. The onSubmit() method delagates to an IVisitor that uses getPage().visitChildren() to find the panel in question. Does that sound like the same bug? public EditItemPanel(String id, Model whsItemModel) { super(id, whsItemModel); wItem = (WarehouseItem) this.getModelObject(); form = new EditItemForm("editItemForm"); form.add(new Label("productName", wItem.getSku().getProductName())); guestNameField = new TextField("guestName", new Model("")); form.add(guestNameField); form.add(new AjaxSubmitButton("ajaxSubmit", form) { private static final long serialVersionUID = 8677262489811798153L; public void onSubmit(final AjaxRequestTarget target, Form f) { getPage().visitChildren(CartPanel.class, new Component.IVisitor() { public Object component(Component comp) { target.addComponent(comp); return Component.IVisitor.STOP_TRAVERSAL; } }); ModalWindow.close(target); } }); this.add(form); } - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax form and feedback panel
our website is difficult to update, we are working on that.we dont set hard dead-lines for our releases, its done when its done :) i would say within a week or so. we ahve some bugs we want to fix but are all too busy to get to them just now. -IgorOn 9/20/06, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: Thanks for the answer. How long until 1.2.3? There seems to be no news about that on the web page... Thanks again!Marc On 9/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: there was an ajax bug in 1.2.2 and that is why the example doesnt work. it works fine against svn wicket-1.x branch so you should check out and build it yourself - it will be released as 1.2.3.-Igor On 9/20/06, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: It seems that the exemple about the ajax form is not working correctly. http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : AjaxSubmitButton submitBtn = new AjaxSubmitButton("submit", this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()<1) { _feedback.error("Name field is required."); _feedback.updateFeedback(); target.addComponent (_feedback); return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField. Thanks in advance for your help.Marc-Andre Houle -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax form and feedback panel
Thanks for the answer. How long until 1.2.3? There seems to be no news about that on the web page... Thanks again!MarcOn 9/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: there was an ajax bug in 1.2.2 and that is why the example doesnt work. it works fine against svn wicket-1.x branch so you should check out and build it yourself - it will be released as 1.2.3.-Igor On 9/20/06, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: It seems that the exemple about the ajax form is not working correctly. http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : AjaxSubmitButton submitBtn = new AjaxSubmitButton("submit", this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()<1) { _feedback.error("Name field is required."); _feedback.updateFeedback(); target.addComponent (_feedback); return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField. Thanks in advance for your help.Marc-Andre Houle -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax form and feedback panel
there was an ajax bug in 1.2.2 and that is why the example doesnt work. it works fine against svn wicket-1.x branch so you should check out and build it yourself - it will be released as 1.2.3.-Igor On 9/20/06, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: It seems that the exemple about the ajax form is not working correctly. http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : AjaxSubmitButton submitBtn = new AjaxSubmitButton("submit", this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()<1) { _feedback.error("Name field is required."); _feedback.updateFeedback(); target.addComponent (_feedback); return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField. Thanks in advance for your help.Marc-Andre Houle -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax form and feedback panel
It seems that the exemple about the ajax form is not working correctly.http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage At least, for me, I got absolutly no feedback about what I am entering in the form when I use the Ajax button. I got a similar problem for one of my form and didn't, yet, found a good solution.For now, my code look something like this : AjaxSubmitButton submitBtn = new AjaxSubmitButton("submit", this) { protected void onSubmit (AjaxRequestTarget target, Form form) { if(_name == null || _name.trim ().length ()<1) { _feedback.error("Name field is required."); _feedback.updateFeedback(); target.addComponent (_feedback); return; } //Etc etc for the normal processing } };It work but it is clearly not something as clean as what is avalaible for a static form. Surely I miss something that can make my feedback panel update when I want to submit a RequiredTextField. Thanks in advance for your help.Marc-Andre Houle - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user