Return-Path: X-Original-To: apmail-click-dev-archive@www.apache.org Delivered-To: apmail-click-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F63A10B9D for ; Sun, 17 Nov 2013 10:23:24 +0000 (UTC) Received: (qmail 70767 invoked by uid 500); 17 Nov 2013 10:23:23 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 70722 invoked by uid 500); 17 Nov 2013 10:23:22 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 70713 invoked by uid 99); 17 Nov 2013 10:23:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Nov 2013 10:23:21 +0000 Date: Sun, 17 Nov 2013 10:23:21 +0000 (UTC) From: "Adrian A. (JIRA)" To: dev@click.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLK-667) Spring servlet should support stateful pages with transient beans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLK-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian A. closed CLK-667. ------------------------- closing issue fixed a long time ago > Spring servlet should support stateful pages with transient beans > ----------------------------------------------------------------- > > Key: CLK-667 > URL: https://issues.apache.org/jira/browse/CLK-667 > Project: Click > Issue Type: Bug > Components: extras > Affects Versions: 2.1.0 > Reporter: Bob Schellink > Assignee: Bob Schellink > Fix For: 2.2.0 > > > SpringClickServlet currently injects beans only for newly created page instances. This works well for stateless pages but not for stateful pages that have been serialized/deserialized. After a stateful pages has been deserialized, the bean references are null. > ClickServlet provides the #activePage hook which can be used to re-inject beans after deserialization. > Unfortunately this fix will only apply to "Click created pages with bean injection" or option 3 described in the SpringClickServlet. Option 1 and 2, where Spring itself creates the Click pages and inject beans, does not work after deserialization because Spring does not re-initialize the page. Its possible to inject serializable proxies instead of direct references, however that could mean relying in byte code generation. -- This message was sent by Atlassian JIRA (v6.1#6144)