cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28260] New: - ArrayIndexOutOfBoundsException in cforms Transformer
Date Wed, 07 Apr 2004 15:14:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28260>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28260

ArrayIndexOutOfBoundsException in cforms Transformer

           Summary: ArrayIndexOutOfBoundsException in cforms Transformer
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: CocoonForms
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: mpo@apache.org


The cforms transformer allows to set the form-action from the sitemap using a
'form-action' parameter.

 <map:transform type="forms" >
   <map:parameter name="form-action" value="{flow-continuation:id}.continue" />
 </map:transform>

(sample uses the FlowContinuationModule to get the continuation id)

This works fine as long as the <ft:form-template> has already an action
attribute. (it may be empty) However when the action attribute is not present
the transformation will throw an ArrayIndexOutOfBoundsException.

Simple workaround is to provide the @action of course:
<ft:form-template action="">

-marc=

Mime
View raw message