First off, the ExpressionEvaluator can be serialized in theory; there's logic inside HiveMind to serialize a token representing the service, and resolve the token to an equivalent service when the token is deserialized.
Still, there's reason to expect that to not work in many cases, it seems like it will work only in certain web containers, not others. In terms of storing directly into the HttpSession; you can't access the IRequestCycle, but you can have the WebRequest injected, and obtain the WebSession from the WebRequest. Note that WebRequest/WebSession are wrappers around HttpServletRequest/HttpSession, or their portlet equivalents. infrastructure:request is the WebRequest for the current thread. The magic of HiveMind is that the proxy that gets injected will, internally, delegate to a per-thread instance. On 8/14/05, Mind Bridge <[EMAIL PROTECTED]> wrote: > Hi, > > The contrib:Table columns need to be serialized for several reasons > (e.g. they are a part of the table model and may reside in the session, > or they need to be serialized into hidden fields to preserve the form > structure, etc). > > On the other hand the ExpressionTableColumn has an > OgnlTableColumnEvaluator as a member, which contains an > ExpressionEvaluator -- a non-serializable entity provided by HiveMind > (it used to be a singleton before). > As a result, ExpressionTableColumn is not serialized and deserialized > fully. > > If the places that used the evaluator had access to the IRequestCycle, > the answer would be obvious, but unfortunately they do not. > Could one suggest a good solution of that problem? > > Thank you in advance... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
