Hi,

When a form is submitted, it checks whether the submitting component is a Wicket component. If it is (your case), it makes sure that it's enabled and visible. I guess this is to prevent users manipulating with the form submission process. In any case, if any of the 2 conditions is not met, the exception is thrown.

This might or might not be caused by a race condition, but it would most likely be caused by disabling buttons (or their parents) in your code.

Bertrand

On 13/08/2012 10:40 AM, eugenebalt wrote:
We have an Ajax button which, when clicked, occasionally produces this
WicketRuntimeException:

  ERROR [WebContainer : 17] (RequestCycle.java:1521) - Submit Button
myPanel:editButton (path=myForm:myPanel:editButton) is not enabled
org.apache.wicket.WicketRuntimeException: Submit Button myPanel:editButton
(path=myForm:myPanel:editButton) is not enabled
         at
org.apache.wicket.markup.html.form.Form$2.component(Form.java:626)
         at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:878)
         at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:893)
         at
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:893)
         at
org.apache.wicket.markup.html.form.Form.findSubmittingButton(Form.java:602)
         at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:875)
         at sun.reflect.GeneratedMethodAccessor2603.invoke(Unknown Source)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:599)
         at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
         at

Is there a race condition of some kind happening here? Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-Submit-Button-is-not-enabled-tp4651180.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



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to