Thanks, Beate, your telepathic proof-reading skills nailed the problem: my <ft:new> element had an attribute named "class" instead of "id". Everything works now. And thanks, Tim, for the offer to look at my code. I'll probably need that before I get through this project...
Peter
-----Original Message-----
From: beatejung [mailto:[EMAIL PROTECTED]]
Sent: Tue 3/15/2005 12:49 PM
To: [email protected]
Subject: Re: class widgets
hallo peter,
Am Dienstag, 15. M�rz 2005 20:27 schrieb Binkley, Peter:
> I'm starting to get into class widgets in Cocoon Forms, and I'm not sure if
> my problem fits their use.
>
> I have an XML structure in which several elements have an identical set of
> four optional attributes, as well as their own unique attributes. I've
> declared a widget class containing the four common attributes, and I'd like
> to instantiate it in all the contexts that need it.
>
> The problem is that when I set this up, I get this error:
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> org.xml.sax.SAXException: EffectFormTemplateTransformer: Missing required
> widget "id" attribute.
> My <fd:class> element contains only an <fd:widgets> element, containing
> several fields; the <fb:class> and <ft:class> are similar. The <fd:new>
> element sits in the <fd:widgets> element of an <fd:repeater>, at the end of
> the list of <fd:field> elements that are unique to that item; likewise for
> <fb:new> and <ft:new>. I'm not using union or struct elements.
>
the error message means the id attribute, not a field i think.
check if you wrote it like this: <ft:class id="question-para">
perhaps a wrong character somewhere in the head of the class template
definition or not lower case ?
> Is my use of the class widget to add fields to a context that also defines
> some of its own fields illegitimate? Is there another way to tackle this
> problem? Any help would be greatly appreciated.
>
> Peter Binkley
> [EMAIL PROTECTED]
hth
beate
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Title: RE: class widgets
