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

Reply via email to