Johan Compagner wrote:
Hmm can you give us a test case for this?
Because if you click on the submitlink that call:
wicket.markup.html.form.Form.dispatchEvent(Form.java:1205)

shouldn't happen at all. Because there shouldn't be something in this url:

    String url = "">             if (!Strings.isEmpty(url))
            {
                dispatchEvent(getPage(), url);
            }

because the hidden field id is replaced with the button name.

So i dont know why you get an url or a string there.
The problem does not occur while clicking on the submit link itself. It happens while pressing the regular submit button of the form. Basically what happens is:
  • user clicks on a submit link to add an item, as a result a new item appears in a list on the form with a new submit link next to it
  • user presses browser back button
  • user presses submit of the form.
Cheers
  Erik

johan








On 9/11/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:
Hi,


I am having a problem with submit link. I used to have a form with a regular link on it but then the form data would not get submitted. Now I have replaced this by a SubmitLink and in my onSubmit() I do:

        validate();
        updateFormComponentModels();
        // Remove messages cause by validation.
        getPage().getFeedbackMessages().clear();


This is done to make sure all field values are available and that validation is suppressed. The problem (see below) also occurs when I don't execute the above statements in my onSubmit().

Now back button support is broken. The problem occurs when I click on a link to edit an item to a collection. The result of clicking a link for adding an item is that a new item is added to a list displayed on the screen with a SubmitLink next to it for deleting it.

The problem occurs when I do the following:
  • click on a link to add an item to a set, the item is now added to the list on the screen.
  • press the back button, the item is now not present in the list (as it was before adding it).
  • submit the form
The error I get is:
WicketMessage: Attempt to access unknown request listener interface null


Root cause:


wicket.WicketRuntimeException: Attempt to access unknown request listener interface null
     at wicket.markup.html.form.Form.dispatchEvent(Form.java:1205)
     at wicket.markup.html.form.Form.onFormSubmitted(Form.java:293)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
     at wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
     at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
     at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
     at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
     at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
     at wicket.RequestCycle.step(RequestCycle.java:966)
     at wicket.RequestCycle.steps(RequestCycle.java:1040)
     at wicket.RequestCycle.request(RequestCycle.java:454)
     at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
     at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:259)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     at java.lang.Thread.run(Thread.java:595)

This could be a problem with versioning of the submit link. It occurs with wicket 1.2.2. Any ideas anyone?

Cheers
  Erik


-------------------------------------------------------------------------
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




------------------------------------------------------------------------- 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



-------------------------------------------------------------------------
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

Reply via email to