Re: Cannot reproduce a WicketRuntimeException.
Hi, I know it's off topic but I didn't want to create a separate topic for a simple question. I've got an error on production server and I cannot reproduce on my development machine. The error says : woUploadFilesContainer:calculateButton (path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible org.apache.wicket.WicketRuntimeException: Submit Button stepTwoUploadFilesContainer:calculateButton (path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible Which can be the cause? The submit button is never hidden, but the container that holds it. Here is the button code: calculateButton = new CalculateButton(calculateButton, /wos/stepTwoUploadFiles/calculate); calculateButton.setDefaultFormProcessing(false); add(calculateButton); I suppose that this is the code where it enters from Form class from wicket sources : if (!component.isVisibleInHierarchy()) { throw new WicketRuntimeException(Submit Button + submittingComponent.getInputName() + (path= + component.getPageRelativePath() + ) is not visible); } Has anyone any idea? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4214363.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
Re: Cannot reproduce a WicketRuntimeException.
Hi, The problem is that you have a stale link. Initially you rendered this repeater and then you updated it in the server side (the items inside have new ids) and you forgot to update it in at the client side. Then the user clicks such stale link and the server side cannot find an item with id == 0. On Mon, Dec 12, 2011 at 11:37 AM, cosmindumy cosmind...@yahoo.com wrote: On the production server I received an exception. The problem is that I cannot reproduce and I coudn't find the cause. Probably it must be something with browser setting, but I'm not sure. Has anyone an ideea which can be the cause? It says that the component is not found, but the component is there. This is some part of stack trace: org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: component inputForm:editQuoteContainer:rowPanel:repeater:1:addCombination not found on page com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.EditQuoteDetails[id = 1], listener interface = [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) .. .. ..Caused by: org.apache.wicket.WicketRuntimeException: component inputForm:editQuoteContainer:rowPanel:repeater:1:addCombination not found on page com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.EditQuoteDetails[id = 1], listener interface = [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4185488.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Cannot reproduce a WicketRuntimeException.
I'm afraid I didn't understand what exactly do you mean. How can I reproduce this in the development machine? This doesn't happened again. What should I update on client side? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4185720.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
Re: Cannot reproduce a WicketRuntimeException.
Thanks for your idea. I manages to reproduce the error. It happens extremely rare. Here is the situation. I have a AjaxSubmitLink that make an action. To prevent multiple submit, I use a AjaxCallDecorate that calls a javascript that shows a loading image over the whole form, so that the form is inaccessible. After the submit is finished, on decorateOnSucces or decorateOnFailure the image is again hidden and the form is again available. I think that the problem is when the user click on the link right after the form is available again but the ajaxsubmitlink is not yet updated. How can I tell to javascript to wait just a little more before it hides again the loading image? I hope is clear what I said. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4186262.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
Re: Cannot reproduce a WicketRuntimeException.
I put a setTimeout(..). I hope this will solve the problem. I didn't get this error after puting setTimeout(). Thanks for your response. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4186446.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
Re: Cannot reproduce a WicketRuntimeException.
Actually it didn't work. I put setTimeout(..). to delay the hiding of loading image but I still got the exception sometimes. Do you have any other ideea? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-reproduce-a-WicketRuntimeException-tp4185488p4186479.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