Hi there,
i overwrite the method cleanupAfterRequest from SimpleEngine.
i think it is not the smartest place, but it works.
I use tapestry 2.2
protected void cleanupAfterRequest(IRequestCycle cycle)
{
IVisit visit = (IVisit) getVisit();
if (visit != null)
{
User loggedin_user = visit.getUser();
if (loggedin_user != null)
{
Integer clickCounter = (Integer) loggedin_user.getPerm("clickCounter");
if (clickCounter == null)
loggedin_user.setPerm("clickCounter", 1);
else
loggedin_user.setPerm("clickCounter", clickCounter.intValue() + 1);
}
}
}
-----Original Message-----
From: Joel Trunick [EMAIL PROTECTED]
Sent: Freitag, 7. Februar 2003
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: [Tapestry-developer] Logging clicks
JT> Where is the appropriate place to log clicks in Tapestry? I'm guessing I can
JT> register a listener somewhere, but its not clear to me how to do this.
JT> Joel
--
with best regards
homburg Softwaretechnik
Sven Homburg
Ohlendorfer Stieg 4
21220 Seevetal
Tel.: +49-4105-669746
Fax.: +49-4105-668947
WWW.: http://www.hsofttec.com
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer