You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam Zimowski <zi...@gmail.com> on 2006/03/12 03:25:00 UTC
Tapestry Session Bug ?
I attached a standard session listener and observed the most bazaar
behavior. If you include an <img> enclosed by <a href=".."> tapestry
will create a session for each such image. The session is empty as no
attributes are added (I sniffed for those as well). I had 9 images on
the page, and 9 sessions got created. Example:
<a href="http://java.sun.com"><img src="images/java_logo.gif"
border="0" alt="Java"/></a>
This happens when my page template is rendered inside a border
component. Interestingly, if the same img and link combination is
defined by the border template itself (like in a footer or header)
things are just fine.
Has anyone seen that before? This could have significant performance effects.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry Session Bug ?
Posted by Adam Zimowski <zi...@gmail.com>.
My deepest apology to all. This is not a Tapestry issue at all, I'm
sorry it even crossed my mind. Tapestry is perfect! I'm sorry again...
FYI, what happened is I'm building a session persistance module that
works behind Tapestry with Servlet API. In one of my algorithms tied
to request listener - stupid me - I had a bug request.getSession()
instead of request.getSession(false), and so new sessions were
created.
I'm sorry again! All is perfect with our awesome framework.
-adam
On 3/11/06, Adam Zimowski <zi...@gmail.com> wrote:
> I attached a standard session listener and observed the most bazaar
> behavior. If you include an <img> enclosed by <a href=".."> tapestry
> will create a session for each such image. The session is empty as no
> attributes are added (I sniffed for those as well). I had 9 images on
> the page, and 9 sessions got created. Example:
>
> <a href="http://java.sun.com"><img src="images/java_logo.gif"
> border="0" alt="Java"/></a>
>
> This happens when my page template is rendered inside a border
> component. Interestingly, if the same img and link combination is
> defined by the border template itself (like in a footer or header)
> things are just fine.
>
> Has anyone seen that before? This could have significant performance effects.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org