cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Hoskens">
Subject Re: [Woody] Union & XML binding
Date Tue, 03 Feb 2004 07:50:00 GMT
You're right about the 'X' and 'X_value": something went wrong while I
replaced the actual values to X and Y. I'm sorry for that! If I replace my
output widget with a field widget, the example does work (with the correct
X's of course, again my apologies for not replacing them correctly!) I
realized my stupid mistake:  I thought of just making the case widget an
output widget because I don't want the user to change it, but there's no
output widget with a selection-list of course(think it was here that the
binding crashed with the ClassCastException, if the exception had mentioned
both of the classes it may have been easier to find out)! Maybe emphasising
that the case widget has to be a field widget could do no harm;-)


----- Original Message ----- 
From: "Tim Larson" <>
To: <>
Sent: Monday, February 02, 2004 5:45 PM
Subject: Re: [Woody] Union & XML binding

> On Mon, Feb 02, 2004 at 04:52:30PM +0100, Jan Hoskens wrote:
> > Hi,
> >
> > I'm trying to use a union in my woody form. I've got no problem showing
> > form, but when I try to save the document back to xml, I always get a
> > ClassCastException:
> >
> >  org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> > org.apache.cocoon.ProcessingException: Error processing
> > java.lang.ClassCastException
> >
> > I can't figure out what I'm doing wrong here.
> >
> > I'm using a cvs head 2.1 updated today. I use the following parts in my
> > woody files:
> Union was changed from holding the case value itself to referencing
> another widget that holds the current case.  This means that the union
> in the formmodel should have a "case" attribute pointing at a field
> widget that holds the case value, and the datatype, etc. should be
> removed from the union widget definition, since that should now be
> supplied by the referenced field widget.
> Also, in the union there is "X_value" and "X_and_Y_value",
> while in some other places you have "X" instead of "X_value".
> --Tim Larson
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message