Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Jaime De La Jara
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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Eelco Hillenius
The problem is that if we keep on adding such hooks, Wicket's API will
be monstrous. Unless it's a real common use case, we shouldn't
directly supporting it. Besides the options that we gave (my favorite
would be to replace the IRequestCycleProcessor, and let it call
methods of an interface if that is implemented by the targetted
component), you can always work with your own hierarchy of components
that finalize the interface method and dispatch it, while decorating
with before/after/whatever methods.

Eelco


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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Igor Vaynberg
but you can do this yourself by implementing callbacks to these pluggable things in your basepage afterCallComponent.-IgorOn 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 easierDownload IBM WebSphere Application Server 
v.1.0.1 based on Apache
 Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Jaime De La Jara
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.-IgorOn 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 easierDownload IBM WebSphere Application Server  v.1.0.1 based on Apache  Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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 easierDownload IBM
 WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Igor Vaynberg
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.
-IgorOn 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.-IgorOn 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 easierDownload IBM WebSphere Application Server  
v.1.0.1 based on Apache  Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
 Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Jaime De La Jara
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. -IgorOn 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.-IgorOn 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 easierDownload IBM WebSphere Application Server   v.1.0.1 based on Apache  Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list  Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user  

Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Igor Vaynberg
or add an rfe to make it public :)-IgorOn 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. 
-IgorOn 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.
-IgorOn 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 easierDownload IBM WebSphere Application Server   
v.1.0.1 based on Apache  Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
  Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
 Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
 

Re: [Wicket-user] image l10n and path and submit tracking

2006-09-05 Thread Jaime De La Jara
giving it a second thought, the afterComponentCall approach seems good, however to make it simpler the findSubmitting Button should be public so one shouldn't have to make a new Form class just to call that method. I noticed that the Feature Request #1476905 asks just that unfortunely is open.Thanks,Jaime.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. -IgorOn 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.-IgorOn 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 easierDownload IBM WebSphere Application Server   v.1.0.1 based on Apache  Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list  Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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 

[Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Jaime De La Jara
I've been investigating the issue of localized images and their location in the application folders and I haven't found a simple way to handle it. I've taken a look at SubmitLink but when I add an image using :add(new Image("cancelButtonImage", new ResourceModel("button.cancel"))where button.cancel is defined in a property file as : CANCEL.gifbut to the image file name is added the page package and I prefer to keep the images in a separate directory. So, How could I deal with localized images and their location? I'm using a set up where the pages are in the same folder as the page classes.For the second problem I need to track everytime a submit occurs or a link is clicked, how could I do that? I checked the javadocs and found onEndRequest but noticed that is deprecated, also I tried onDetach but it's also called when the button is displayed. I thought of adding a superclass that on its onSubmit() would log some information and then sublasses
 would have to call super.onSubmit() but it doesn't look a good solution.Thanks in advance,Jaime. 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Jaime De La Jara
The constructor comes from this : Image(java.lang.Stringid,   IModelmodel) and it works, however it requires the CANCEL.gif file be located in the same directory of the html page class (it prepends the package name to the image file). This is an example of a more general case of where one should put the html files and the images contained in them, so one can have images in different locales?For the submit and link tracking, the Javadocs say that is not recomended to override this method besides it would work for submits only. Here what I'm looking is some way of "intercepting" the click of a button or a link.Thanks a lot,Jaime.Igor Vaynberg
 [EMAIL PROTECTED] wrote: On 9/4/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I've been investigating the issue of localized images and their location in the application folders and I haven't found a simple way to handle it. I've taken a look at SubmitLink but when I add an image using : add(new Image("cancelButtonImage", new ResourceModel("button.cancel"))where button.cancel is defined in a property file as : CANCEL.gifumm...i dont know who added that constructor...but i dont see it used anywhere as far as image resolution is required
 so i would file a bug you can also do new Image("id", new ResourceReference(Scope.class, getLocalizer().getString("button.cancel"))); For the second problem I need to track everytime a submit occurs or a link is clicked, how could I do that? I checked the javadocs and found onEndRequest but noticed that is deprecated, also I tried onDetach but it's also called when the button is displayed. I thought of adding a superclass that on its onSubmit() would log some information and then sublasses  would have to call super.onSubmit() but it doesn't look a good solution.i would subclass form and override form.process() and add a custom callback from there.-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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Igor Vaynberg
For the submit and link tracking, the Javadocs say that is not recomended to override this method besides it would work for submits only. Here what I'm looking is some way of intercepting the click of a button or a link.
it is not recommended, but it is also non-final :)MyForm.process() { boolean sup=super.process(); mySubmitHandler(); return sup;}-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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Eelco Hillenius
  For the submit and link tracking, the Javadocs say that is not recomended
 to override this method besides it would work for submits only. Here what
 I'm looking is some way of intercepting the click of a button or a link.

You should be able to use proper OAP (like AspectJ) with Wicket if you
wish. Or you can define a custom request targets or even a custom
request cycle processor like this (in your application class):

  @Override
  protected IRequestCycleProcessor newRequestCycleProcessor() {
final IRequestCycleProcessor wrapped = super
.newRequestCycleProcessor();
return new IRequestCycleProcessor() {

  public IRequestCodingStrategy getRequestCodingStrategy() {
return wrapped.getRequestCodingStrategy();
  }

  public void processEvents(RequestCycle requestCycle) {
IRequestTarget resolvedTarget = requestCycle
.getRequestTarget();
if (resolvedTarget instanceof IComponentRequestTarget) {
  // etc, etc.
}
wrapped.processEvents(requestCycle);
  }

  public IRequestTarget resolve(RequestCycle requestCycle,
  RequestParameters requestParameters) {
return wrapped.resolve(requestCycle, requestParameters);
  }

  public void respond(RequestCycle requestCycle) {
wrapped.respond(requestCycle);
  }

  public void respond(RuntimeException e,
  RequestCycle requestCycle) {
wrapped.respond(e, requestCycle);
  }
};
  }

Eelco

-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Igor Vaynberg
also Page has before/afterCallComponet()we have enough hooks, maybe even too many, where you dont need aop-IgorOn 9/4/06, Eelco Hillenius
 [EMAIL PROTECTED] wrote:
  For the submit and link tracking, the Javadocs say that is not recomended to override this method besides it would work for submits only. Here what I'm looking is some way of intercepting the click of a button or a link.
You should be able to use proper OAP (like AspectJ) with Wicket if youwish. Or you can define a custom request targets or even a customrequest cycle processor like this (in your application class):
@Overrideprotected IRequestCycleProcessor newRequestCycleProcessor() {final IRequestCycleProcessor wrapped = super.newRequestCycleProcessor();return new IRequestCycleProcessor() {
public IRequestCodingStrategy getRequestCodingStrategy() {return wrapped.getRequestCodingStrategy();}public void processEvents(RequestCycle requestCycle) {IRequestTarget resolvedTarget = requestCycle
.getRequestTarget();if (resolvedTarget instanceof IComponentRequestTarget) {// etc, etc.}wrapped.processEvents(requestCycle);}public IRequestTarget resolve(RequestCycle requestCycle,
RequestParameters requestParameters) {return wrapped.resolve(requestCycle, requestParameters);}public void respond(RequestCycle requestCycle) {wrapped.respond(requestCycle);
}public void respond(RuntimeException e,RequestCycle requestCycle) {wrapped.respond(e, requestCycle);}};}Eelco-
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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Jaime De La Jara
Ok, thanks. I found the onEndRequest method that does something like what I'm looking for but it's been deprecated. The page hook could be of useful for a submit button but maybe not for a link. 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).Best Regards,Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: also Page has before/afterCallComponet()we have enough hooks, maybe even too many, where you dont need aop-IgorOn 9/4/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:   For the submit and link tracking, the Javadocs say that is not recomended to override this method besides it would work for submits only. Here what I'm looking is some way of "intercepting" the click of a button or a link. You should be able to use proper OAP (like AspectJ) with Wicket if youwish. Or you can define a custom request targets or even a customrequest cycle processor like this (in your application class): @Overrideprotected IRequestCycleProcessor newRequestCycleProcessor() {final IRequestCycleProcessor wrapped = super.newRequestCycleProcessor();return new IRequestCycleProcessor() { public IRequestCodingStrategy getRequestCodingStrategy()
 {return wrapped.getRequestCodingStrategy();}public void processEvents(RequestCycle requestCycle) {IRequestTarget resolvedTarget = requestCycle .getRequestTarget();if (resolvedTarget instanceof IComponentRequestTarget) {// etc, etc.}wrapped.processEvents(requestCycle);}public IRequestTarget resolve(RequestCycle requestCycle, RequestParameters
 requestParameters) {return wrapped.resolve(requestCycle, requestParameters);}public void respond(RequestCycle requestCycle) {wrapped.respond(requestCycle); }public void respond(RuntimeException e,RequestCycle requestCycle) {wrapped.respond(e, requestCycle);}};}Eelco- 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
 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] image l10n and path and submit tracking

2006-09-04 Thread Igor Vaynberg
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user