So are we saying that onBeginRequest(), onEndRequest() does not belong in Component but rather in some subclass like Page?


I don't necessarily see the harm in leaving the current design (where it is called regardless of the type of the underlying Component). On the other hand, if you want to narrow the usage so it only applies to Page, I think I am ok with that.

Gili

Eelco Hillenius wrote:
But the thing is, that it is also done for images etc. And if you really want to trap all, just use a servlet filter (cause that's what they're for anyway).

Eelco


Gili wrote:


I'm -1 on this. Regardless of whether the page is static or dynamic, a request begins and ends. Who knows, developers might make use of this for static pages in the future. A page-hit counter comes to mind <shrug>


Gili

Eelco Hillenius wrote:

Currently, these onBeginRequest/onEndRequest are also called when pages are static resources etc. I think this is wrong, as the typical usage of these overridable methods (which are empty by default) is to open/close Hibernate sessions etc.

Agreed to fix this?

Eelco


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop





------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to