cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28179] New: - coocon.handleContinuation() does not restore pageLocal variables
Date Sat, 03 Apr 2004 20:43:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28179>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28179

coocon.handleContinuation() does not restore pageLocal variables

           Summary: coocon.handleContinuation() does not restore pageLocal
                    variables
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Flowscript
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: ouzo@wlkp.org


I wanted to be able to call continuations from flow instead of sitemap (I 
wanted to setup additional response headers to disable client-side caching). 
While the <map:call continuation="id"/> version works fine I have a problem 
with this version (pure flowscript):

var contManager = null;
try {
  contManager = cocoon.getComponent
( "org.apache.cocoon.components.flow.ContinuationsManager" );
 var wk = contManager.lookupWebContinuation( continuationId );
} finally {
  if ( contManager != null ) 
    cocoon.releaseComponent( contManager );    
}

cocoon.handleContinuation( wk.getContinuation() );

If there is no page local variable everything runs fine. For paged views I have 
implemented a function similar to the one that can be found in petstore sample 
that iterates over a larger rowset with multiple pages. When issuing a next 
page in paged view I get:

"file:/C:/_ouzo/2004.04.02/nTer/build/webapp/nTer/flow/main.js", line 89: 
Cannot convert NaN to java.lang.Integer - this occurs in a place that I use the 
pageLocal variable pageLocal.skip

Mime
View raw message