Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 42495 invoked by uid 99); 26 Jun 2005 12:27:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2005 05:27:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [82.223.190.28] (HELO smtp-01.servidoresdns.net) (82.223.190.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2005 05:27:19 -0700 Received: from pedro1 (61.Red-83-54-159.pooles.rima-tde.net [83.54.159.61]) by smtp-01.servidoresdns.net (Postfix) with ESMTP id 663212A5F for ; Sun, 26 Jun 2005 14:27:14 +0200 (CEST) From: "Pedro Nevado" To: "Cactus Users List" Subject: RE: Testing JSF backing Beans Date: Sun, 26 Jun 2005 14:26:47 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal In-Reply-To: <42BE8755.3040503@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org The implicit object Session is a server class, and as such, I think it is not available in your beginXXX method. I have never done it, but perhaps you can serialize your bean, put it in the webRequest as an input stream and associate it afterwards to your session. I hope it helps. -----Mensaje original----- De: Dominik Dary [mailto:dominik.dary@gmail.com] Enviado el: domingo, 26 de junio de 2005 12:46 Para: cactus-user@jakarta.apache.org Asunto: Testing JSF backing Beans Hello List, i want to test a jsf backing bean. it is necessary to put an object to the session, so if i test the backing bean, the backing bean can get this object. how do i add an objekt to the session in the beginXXX() method? Thanks, DOME