cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject action broken in latest cvs
Date Mon, 11 Jun 2001 16:55:13 GMT
i get this sitemap compilation error from the latest cvs:

Line 0, column 0:
/usr/local/jakarta-tomcat-4.0-b5/work/localhost/uptgen/org/apache/cocoon/www/sitemap_xmap.java:794:
Wrong number of arguments in method.
      map = ((Action) this.actions.select("add-employee")).act (
                                                               ^
Line 0, column 0:
/usr/local/jakarta-tomcat-4.0-b5/work/localhost/uptgen/org/apache/cocoon/www/sitemap_xmap.java:817:
Wrong number of arguments in method.
      map = ((Action) this.actions.select("del-employee")).act (
                                                               ^
Line 0, column 0:
/usr/local/jakarta-tomcat-4.0-b5/work/localhost/uptgen/org/apache/cocoon/www/sitemap_xmap.java:840:
Wrong number of arguments in method.
      map = ((Action) this.actions.select("upd-employee")).act (

it looks like the method signature for actions has changed but the sitemap
hasn't been updated to use it. the action class states:

    Map act(Redirector redirector, SourceResolver resolver, Map
objectModel, String source, Parameters par)

while the sitemap calls it:

        if ((map = <xsl:value-of select="$action-name"/> (environment,
objectModel, substitute(listOfMaps,<xsl:value-of select="$action-source"/>),
<xsl:value-of select="$component-param"/>)) != null) {

the redirector and resolver parameters are missing. i'd add them, but i
can't find a redirector or a resolver in the sitemap anywhere.

- donald


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


Mime
View raw message