cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Problem with JPetStore
Date Fri, 21 Mar 2003 19:22:08 GMT
Christopher Oliver wrote:

> Sylvain Wallez wrote:
>> Here's my test (see below). I modified the viewCategory function in 
>> PetStore to track the value of "skipResults", and observed that when 
>> you use the browser back button and then reload the page, 
>> "skipResults" is correctly restored but not "foo.skip" which is set 
>> to the same value.
>> However, I realize now that my analyzis of the result (special 
>> handing of primitive types) was wrong. Writing "skipResults = 1" in 
>> JavaScript is equivalent to writing "Integer skipResults = new 
>> Integer(1)" in Java. This means "skipResults" refers to a new object 
>> of type Integer. And the reference to this object is restored when 
>> the continuation is restored.
> Yes, that's correct.


> Now can you help me with this problem:
> :) 

Ok, I'll give it a look over the week end (it's past 8pm european time)


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

View raw message