Hi!

I have a modal window. In this window there is a "form" and "recount"
button.
When user enters incorrect data and hit "recount" I want to refresh the form
and feedback panel inside it.

I added ValidatingBehavior to the recount button like this:

                AjaxFormValidatingBehavior behavior = new 
AjaxFormValidatingBehavior(form,
"onclick") {
                        protected void onError(AjaxRequestTarget target) {
                                target.addComponent(form);
                        }
                };
                recount.add(behavior);

It works in IE 7 but in FF 2.0.0.6 I've got an error:

INFO: Initiating Ajax POST request on
?wicket:interface=modal-dialog-pagemap:7:shortageForm:recount::IBehaviorListener:2:&wicket:ignoreIfNotActive=true&random=0.22862486812671723
INFO: Invoking pre-call handler(s)...
ERROR: Exception evaluating AJAX status: [Exception... "Component returned
failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
[nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" 
location: "JS frame ::
http://localhost:8080/manage/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
:: anonymous :: line 755"  data: no]
ERROR: Received Ajax response with code: unavailable
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...

I use Wicket 1.3-beta3.

Thanks,
Artur


-- 
View this message in context: 
http://www.nabble.com/NS_ERROR_NOT_AVAILABLE-in-FF-2.0.0.6-tf4408389.html#a12576739
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to