On Wed, 2004-02-11 at 02:05, Mark Lundquist wrote:
> I'm having a problem with Cocoon 2.1.3, so I tried my test case against
> a Cocoon built from one of today's snapshots. The problem doesn't
> occur in the latest Cocoon.
>
> My apologies for not being able to figure out on my own whether this is
> a known bug; I queried Bugzilla and looked at a lot of bug summaries,
> but nothing jumped out at me.
>
> I'm hoping that if this is something that was intentionally fixed since
> 2.1.3, someone can point me in the right direction with enough
> information to help me figure out how to make my own patch to fix this
> in 2.1.3.
>
> The problem: if I create a form in flow and save it in the session like
> this:
>
> cocoon.session.setAttribute ('form', form.form);
>
> ...then try to retrieve it in the WoodyTemplateTransformer like this:
>
> <wd:form-template location="getAttribute($session, 'form')"...
>
> I get an exception thrown:
> org.xml.sax.SAXException: Object returned by expression
> "getAttribute($session, 'form')" is not a Woody Form.
probably the form is wrapped in a javascript wrapper. I see there's
something changed in setAttribute on 28 jan regarding to that, so with
current CVS this will probably work.
>
> I have a really tiny (<4K zipped tarfile) test case that suffices to
> demonstrate this problem. I have not attached it here, but I can
> provide to anyone who might be interested.
I'd suggest you try it out with a CVS snapshot.
>
> Many thanks to you all for all your great work on Cocoon.
> - Mark Lundquist
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED] [EMAIL PROTECTED]