| java.lang.Object org.apache.cocoon.portal.components.modules.input.AbstractModule org.apache.cocoon.portal.components.modules.input.CopletModule
CopletModule | public class CopletModule extends AbstractModule (Code) | | Makes accessible coplet instance data by using JXPath expressions.
Example:
<map:action type="foo">
<map:parameter name="maxpageable" value="{coplet:copletData/maxpageable}"/>
</map:action>
The module will insert the boolean value specifying whether the coplet is
maxpageable or not as value of attribute "value" in <map:parameter>.
There are two possibilities how the module obtains the information required for
getting the coplet instance data:
1) If it is used within a coplet pipeline and this pipeline is called using the "cocoon:" protocol,
all required information are passed automatically.
2) Otherwise the portal name and the coplet id must be passed in the object model
which can be done by using the ObjectModelAction:
<map:action type="objectModel">
<map:parameter name="portalName" value="exampleportal"/>
<map:parameter name="copletId" value="examplecoplet"/>
<map:action type="foo">
<map:parameter name="maxpageable" value="{coplet:copletData/maxpageable}"/>
</map:action>
</map:action>
Using the path '#' you get the current copletId: {coplet:#}
author: Björn Lütkemeier author: Carsten Ziegeler version: CVS $Id: CopletModule.java 433543 2006-08-22 06:22:54Z crossley $ |
getAttribute | public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
Fields inherited from org.apache.cocoon.portal.components.modules.input.AbstractModule | protected ServiceManager manager(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.portal.components.modules.input.AbstractModule | public Iterator getAttributeNames(Configuration modeConf, Map objectModel)(Code)(Java Doc) public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel) throws ConfigurationException(Code)(Java Doc) public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
|
|
|