myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: [MyFaces][Core]
Date Sat, 11 Jul 2009 17:45:07 GMT
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 <guy.bashan@gmail.com>

> 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 <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 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
>> >> <mailto:rajneesh@contata.com>> wrote:
>> >>
>> >>
>> >>    Have you put </redirect> 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.
>> >>
>> >>
>> >
>>
>
>

Mime
View raw message