or add an rfe to make it public :)

-Igor


On 9/5/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote:
you're right, I browsed the source code of Form and Button and it's just like that. The findSubmittingButton method is protected and final so unfortunely It's of no use in this case. I guess that I'll check another way to tackle this thing, maybe the simplest is to subclass a couple of class MyButton and MyLink and have the subclasses call the superclass event handler first. Thanks a lot again,


Jaime.

Igor Vaynberg <[EMAIL PROTECTED] > wrote:
yes because the event is raised on the form not the button, thats how http works. the form then forwards the onsubmit to the button. seee findSubmittingButton() in the form, too bad its not public otherwise you couldve used it directly.

-Igor


On 9/5/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote:
I've just added the afterCallComponent to my base page and put some println to see what Component and Listener it was receiving, and when I click a submit button the component that gets called it's the form containing it, I think I misunderstood the method's behaviour since I was expecting that every call to a page component would cause this method to be called. In this case I can't determine which button was clicked. Maybe what I'm looking is too cumbersome, and should evaluate using AOP which in this case I was trying to avoid, I haven't taken a look at Eelco proposal of modifying the RequestCycleProcessor, first I'll try to understand it better.


Jaime.

Igor Vaynberg <[EMAIL PROTECTED] > wrote:
but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.

-Igor


On 9/5/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote:
You're right the page method afterCallComponent could be used, just I was looking for something like a superclass hook method that could be called by the framework after some processing occurred (in my case after a submit).
In the case for the generic callback I was thinking of something that could be plugged in, instead of having a pair of methods for each step (onBefore../after...),
I'm not sure if it makes sense, maybe an interface callback approach could also be useful.


Jaime.


Igor Vaynberg < [EMAIL PROTECTED] > wrote:

The page hook could be of useful for a submit button but maybe not for a link.

how do you figure?

Perhaps, I'm not sure, but a generic callback mechanism could be added to the Component class, so pre and post processor could be added for the event listener methods (onSubmit(), onClick(), etc).

we already have them and they have all been listed in this thread. i dont think we need more, in fact i think we already have too many.

-Igor


-------------------------------------------------------------------------

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


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

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


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

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


How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.


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