You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jasha Joachimsthal <j....@hippo.nl> on 2008/01/17 16:51:42 UTC

Undefined error in carselector (cforms, cocoon 2.1)

Hi there,
 
I'm trying to create a form based on the carselector sample [1] in Cocoon 2.1.11. When I change the first pulldown menu, I get an error "Request failed, show server response?". When I click yes, I get an error that it tries to do a request for a pipeline "undefined". I can sort of reproduce it in the carselector by waiting a few minutes before changing the brand. However in my form I get the error at each submit unless I remove the <fd:javascript> from the form definition. But then it's useless for me because I need the dojo action to populate my 2nd pulldown.
 
Any ideas?
 
Jasha Joachimsthal
 
[1] http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/carselector

RE: Undefined error in carselector (cforms, cocoon 2.1)

Posted by Jasha Joachimsthal <j....@hippo.nl>.
Yes, that was the solution to my problem! Thanks :)
 
Jasha

________________________________

Van: Grzegorz Kossakowski [mailto:gkossakowski@apache.org]
Verzonden: do 1/17/2008 20:22
Aan: users@cocoon.apache.org
Onderwerp: Re: Undefined error in carselector (cforms, cocoon 2.1)



Jasha Joachimsthal pisze:
> Hey Grzegorz,
> 
> Ah, I'm not the only one and luckily you know how to solve it :)
> Any idea what your fix was (release numbers don't say much for me)?

Actually it's a revision number not release number. I was referring to this commit[1] but you cannot
backport this fix because the bug it fixes was introduced in trunk only. I pointed you to my e-mail
because I wanted to show what probably is the real cause of your troubles: not bad URL pointing to
some "undefined" resource but bad response to completely other request (with proper URL!).

I would suggest to you adding TeeTransformer to Forms rendering pipeline and taking a look at the
output it generates just before serializer. It should be XML with <bu:dcoument> tag as root.

[1] http://article.gmane.org/gmane.text.xml.cocoon.cvs/26201

--
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




Re: Undefined error in carselector (cforms, cocoon 2.1)

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Jasha Joachimsthal pisze:
> Hey Grzegorz,
>  
> Ah, I'm not the only one and luckily you know how to solve it :)
> Any idea what your fix was (release numbers don't say much for me)?

Actually it's a revision number not release number. I was referring to this commit[1] but you cannot
backport this fix because the bug it fixes was introduced in trunk only. I pointed you to my e-mail
because I wanted to show what probably is the real cause of your troubles: not bad URL pointing to
some "undefined" resource but bad response to completely other request (with proper URL!).

I would suggest to you adding TeeTransformer to Forms rendering pipeline and taking a look at the
output it generates just before serializer. It should be XML with <bu:dcoument> tag as root.

[1] http://article.gmane.org/gmane.text.xml.cocoon.cvs/26201

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: Undefined error in carselector (cforms, cocoon 2.1)

Posted by Jasha Joachimsthal <j....@hippo.nl>.
Hey Grzegorz,
 
Ah, I'm not the only one and luckily you know how to solve it :)
Any idea what your fix was (release numbers don't say much for me)?
 
Jasha

________________________________

Van: Grzegorz Kossakowski [mailto:gkossakowski@apache.org]
Verzonden: do 1/17/2008 17:08
Aan: users@cocoon.apache.org
Onderwerp: Re: Undefined error in carselector (cforms, cocoon 2.1)



Jasha Joachimsthal pisze:
> Hi there,
> 
> I'm trying to create a form based on the carselector sample [1] in
> Cocoon 2.1.11. When I change the first pulldown menu, I get an error
> "Request failed, show server response?". When I click yes, I get an
> error that it tries to do a request for a pipeline "undefined". I can
> sort of reproduce it in the carselector by waiting a few minutes before
> changing the brand. However in my form I get the error at each submit
> unless I remove the <fd:javascript> from the form definition. But then
> it's useless for me because I need the dojo action to populate my 2nd
> pulldown.
> 
> Any ideas?

I've been struggling with the same error few days ago in trunk, see this e-mail:
http://article.gmane.org/gmane.text.xml.cocoon.devel/76726

--
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




Re: Undefined error in carselector (cforms, cocoon 2.1)

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Jasha Joachimsthal pisze:
> Hi there,
>  
> I'm trying to create a form based on the carselector sample [1] in
> Cocoon 2.1.11. When I change the first pulldown menu, I get an error
> "Request failed, show server response?". When I click yes, I get an
> error that it tries to do a request for a pipeline "undefined". I can
> sort of reproduce it in the carselector by waiting a few minutes before
> changing the brand. However in my form I get the error at each submit
> unless I remove the <fd:javascript> from the form definition. But then
> it's useless for me because I need the dojo action to populate my 2nd
> pulldown.
>  
> Any ideas?

I've been struggling with the same error few days ago in trunk, see this e-mail:
http://article.gmane.org/gmane.text.xml.cocoon.devel/76726

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org