You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ognjen Blagojevic <og...@etf.bg.ac.rs> on 2009/04/08 14:58:37 UTC
[tomahawk] saveState and java.lang.Long
Hi,
I have a working Mojarra+Tomahawk application on Tomcat 6.0.14, but when
I upgraded to Tomcat 6.0.18, some actions doesn't work anymore.
Tracing the problem, I found out that the cause of the problem is the
restoring of the state of the bean property with type java.lang.Long.
Namely, if the value of the Long property is null, the restored state of
the property under Tomcat 6.0.14 is also null. However, under 6.0.18,
the restored state is 0!
I assumed that the expected value for restored state of the value null
wold be also null? Is this correct assumption?
Under Tomcat 6.0.16, I get the same problem (0 instead of null).
Thanks in advance,
Ognjen
Re: [tomahawk] saveState and java.lang.Long
Posted by Ognjen Blagojevic <og...@etf.bg.ac.rs>.
Nevermind, I found a solution 15 min after posting the question.
It is related with the bug fix 43285 [1], and there is even a paramter
to revert to original 6.0.14 behaviour.
Regards,
Ognjen
[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=43285
Ognjen Blagojevic wrote:
> Hi,
>
> I have a working Mojarra+Tomahawk application on Tomcat 6.0.14, but when
> I upgraded to Tomcat 6.0.18, some actions doesn't work anymore.
>
> Tracing the problem, I found out that the cause of the problem is the
> restoring of the state of the bean property with type java.lang.Long.
>
> Namely, if the value of the Long property is null, the restored state of
> the property under Tomcat 6.0.14 is also null. However, under 6.0.18,
> the restored state is 0!
>
> I assumed that the expected value for restored state of the value null
> wold be also null? Is this correct assumption?
>
> Under Tomcat 6.0.16, I get the same problem (0 instead of null).
>
> Thanks in advance,
> Ognjen
>
Re: [tomahawk] saveState and java.lang.Long
Posted by Ognjen Blagojevic <og...@rcub.bg.ac.rs>.
Nevermind, I found a solution 15 min after posting the question.
It is related with the bug fix 43285 [1], and there is even a paramter
to revert to original 6.0.14 behaviour.
Regards,
Ognjen
[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=43285
Ognjen Blagojevic wrote:
> Hi,
>
> I have a working Mojarra+Tomahawk application on Tomcat 6.0.14, but when
> I upgraded to Tomcat 6.0.18, some actions doesn't work anymore.
>
> Tracing the problem, I found out that the cause of the problem is the
> restoring of the state of the bean property with type java.lang.Long.
>
> Namely, if the value of the Long property is null, the restored state of
> the property under Tomcat 6.0.14 is also null. However, under 6.0.18,
> the restored state is 0!
>
> I assumed that the expected value for restored state of the value null
> wold be also null? Is this correct assumption?
>
> Under Tomcat 6.0.16, I get the same problem (0 instead of null).
>
> Thanks in advance,
> Ognjen
>