cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@managingpartners.com>
Subject Nesting actions inside of a resource.
Date Thu, 17 May 2001 20:53:00 GMT
Currently you can't nest actions inside of a resource. The method call for 
an action expects the objectModel as a parameter, but there is no variable 
named objectModel inside of the method generated for a resource. Below is 
the error I got and a stupidly simple patch to make it work.
Keep up the great work!
-peter

org.apache.cocoon.ProcessingException: Language 
Exception:org.apache.cocoon.components.language.LanguageException: Error 
compiling sitemap_xmap: Line 0, column 0: 
C:\java\tomcat\work\localhost_8080%2Fepace\org\apache\cocoon\www\accounting\bankaccounts\sitemap_xmap.java:226:

Undefined variable: objectModel environment, objectModel, ^


Index: sitemap.xsl
===================================================================
RCS file: 
/home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
retrieving revision 1.2
diff -r1.2 sitemap.xsl
313a314
 >           Map objectModel = environment.getObjectModel();


-- 
peter royal -> proyal@managingpartners.com
managing partners, inc. -> http://www.managingpartners.com


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message