cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Blake <p...@sparkbc.com.au>
Subject Woody Bean Binding - load() works, save() doesn't
Date Fri, 16 Jan 2004 00:41:46 GMT
Hiya,

I have a binding that looks like this:

<wb:context path="/" wb="http://apache.org/cocoon/woody/binding/1.0">
	<wb:value id="kriEntry200" path="KRIEntries[oid=200]/numberValue" />
	<wb:value id="kriEntry201" path="KRIEntries[oid=201]/numberValue" />
</wb:context>

The form.load() works fine and all the values are loaded into the 
widgets.

However the form.save() generates the following error:

(Ignorable) problem binding field kriEntry200
org.apache.commons.jxpath.JXPathException: Cannot create a relative 
context for a non-existent node: /KRIEntries[1]/numberValue
done saving ValueJXPathBinding[widget=kriEntry200, 
xpath=KRIEntries[oid=200]/numberValue] -- value=null -- on-update == 
true

(Ignorable) problem binding field kriEntry201
org.apache.commons.jxpath.JXPathException: Cannot create a relative 
context for a non-existent node: /KRIEntries[2]/numberValue
done saving ValueJXPathBinding[widget=kriEntry200, 
xpath=KRIEntries[oid=201]/numberValue] -- value=null -- on-update == 
true

The values are both updated to equal null.

If the binding can load, shouldn't they be able to save? Is there 
anything mysterious about bean binding that could be going on here?

Phil
Mime
View raw message