You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2006/03/01 08:55:42 UTC

[jira] Updated: (COCOON-865) [PATCH] New ResourceLoadAction

     [ http://issues.apache.org/jira/browse/COCOON-865?page=all ]

David Crossley updated COCOON-865:
----------------------------------

    Bugzilla Id:   (was: 24389)
     Other Info: [Patch available]
    Description: 
I've created a new ResourceLoadAction (based on the ResourceExistsAction).

This action is very useful if you want to load a pipeline, so that it can set up 
some things used in your calling pipeline.  

For example, you may need to access DOM information stored in your 
session/request object, so might need to call a pipeline ahead of time to read 
the data from a database and then use WriteDomTransformer to put the data where 
your main pipeline can get at it.

I ran into a situation where I wanted to use a Selector coupled with the 
JXPathMetaModule (to read the selector value from a DOM document in the session)
, but needed to do ensure that the data was first loaded into the session.  
ResourceLoadAction solved this need.

Basically, it's very much like a <map:call> but with the serialized output being 
thrown away, so it can be used to call any arbitrary pipeline anywhere you can 
put an action.

Source attached.

....Andrzej

  was:
I've created a new ResourceLoadAction (based on the ResourceExistsAction).

This action is very useful if you want to load a pipeline, so that it can set up 
some things used in your calling pipeline.  

For example, you may need to access DOM information stored in your 
session/request object, so might need to call a pipeline ahead of time to read 
the data from a database and then use WriteDomTransformer to put the data where 
your main pipeline can get at it.

I ran into a situation where I wanted to use a Selector coupled with the 
JXPathMetaModule (to read the selector value from a DOM document in the session)
, but needed to do ensure that the data was first loaded into the session.  
ResourceLoadAction solved this need.

Basically, it's very much like a <map:call> but with the serialized output being 
thrown away, so it can be used to call any arbitrary pipeline anywhere you can 
put an action.

Source attached.

....Andrzej


> [PATCH] New ResourceLoadAction
> ------------------------------
>
>          Key: COCOON-865
>          URL: http://issues.apache.org/jira/browse/COCOON-865
>      Project: Cocoon
>         Type: Improvement
>   Components: - Components: Avalon
>     Versions: 2.1.2
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Andrzej Taramina
>     Assignee: Cocoon Developers Team
>     Priority: Minor
>  Attachments: ResourceLoadAction.java, ResourceLoadAction.java
>
> I've created a new ResourceLoadAction (based on the ResourceExistsAction).
> This action is very useful if you want to load a pipeline, so that it can set up 
> some things used in your calling pipeline.  
> For example, you may need to access DOM information stored in your 
> session/request object, so might need to call a pipeline ahead of time to read 
> the data from a database and then use WriteDomTransformer to put the data where 
> your main pipeline can get at it.
> I ran into a situation where I wanted to use a Selector coupled with the 
> JXPathMetaModule (to read the selector value from a DOM document in the session)
> , but needed to do ensure that the data was first loaded into the session.  
> ResourceLoadAction solved this need.
> Basically, it's very much like a <map:call> but with the serialized output being 
> thrown away, so it can be used to call any arbitrary pipeline anywhere you can 
> put an action.
> Source attached.
> ....Andrzej

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira