Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77485B156 for ; Wed, 4 Jan 2012 09:45:44 +0000 (UTC) Received: (qmail 47751 invoked by uid 500); 4 Jan 2012 09:45:43 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 46990 invoked by uid 500); 4 Jan 2012 09:45:28 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 46982 invoked by uid 99); 4 Jan 2012 09:45:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 09:45:26 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rahman.usta.88@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-tul01m020-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 09:45:20 +0000 Received: by obcwp18 with SMTP id wp18so16861062obc.32 for ; Wed, 04 Jan 2012 01:44:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=7ct0o86tsZzPzIe9Rehp25+UxIOZ+hBaq7XCRavKSM8=; b=NBafoAPhHeyW8i8WkbqLyksGdy/+MARH8OtFVHfeJ5UnEGt1oucQUKA91LnL3Q4BWG j/ZjaX1PV6oI0eT6w2eK5gaAFR01/7DMkQuYyUpxAA/DqtawbRadUBbBK+Y3UkDynNy1 yBK+1l9JpOfE9kz0gCu6FJHw/3KNS8qQds3l4= MIME-Version: 1.0 Received: by 10.182.76.134 with SMTP id k6mr39222894obw.10.1325670298840; Wed, 04 Jan 2012 01:44:58 -0800 (PST) Received: by 10.182.50.134 with HTTP; Wed, 4 Jan 2012 01:44:58 -0800 (PST) Date: Wed, 4 Jan 2012 11:44:58 +0200 Message-ID: Subject: It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems. From: Rahman USTA To: users@wicket.apache.org Content-Type: multipart/alternative; boundary=f46d044787a5406e2804b5b0ab51 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044787a5406e2804b5b0ab51 Content-Type: text/plain; charset=ISO-8859-1 Hi, i have a MySession. form.add(new TextField("name",new PropertyModel(((MySession)getSession())," user.name"))); I have a User user; in MySession, then initialized in constructor. my Goal is to save name and surname user's own session. i did it above, but warning ide me so that ; *WARN - AbstractPropertyModel - It is not a good idea to reference the Session instance in models directly as it may lead to serialization problems. If you need to access a property of the session via the model use the page instance as the model object and 'session.attribute' as the path.* How can i handle this normally. -- Rahman USTA Computer & Control Education Technologist 0-(531)-922-28-05 www.kodcu.com --f46d044787a5406e2804b5b0ab51--