[DAISY] Updated: CacheEventAction

[email protected]
Newsgroups gmane.text.xml.cocoon.documentation
Message-ID <[email protected]>
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1494.html

Document ID: 1494
Branch: main
Language: default
Name: CacheEventAction (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 8/17/08 4:10:50 PM
Updated by: Lukas Lang

A new version has been created, state: draft

Parts
=====

Long description
----------------
This part has been added.
Mime type: text/xml
File name: null
Size: 920 bytes
Content:
<html>
<body>

<h3>Example</h3>

<p>This sample is built on top of the EventAwareGenerator sample.</p>

<pre>  &lt;map:pipelines&gt;   
    &lt;map:pipeline type="event-aware"&gt;
      &lt;map:match pattern="action"&gt;
        &lt;map:act type="CacheEvent"&gt;
          &lt;map:parameter name="event" value="{request-param:event}" /&gt;
        &lt;/map:act&gt;
        &lt;map:redirect-to uri="demo?pageKey={request-param:pageKey}&amp;amp;rand={random:x}" /&gt;
      &lt;/map:match&gt;
    &lt;/map:pipeline&gt;
  &lt;map:pipelines&gt;</pre>

<h3>Configuration</h3>

<pre>  &lt;!-- Cache event bean --&gt;
  &lt;bean name="org.apache.cocoon.acting.Action/CacheEvent"
    class="org.apache.cocoon.acting.CacheEventAction" scope="prototype"&gt;
    &lt;property name="cache" ref="org.apache.cocoon.caching.Cache/EventAware"/&gt;
  &lt;/bean&gt;</pre>

</body>
</html>


Fields
======
CocoonComponentReference: Action (new field)
CocoonBlock: eventcache (new field)
FQ Java class: org.apache.cocoon.acting.CacheEventAction (new field)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.