Why not override the hashCode() method of your visit object and
assign either your own hash function based on data with is invariant during
render and/or just use a static counter or something to generate
pseudo-unique hashcodes.
--- Pat
-----Original Message-----
From: Alberto Lepe [mailto:[EMAIL PROTECTED]
Sent: Monday, May 02, 2005 9:40 AM
To: Tapestry users
Subject: Visit Hash
I'm using Tapestry-3.0.2.
Inside my Home's Page's "pageBeginRender" method, I read the host
name, assign a theme, and redirect it to other Page that will be my
real Home Page. I use Visit object to keep my theme information. The
problem is that, at that point, my visit's hash is for example:
"21086917" but, when entering the next page, it becomes: "7715073".
So, the first one is never used. As result, the first time a user
enters the site, a "default" theme is displayed (because it is empty
at: "7715073") instead of the stored at: "21086917".
Any Idea?
Anyway... if you have some time and want to help Tapestry's community,
please post some of your experience at: www.tapestryforums.com. Thank
you
---------------------------------------------------------------------
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]