You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "ir. ing. Jan Dockx" <ja...@mac.com> on 2005/09/26 23:49:08 UTC
--> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
O yeah, for the record, another change we had to make in our conversion
from 20050821 to 1.1.0, was the following:
in 1.1.0, you can no longer use "param" (the HTTP request parameters)
in an EL to set a managed property of a managed bean for session scope.
There is a message that the 'lifetime' of the "param" is shorter than
that of the managed bean.
That's true, for sure. There is some method to this madness ;-). I
don't know whether this is needed for spec compliancy (I think not
though), but all in all, it is not true. Sure the lifetime of param is
shorter than that of session, but that is not the issue. What we need
for the value of a managed property is that it is there _when the bean
is initialized_. That's a point in time, not a period. It doesn't have
to be there all the time the managed bean lives!
Anyway, for the records, maybe this helps somebody …
Met vriendelijke groeten,
Jan Dockx
PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66
PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25
http://www.peopleware.be/
http://www.mobileware.be/
Re: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
Posted by "ir. ing. Jan Dockx" <ja...@mac.com>.
Probably. Stupid spec.
On 27 Sep 2005, at 0:27, Bruno Aranda wrote:
> I think this might be related to MYFACES-523?
>
> Regards,
>
> Bruno
>
> 2005/9/26, ir. ing. Jan Dockx <ja...@mac.com>:
>> O yeah, for the record, another change we had to make in our
>> conversion
>> from 20050821 to 1.1.0, was the following:
>>
>> in 1.1.0, you can no longer use "param" (the HTTP request parameters)
>> in an EL to set a managed property of a managed bean for session
>> scope.
>> There is a message that the 'lifetime' of the "param" is shorter than
>> that of the managed bean.
>>
>> That's true, for sure. There is some method to this madness ;-). I
>> don't know whether this is needed for spec compliancy (I think not
>> though), but all in all, it is not true. Sure the lifetime of param is
>> shorter than that of session, but that is not the issue. What we need
>> for the value of a managed property is that it is there _when the bean
>> is initialized_. That's a point in time, not a period. It doesn't have
>> to be there all the time the managed bean lives!
>>
>> Anyway, for the records, maybe this helps somebody …
>>
>>
>> Met vriendelijke groeten,
>>
>> Jan Dockx
>>
>> PeopleWare NV - Head Office
>> Cdt.Weynsstraat 85
>> B-2660 Hoboken
>> Tel: +32 3 448.33.38
>> Fax: +32 3 448.32.66
>>
>> PeopleWare NV - Branch Office Geel
>> Kleinhoefstraat 5
>> B-2440 Geel
>> Tel: +32 14 57.00.90
>> Fax: +32 14 58.13.25
>>
>> http://www.peopleware.be/
>> http://www.mobileware.be/
>>
>>
>>
Met vriendelijke groeten,
Jan Dockx
PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66
PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25
http://www.peopleware.be/
http://www.mobileware.be/
Re: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
Posted by Bruno Aranda <br...@gmail.com>.
I think this might be related to MYFACES-523?
Regards,
Bruno
2005/9/26, ir. ing. Jan Dockx <ja...@mac.com>:
> O yeah, for the record, another change we had to make in our conversion
> from 20050821 to 1.1.0, was the following:
>
> in 1.1.0, you can no longer use "param" (the HTTP request parameters)
> in an EL to set a managed property of a managed bean for session scope.
> There is a message that the 'lifetime' of the "param" is shorter than
> that of the managed bean.
>
> That's true, for sure. There is some method to this madness ;-). I
> don't know whether this is needed for spec compliancy (I think not
> though), but all in all, it is not true. Sure the lifetime of param is
> shorter than that of session, but that is not the issue. What we need
> for the value of a managed property is that it is there _when the bean
> is initialized_. That's a point in time, not a period. It doesn't have
> to be there all the time the managed bean lives!
>
> Anyway, for the records, maybe this helps somebody …
>
>
> Met vriendelijke groeten,
>
> Jan Dockx
>
> PeopleWare NV - Head Office
> Cdt.Weynsstraat 85
> B-2660 Hoboken
> Tel: +32 3 448.33.38
> Fax: +32 3 448.32.66
>
> PeopleWare NV - Branch Office Geel
> Kleinhoefstraat 5
> B-2440 Geel
> Tel: +32 14 57.00.90
> Fax: +32 14 58.13.25
>
> http://www.peopleware.be/
> http://www.mobileware.be/
>
>
Re: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
Posted by Nebojsa Vasiljevic <ne...@sw4i.com>.
I sead:
... it is hard to determinate *in what request* the session (bean) was initialized ...
I haven't sead that a managed bean could be initialized outside of any request/response cycle.
BTW, does JSR specifications specify that a managed bean can't be initialized outside of any request/response cycle? I don't know.
Nebojsa
----- Original Message -----
From: ir. ing. Jan Dockx
To: MyFaces Discussion
Sent: Tuesday, September 27, 2005 8:55 PM
Subject: Re: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
So you are saying that a managed bean could be initialized outside of any request/response cycle?! Explain.
And even then, it is the responsibility of the programmer. No probs, if he does something funny, the app will crash always, so he'll notice on his first test.
On 27 Sep 2005, at 15:57, Nebojsa Vasiljevic wrote:
----- Original Message -----
From: ir. ing. Jan Dockx
To: MyFaces Discussion
Sent: Monday, September 26, 2005 11:49 PM
Subject: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
[...] There is a message that the 'lifetime' of the "param" is shorter than that of the managed bean.
That's true, for sure. There is some method to this madness ;-). I don't know whether this is needed for spec compliancy (I think not though), but all in all, it is not true. Sure the lifetime of param is shorter than that of session, but that is not the issue. What we need for the value of a managed property is that it is there _when the bean is initialized_. That's a point in time, not a period. It doesn't have to be there all the time the managed bean lives!
But the period of all possible points of time when the session was able to be initialized is longer than the current request lifetime. So, it is hard to determinate in what request the session was initialized and it's not a good idea to depend on it.
Specifications sometime promote "not recommended" to "prohibited", it is matter of style.
Nebojsa
Met vriendelijke groeten,
Jan Dockx
PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66
PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25
http://www.peopleware.be/
http://www.mobileware.be/
Re: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
Posted by "ir. ing. Jan Dockx" <ja...@mac.com>.
So you are saying that a managed bean could be initialized outside of
any request/response cycle?! Explain.
And even then, it is the responsibility of the programmer. No probs, if
he does something funny, the app will crash always, so he'll notice on
his first test.
On 27 Sep 2005, at 15:57, Nebojsa Vasiljevic wrote:
>
>> ----- Original Message -----
>> From: ir. ing. Jan Dockx
>> To: MyFaces Discussion
>> Sent: Monday, September 26, 2005 11:49 PM
>> Subject: --> 1.1.0: 'lifetime' of the "param" is shorter than that of
>> the managed bean
>>
>> [...] There is a message that the 'lifetime' of the "param" is
>> shorter than that of the managed bean.
>>
>> That's true, for sure. There is some method to this madness ;-). I
>> don't know whether this is needed for spec compliancy (I think not
>> though), but all in all, it is not true. Sure the lifetime of param
>> is shorter than that of session, but that is not the issue. What we
>> need for the value of a managed property is that it is there _when
>> the bean is initialized_. That's a point in time, not a period. It
>> doesn't have to be there all the time the managed bean lives!
> But the period of all possible points of time when the session was
> able to be initialized is longer than the current request
> lifetime. So, it is hard to determinate in what request the session
> was initialized and it's not a good idea to depend on it.
>
> Specifications sometime promote "not recommended" to "prohibited", it
> is matter of style.
>
> Nebojsa
Met vriendelijke groeten,
Jan Dockx
PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66
PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25
http://www.peopleware.be/
http://www.mobileware.be/
Re: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
Posted by Nebojsa Vasiljevic <ne...@sw4i.com>.
----- Original Message -----
From: ir. ing. Jan Dockx
To: MyFaces Discussion
Sent: Monday, September 26, 2005 11:49 PM
Subject: --> 1.1.0: 'lifetime' of the "param" is shorter than that of the managed bean
[...] There is a message that the 'lifetime' of the "param" is shorter than that of the managed bean.
That's true, for sure. There is some method to this madness ;-). I don't know whether this is needed for spec compliancy (I think not though), but all in all, it is not true. Sure the lifetime of param is shorter than that of session, but that is not the issue. What we need for the value of a managed property is that it is there _when the bean is initialized_. That's a point in time, not a period. It doesn't have to be there all the time the managed bean lives!
But the period of all possible points of time when the session was able to be initialized is longer than the current request lifetime. So, it is hard to determinate in what request the session was initialized and it's not a good idea to depend on it.
Specifications sometime promote "not recommended" to "prohibited", it is matter of style.
Nebojsa