it uses reflection to invoke the proper methods. the contract of the
listener interface is that they contain a single void method that
takes no arguments, this method is then invoked on the component via
reflection. so since form implements iformsubmitlsitener its
onformsubmitted() method will be invoked.

-igor

On Tue, Nov 4, 2008 at 4:35 PM, danelav <[EMAIL PROTECTED]> wrote:
>
> I'm trying to understand how Wicket's RequestCycle works in order to resolve
> the problem I explained in my previous post, "Losing session information".
> I'm using Eclipse's debugger to step through the process, but I've hit a
> wall.
>
> I'm using Wicket 1.3.4, and I get stuck at RequestListenerInterface, line
> 183. At this point, Wicket calls "method.invoke(..)". The object "method"
> has "IFormSubmitListener" as its class and "onFormSubmitted" as its method
> name.
>
> This is apparently an important line, since it's the place where the
> submitted form values get transferred from the request to the session.
> However, IFormSubmitListener.onFormSubmitted doesn't do anything.
> IFormSubmitListener is an interface. Can anyone explain to me how Wicket
> uses an interface with an empty method to transfer values from the request
> to the session?
>
> My stack looks like this, if that helps:
>
> RequestListenerInterface.invoke(Page, Component) line: 183
> ListenerInterfaceRequestTarget.processEvents(RequestCycle) line: 73
> WebRequestCycleProcessor(AbstractRequestCycleProcessor).processEvents(RequestCycle)
> line: 91
> FoodHandlerWebRequestCycle(RequestCycle).processEventsAndRespond() line:
> 1171
> FoodHandlerWebRequestCycle(RequestCycle).step() line: 1248
> FoodHandlerWebRequestCycle(RequestCycle).steps() line: 1349
> FoodHandlerWebRequestCycle(RequestCycle).request() line: 493
> WicketFilter.doGet(HttpServletRequest, HttpServletResponse) line: 387
> WicketServlet.doPost(HttpServletRequest, HttpServletResponse) line: 145
> ...
> --
> View this message in context: 
> http://www.nabble.com/Slogging-through-Wicket%27s-guts-tp20334397p20334397.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to