Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 13005 invoked from network); 11 Jul 2009 17:45:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jul 2009 17:45:29 -0000 Received: (qmail 23092 invoked by uid 500); 11 Jul 2009 17:45:38 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 23026 invoked by uid 500); 11 Jul 2009 17:45:38 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 23018 invoked by uid 99); 11 Jul 2009 17:45:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 17:45:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lu4242@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-vw0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2009 17:45:28 +0000 Received: by vwj7 with SMTP id 7so1166890vwj.32 for ; Sat, 11 Jul 2009 10:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=AKBjt1CFSdp1kKz1pSTuJ8SJDo0YCzszWIPw1XIj8ms=; b=ij2g4V7Uog9YMxyYUZRcJI15BScyzrVXuFMv4PwzpbwXXUAOrPy9b5PObgjbn5KP8B /1OTRyoT/tAxwHv4Cz39m2I4jvL2Enk3k3W44gGohXwnvU3dWxZczLh/IN20HDYDbLaN x6tqFJqsah1W5nRWDd+64YTJygs2DZU07wI3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=j8Tk7MZAeqwST70Q5BsNOAOK62Rdtqej9S6F+wWhyN3LIp2TJUMorq26VT4djWNQPd dY+L4ShHt1s0uvoQ4x5GcicuuaTzAj8J1EqEV+JZcfsjCr9Xc3nszOmf3ct0Ttoblvzd +CX/zu8gF6l8GVfqCS9kEEo7/WR2SU2cKjbuo= MIME-Version: 1.0 Received: by 10.220.72.78 with SMTP id l14mr4716495vcj.81.1247334307137; Sat, 11 Jul 2009 10:45:07 -0700 (PDT) In-Reply-To: References: <24427833.post@talk.nabble.com> <4A579F13.4010704@oracle.com> <237ac0b0907110542t6f2d488eh157e187aca17f6b1@mail.gmail.com> Date: Sat, 11 Jul 2009 12:45:07 -0500 Message-ID: Subject: Re: [MyFaces][Core] From: Leonardo Uribe To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0016e6471b0a4b0aed046e71a6d5 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6471b0a4b0aed046e71a6d5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi One option (not very standard but an easy one) to check what's happening is call Thread.dumpStack on constructor and check both stack traces to see from where the constructor is called. With this information, it is possible to check myfaces code to see if somethings wrong. regards Leonardo Uribe 2009/7/11 Guy Bashan > Bean constructor is being called twice (probably bean is created twice...). > The weird thing is, that the request to the page contains a parameter. > The first time the constructor is called, I get the parameter from the > request (in the constructor). > The second time the constructor is called, the getting the request > parameter returns null. > > Guy. > > > On Sat, Jul 11, 2009 at 3:42 PM, Jan-Kees van Andel < > jankeesvanandel@gmail.com> wrote: > >> What do you mean with "being called twice"? You don't call a bean, but >> instantiate a bean and call methods or properties on it. Is a method >> or property being called twice? Or do you get two bean instances >> within one request? >> >> Regards, >> Jan-Kees >> >> >> 2009/7/10 Mamallan Uthaman : >> > Hi Guy, >> > >> > You can install fiddler to monitor the traffic between the browser and >> the >> > server. By using fiddler, you can make sure that your page is not called >> > twice. >> > >> > Thanks >> > Mamallan >> > >> > Guy Bashan wrote: >> >> >> >> I am not using JSF navigation mechanism. >> >> This page is accessed directly by pressing a link. >> >> >> >> On Fri, Jul 10, 2009 at 4:40 PM, Rajneesh K Rajput < >> rajneesh@contata.com >> >> > wrote: >> >> >> >> >> >> Have you put on the navigation for this specific bean? >> >> >> >> >> >> bashan wrote: >> >> > >> >> > Hi, >> >> > >> >> > In one of the pages of my application there is a page in which >> >> the bean >> >> > (request scope) is being called twice. >> >> > Is there a way for examining why this thing happens? >> >> > >> >> > Thanks, >> >> > Guy. >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/-MyFaces--Core--tp24411347p24427833.html >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > > --0016e6471b0a4b0aed046e71a6d5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

One option (not very standard but an easy one) to check what'= s happening is call Thread.dumpStack on constructor and check both stack tr= aces to see from where the constructor is called. With this information, it= is possible to check myfaces code to see if somethings wrong.

regards

Leonardo Uribe

2009/7/= 11 Guy Bashan <guy.bashan@gmail.com>
Bean constructor is being called twice (probably bean is c= reated twice...).
The weird thing is, that the request to the page conta= ins a parameter.
The first time the constructor is called, I get the par= ameter from the request (in the constructor).
The second time the constructor is called, the getting the request paramete= r returns null.

Guy.
<= div class=3D"h5">

On Sat, Jul 11, 2009 at= 3:42 PM, Jan-Kees van Andel <jankeesvanandel@gmail.com> wrote:
What do you mean = with "being called twice"? You don't call a bean, but
instantiate a bean and call methods or properties on it. Is a method
or property being called twice? Or do you get two bean instances
within one request?

Regards,
Jan-Kees


2009/7/10 Mamallan Uthaman <mamallan.uthaman@oracle.com>:
> Hi Guy,
>
> You can install fiddler to monitor the traffic between the browser and= the
> server. By using fiddler, you can make sure that your page is not call= ed
> twice.
>
> Thanks
> Mamallan
>
> Guy Bashan wrote:
>>
>> I am not using JSF navigation mechanism.
>> This page is accessed directly by pressing a link.
>>
>> On Fri, Jul 10, 2009 at 4:40 PM, Rajneesh K Rajput <rajneesh@contata.com
>> <mailto:rajneesh@contata.com>> wrote:
>>
>>
>> =A0 =A0Have you put </redirect> on the navigation for this s= pecific bean?
>>
>>
>> =A0 =A0bashan wrote:
>> =A0 =A0>
>> =A0 =A0> Hi,
>> =A0 =A0>
>> =A0 =A0> In one of the pages of my application there is a page = in which
>> =A0 =A0the bean
>> =A0 =A0> (request scope) is being called twice.
>> =A0 =A0> Is there a way for examining why this thing happens? >> =A0 =A0>
>> =A0 =A0> Thanks,
>> =A0 =A0> Guy.
>> =A0 =A0>
>> =A0 =A0>
>>
>> =A0 =A0--
>> =A0 =A0View this message in context:
>> =A0 =A0http://www.nabble.com/-MyFaces--Core--tp2= 4411347p24427833.html
>> =A0 =A0Sent from the MyFaces - Users mailing list archive at Nabbl= e.com.
>>
>>
>


--0016e6471b0a4b0aed046e71a6d5--