On Wed, 11 May 2011 15:17:42 -0300, Tim Koop <t...@timkoop.com> wrote:
Thanks Josh (and Thiago).
You're welcome!
I added (create = false), and this certainly got rid of the error
message. However, my session object is still either not getting set
correctly (even though I clearly visit the page where it gets set, and I
even write a message to the log saying I was there), or it isn't being
retrieved correctly, because it is null when I want to read it.
That's strange. I've never seen this kind of bug. Are you sure you haven't
any other @SessionState field with type String? If yes and it's set to
null somewhere, the bug is in your code.
My only thought is this: On the page where I set the session object,
that page returns a java.net.URL object, redirecting the browser to
another page. Perhaps this is preventing the session object from being
stored correctly?
I don't think so. Why are you returning an URL object to redirect to a
page in your application? Return the page Class instance or one instance
of the page obtained through a field with @InjectPage.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org