You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <DH...@csir.co.za> on 2005/01/18 07:49:46 UTC

[SOLVED, BUT] Re: REPOST: Cocoon Forms - Javascript errors

Found the cause of the error - in my "remove value" repeater
I had not correctly specified the selector widget that determines
which row/s has been selected for deletion ie.  I had:

<fd:repeater-action id="removedata_value" action-command="delete-rows"

  repeater="data_value" select="select">

instead of:

<fd:repeater-action id="removedata_value" action-command="delete-rows"

  repeater="data_value" select="data_value_select">

I do think that a better error message could have been generated;
if the sytem had complained it could not find a widget with
name "select", then at least I would have had somewhere to
start looking...

Derek

>>> DHohls@csir.co.za 2005/01/17 08:25:55 AM >>>
Well, the Form.js file is the standard one supplied with Cocoon;
if that was faulty, I would assume every cforms app would fail
in some way....  perhaps my topic header should be titled
'Errors deleting repeated rows in nested CForm'.

>>> newsgroup@burknet.ch 2005/01/15 12:57:04 AM >>>
hi derek

have you ever looked into the file Form.js (line 127)? perhaps you get
a 
hint what's causing this nullpointer-exception...

stefan

Derek Hohls wrote:
> {posted a month ago; maybe lost in the Christmas rush??}
> 
> I am getting the following message from Cocoon when I attempt
> to delete repeater row data from a form (note that adding data in
> the same form works just fine!); this is from the handled-errors
log:
> 
> ERROR   (2004-12-14) 16:20.55:811   [sitemap.handled-errors]
> (/cocoon215/soc/55581112040b1d2219463c867547407070841a6e.continue)
> Thread-19/PipelineNode: uncaught JavaScript exception: 
> at form2xml
>
(file:/opt/jakarta-tomcat-4.1.18/webapps/cocoon215/soc/flow/form_binding.js,
> Line 54)
> at  (resource://org/apache/cocoon/forms/flow/javascript/Form.js,
Line
> 127):
> java.lang.NullPointerException
> org.apache.avalon.framework.CascadingRuntimeException: uncaught
> JavaScript exception: 
> at form2xml
>
(file:/opt/jakarta-tomcat-4.1.18/webapps/cocoon215/soc/flow/form_binding.js,
> Line 54)
> at  (resource://org/apache/cocoon/forms/flow/javascript/Form.js,
Line
> 127):
> java.lang.NullPointerException
> 
> The form DOES contain nested repeater rows (if that could make a
> difference....)
> 
> Any help or hints as to what or where the cause could be would
> be appreciated!
> 
> Thanks,
> Derek


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


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


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