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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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=

Reply via email to