cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Vincelli <a.vince...@w4b.it>
Subject CFORM: on-delete-row
Date Fri, 03 Mar 2006 09:51:29 GMT


I have this error on save a form with repeater

Internal Server Error
Message: Cannot set property /rows[1]/@row-state, path does not match a 
changeable location

Description: org.apache.cocoon.ProcessingException: Error calling 
continuation at 
resource://org/apache/cocoon/forms/flow/javascript/Form.js:228:-1 at 
file:/var/webapps/certnet/cforms/cforms/flow/cattura.js:184:-1 at 
<map:call> - file:/var/webapps/certnet/cforms/sitemap.xmap:368:83 at 
<map:mount> - file:/var/webapps/certnet/sitemap.xmap:727:83

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet



The problem is on the delete row!

<fb:on-delete-row>
   <fb:set-attribute name="row-state" value="deleted"/>
</fb:on-delete-row>


Any ideas?

thanks in advance
Alessandro





Complete binding



<?xml version="1.0" encoding="ISO-8859-1"?>
<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" 
xmlns:xsp="http://apache.org/xsp" 
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" path="/">

  <fb:repeater id="AnagrafeOperaiTemp" parent-path="." row-path="rows">	
         <fb:identity>
             <fb:value id="opcodced" path="@opcodced"/>
         </fb:identity>
	
	 	<fb:on-bind>			
			<fb:value id="opcodimp" path="opcodimp"/>
			<fb:value id="opcognom" path="opcognom"/>
			<fb:value id="opnomeop" path="opnomeop"/>
			<fb:value id="opdtnasc" path="opdtnasc"/>
			<fb:value id="opcodfis" path="opcodfis"/>
		</fb:on-bind>
	
	 <fb:on-insert-row>
		 <fb:insert-bean addmethod="addRow" 
classname="w4b.com.cassagest.db.AnagrafeOperaitemp"/>
	 </fb:on-insert-row>
	
	 <fb:on-delete-row>
    	   <fb:set-attribute name="row-state" value="deleted"/>
	 </fb:on-delete-row>
	
	</fb:repeater>			
</fb:context>



-- 
-------------------------------
Alessandro Vincelli
W4B - web for business s.r.l.
Via Volturno, 10/12
Sesto Fiorentino (FI)
Tel. 0571 998771
Fax. 055 340576

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


Mime
View raw message