DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21213>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21213

[PATCH] Paginator caches dynamic pagesheet rules

           Summary: [PATCH] Paginator caches dynamic pagesheet rules
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When the pagesheet rules are served over the cocoon protocol, instead of a 
static file, the pagesheet definitions are cached from the first time they are 
used. This is my usecase:

<map:transform src="cocoon:/pagesheets/searchmachine.xml" type="paginate">
    <map:parameter name="page" value="{request-param:page}"/>
</map:transform>

The problem lies in the fact, that the cocoon protocol Source alway's gives 0 
for their lastModified date. These let the Paginator think that the pagesheet 
rules has never changed.

This patch enables the paginator to work correctly with this scenario.

Reply via email to