Hi,
form_model-pipeline.xsp is not a file...
what I was thinking of doing is using the output of a pipeline entry as an
input for the form constructor.
so a call from flowscript:
cocoon.sendPage("form_model-pipeline.xsp" ,
{questions: questionRegistry.getAllQuestions()});
will be matched with the pipeline entry:
<map:match pattern="*-pipeline.xsp">
<map:generate type="jx" src="forms/{1}.xml"/>
<map:serialize type="xml"/>
</map:match>
and the jx generator looks for the file: forms/form_model.xml.... which
generates the form definition xml and ouputs into the browser
so instead of calling cocoon.sendPage(..) im trying to use the ouput of teh
pipeline, i.e. the serialized xml, as a direct argument for the form
constructor, i.e. by calling
var form = new Form("form_model-pipeline.xsp" ,
{questions: questionRegistry.getAllQuestions()});
but it seems that form constructor only takes system files as an argument
Any help as to what else I may try
Thanks
On 4/18/07, Dev at weitling <[EMAIL PROTECTED]> wrote:
> Hi Bart
um, err, Florian...
> Thanks for your help, but i have tried that path in the morning and
> unfortunally was unsuccessful...
> when i call
>
> var form = new Form("form_model-pipeline.xsp" ,
> {questions: questionRegistry.getAllQuestions()});
>
> from my flowscipt, cocoon actually looks for the file "form_model-
> pipeline.xsp" ,
> so i get the fllowing file not found exception:
>
> java.io.FileNotFoundException:
> C:\cocoon\build\webapp\test\forms\test\form_model-pipeline.xsp (The
> system
> cannot find the file specified)
When I revisit your pipeline
<map:match pattern="*-pipeline.xsp">
<map:generate type="jx" src="forms/{1}.xml"/>
<map:serialize type="xml"/>
</map:match>
then I see it looks for this file in the folder "forms".
Could you just provide your directory structure (files, folders,
sitemap) and your sitemap content?
Bye,
_Florian_
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]